[horde] Horde installation with PHP7

Jan Schneider jan at horde.org
Wed Sep 14 07:23:34 UTC 2016


Zitat von Melkor Lord <melkor.lord at gmail.com>:

> On Tue, Sep 13, 2016 at 9:03 PM, Jan Schneider <jan at horde.org> wrote:
>
> If by any chance you have a quick fix for that, it would be nice:
>>
>>>
>>> [ingo] PHP ERROR: Declaration of Horde_Form_Type_country::init($prompt =
>>> NULL) should be compatible with Horde_Form_Type_enum::init($values,
>>> $prompt
>>> = NULL) [pid 13858 on line 0 of "/usr/share/php/Horde/Form/Type.php"]
>>>
>>
>> There is no fix, this is just a warning.
>>
>
> There should be a fix for that. There's obviously something wrong with the
> init() method for not supporting the same number of arguments accross all
> inheritances from Horde_Form_Type_enum. Maybe this was allowed in previous
> versions of PHP but not any more apparently.

Again, this is a warning, not a PHP error. It's about coding style. It  
doesn't influence actual behavior at all. In any PHP version.

> I can dig into the code to quick-fix it myself but as you guys have the
> full insight of your project, it would be a cleaner fix and also avoid all
> kinds of side effects.
>
> Currently, this error is filling up my syslog on about every page access
> which is VERY annoying and dangerous too as it creates log noise that could
> make other errors hard to spot.

Then you need to adjust your PHP error reporting level.

> I really would appreciate a way to fix this ERROR, because it is treated as
> such by PHP.
>
> --
> Unix _IS_ user friendly, it's just selective about who its friends are.



-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the horde mailing list