Remi Collet | 15 Sep 17:33 2014

horde_lz4 with system liblz4


Hi,

I plan to submit horde_lz4 to official Fedora repository.

But Fedora Guidelines don't allow to use bundle library[1]

Can you please consider the attached patch which allow to

1/ build with system liblz4 (add --with-liblz4)

=> should be noop for standard build

2/ fix build with recent liblz4 r222

=> LZ4_uncompress is deprecated and have be removed

With this patch applied and with liblz4 r222:

$ php -d extension=modules/horde_lz4.so /usr/bin/phpunit test
PHPUnit 4.2.6 by Sebastian Bergmann.
............
Time: 15 ms, Memory: 2.75Mb
OK (12 tests, 14 assertions)

Regards,
Remi

[1] https://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries
(Continue reading)

Jasper Olbrich | 11 Sep 17:00 2014
Picon

"report as spam/as innocent" per message instead of per per mailbox

Hi all,

today I realised that it's not possible to mark a message as innocent if 
it isn't in the spam folder and the default
$servers['imap']['spam']['innocent']['display'] = true
is set. This happened for an user that had the "do nothing" option set 
when a message is marked as spam.

This brought up the following questions:

1) is it possible to make the context menu of IMP's mail list view 
context sensitive with respect to the spam flag? I.e. show "report as 
spam" if the flag is not set, and "report as innocent" otherwise?

2) what is the reason to make the 'display' option do different things 
for spam and innocent?

-- 
Jasper
--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Remi Collet | 6 Sep 09:58 2014

Issue with Config and opcode cache


Hi,

When using an opcode cache, configuration files are cached.

So, after a configuration file is updated, its old content will be
served by cached until invalidated, or checked.

With Zend Opcache, default check delay is 2"

	opcache.revalidate_freq=2

And, it is common to have a greater value on production env.

The small patch attached should fix this (only for opcache, other
opcode caches such as XCache or deprecated APC are not handled)

Notice, this is just a quick fix, perhaps you could integrate the
feature in a different way, just want to raise the issue and a
possible fix.

Regards,
Remi.
Attachment (horde-opcache.patch): text/x-patch, 869 bytes
--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org
(Continue reading)

Michael M Slusarz | 5 Sep 23:14 2014

Re: Horde_Imap_Client 2.25.0 failed tests

Quoting Remi Collet <remi <at> fedoraproject.org>:

> Le 04/09/2014 08:47, Michael M Slusarz a écrit :
>> Quoting Remi Collet <remi <at> fedoraproject.org>:
>>
>>> Are you aware of this issue ?
>>>
>>> Reproduced running test suite with PHP 5.4.32, 5.5.16 and 5.6.0
>>
>> PEAR modules can't be released unless they pass the unit tests.
>>
>> Sure enough, everything is fine here.
>
> Thanks for your confirmation.
>
> Problem solved setting LANG. (default value is "C" in build env.)

For purposes of testing, we probably need to set the Collator to a  
known default rather than relying on the system locale.

This should fix that inconsistency:

http://github.com/horde/horde/commit/8616097f99a47eda9a0f21d129de39f4a68e8ad4

michael

___________________________________
Michael Slusarz [slusarz <at> horde.org]

--

-- 
(Continue reading)

Mehmet Akif | 4 Sep 18:07 2014
Picon

horde user authentication via php

Hi. I'm new to all this mailing lists and horde stuff. So excuse me if i do something wrong.

im trying to add a new contact to an authenticated account via a web service. 
i'll give all neccessary info to the service such as user id, pass and new contact info. 
and the service should authenticate the user first, then using turba it should add the contact. 
so my question is how to authenticate a user through php?
any help would be great. Thanks in advance.
 		 	   		  
--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Remi Collet | 4 Sep 06:49 2014

Horde_Imap_Client 2.25.0 failed tests


Are you aware of this issue ?

Reproduced running test suite with PHP 5.4.32, 5.5.16 and 5.6.0

Thanks,
Remi

+ phpunit
-
--include-path=/builddir/build/BUILD/php-horde-Horde-Imap-Client-2.25.0/Horde_Imap_Client-2.25.0/lib
-d date.timezone=UTC .
PHPUnit 4.2.4 by Sebastian Bergmann.
Configuration read from
/builddir/build/BUILD/php-horde-Horde-Imap-Client-2.25.0/Horde_Imap_Client-2.25.0/test/Horde/Imap/Client/phpunit.xml
........................SSSSSSSS........SSSSSSSS...............  63 /
769 (  8%)
............................................................... 126 /
769 ( 16%)
............................................................... 189 /
769 ( 24%)
............................................................... 252 /
769 ( 32%)
............................................................... 315 /
769 ( 40%)
............................................................... 378 /
769 ( 49%)
............................................................... 441 /
769 ( 57%)
............................................................... 504 /
(Continue reading)

denis bahati | 1 Sep 19:42 2014
Picon

(no subject)

Dear Team, 

I am getting the following error whenever I try to login to horde. Kindly advice.

exception 'InvalidArgumentException' with message '/var/www/pear/data/Horde_Core/locale is not a
directory' in /pear/lib/Horde/Translation/Handler/Gettext.php:43 Stack trace: #0
/pear/lib/Horde/Translation.php(63):
Horde_Translation_Handler_Gettext->__construct('Horde_Core', '/var/www/pear/d...') #1
/pear/lib/Horde/Translation.php(95): Horde_Translation::loadHandler('Horde_Translati...')
#2 /pear/lib/Horde/Core/Translation.php(33): Horde_Translation::t('A fatal error h...') #3
/pear/lib/Horde/ErrorHandler.php(101): Horde_Core_Translation::t('A fatal error h...') #4
/horde/imp/lib/Application.php(612):
Horde_ErrorHandler::fatal(Object(InvalidArgumentException)) #5 [internal function]:
IMP_Application->exceptionHandler(Object(InvalidArgumentException)) #6 {main}

And in the error log:
HORDE: [imp] /var/www/pear/data/Horde_Imap_Client/locale is not a directory [pid 26843 on line 43 of "/pear/lib/Horde/Translation/Handler/Gettext.php"]

Regards
--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Lukas Weiss | 28 Aug 14:00 2014
Picon

Hide empty app prefs in menu

hi,

in the user preferences menu there are listed all installed apps.
is it possible to hide those which do not have any configured prefs?

i get this notification for the passwd app und my own module:
"There are no preferences available for this application."

thank you!

--

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: dev-unsubscribe <at> lists.horde.org

Remi Collet | 16 Aug 19:38 2014

More QA in Fedora for PHP stack, and Horde


Hi,

I should probably have tell you about this before my previous message.

See
http://blog.famillecollet.com/post/2014/08/12/Koschei-continuous-integration-of-PHP-stack-in-Fedora

Which means, that now, any change in the PHP stack, which could have
impact on Horde stack, will raise a test build, and so will allow us
to detect ASAP any regression / breakage.

Exemple:
http://koschei.cloud.fedoraproject.org/package/php-horde-Horde-Kolab-Storage

Notice, for 7302107, build was raised by the update from PHP 5.6.0RC3
to PHP 5.6.0RC4 (RC3, in Fedora, have a temporary patch to keep 5.5
behavior of unserialize, dropped in RC4, which explain the failure)

I really think this should helps us to make the "PHP stack" and "Horde
stack" much better.

For now, only "rawhide" (Fedora devel branch, with php 5.6) is
monitored... but this could change in the future.

Remi.
Remi Collet | 16 Aug 18:58 2014

Horde-Kolab-Storage - unserialize issue


Hi,

With PHP 5.6.0 test suite fails :

There were 51 errors:

1) Horde_Kolab_Storage_Unit_Data_BaseTest::testDefaultType
Erroneous data format for unserializing 'Horde_Mime_Part'

/dev/shm/BUILD/php-horde-Horde-Kolab-Storage-2.1.0/Horde_Kolab_Storage-2.1.0/lib/Horde/Kolab/Storage/Driver/Mock/Data.php:103
...

Digging in this issue.

First: you should be awarer that "serialized" data is a very bad
pratice for storage... no warranty to work accross various versions.

See the recent discussion about the "unserialize" regression/issue...

The test/Horde/Kolab/Storage/fixtures/event.struct contains:
O:15:"Horde_Mime_Part":...

Which is wrong, as Horde_Mime_Part implements Serializable.
(should be C:... with PHP > 5.4)

Proof.

<?php
require 'Horde/Autoloader/Default.php';
(Continue reading)

Remi Collet | 16 Aug 19:08 2014

Horde-Kolab-Storage - unserialize issue


Hi,

With PHP 5.6.0 test suite fails :

There were 51 errors:

1) Horde_Kolab_Storage_Unit_Data_BaseTest::testDefaultType
Erroneous data format for unserializing 'Horde_Mime_Part'

/dev/shm/BUILD/php-horde-Horde-Kolab-Storage-2.1.0/Horde_Kolab_Storage-2.1.0/lib/Horde/Kolab/Storage/Driver/Mock/Data.php:103
...

Digging in this issue.

First: you should be awarer that "serialized" data is a very bad
pratice for storage... no warranty to work accross various versions.

See the recent discussion about the "unserialize" regression/issue...

The test/Horde/Kolab/Storage/fixtures/event.struct contains:
O:15:"Horde_Mime_Part":...

Which is wrong, as Horde_Mime_Part implements Serializable.
(should be C:... with PHP > 5.4)

Proof.

<?php
require 'Horde/Autoloader/Default.php';
(Continue reading)


Gmane