[horde] Parse error: syntax error, unexpected T_FUNCTION in /www/htdocs/user/etc/git/horde/imp/config/prefs.php on line 70
OnkelM
onkelm08 at gmail.com
Fri Jun 5 14:33:17 UTC 2015
it should work, that is what i had expected
i made some examples
<?php
>
> $sayHello = function() {
>
> return ("Hello World!");
>
> };
>
>
>> echo $sayHello();
>
>
>>
>> $arr = array(
>
> 'id' => function() {
>
> return 1;
>
> }
>
> );
>
>
>> echo "<pre>";
>
> var_dump($arr);
>
> var_dump($arr['id']());
>
> echo "</pre>";
>
>
> this works and prints without errors the string and the integer
i dont know why horde is complaining here on the prefs.php files.
the same parse error is on the test.php page for the applications *Imp,
Ingo, Kronolith and Turba* when clicking on *run tests*
Gruß
2015-06-05 15:46 GMT+02:00 Michael J Rubinsky <mrubinsk at horde.org>:
>
> Quoting OnkelM <onkelm08 at gmail.com>:
>
> that was my first thought too but...
>>
>> Imp Version
>>
>>>
>>> - H6 (7.0.0-git)
>>>
>>> Other Horde Applications
>>>
>>> - ingo: *Yes* (Version: H5 (3.3.0-git))
>>> - kronolith: *Yes* (Version: H5 (4.3.0-git))
>>> - nag: *Yes* (Version: H5 (4.3.0-git))
>>> - turba: *Yes* (Version: H5 (4.3.0-git))
>>>
>>> PHP Version
>>>
>>> - View phpinfo() screen
>>> <http://h.onkelm.com/test.php?app=imp&mode=phpinfo>
>>> - View loaded extensions
>>> <http://h.onkelm.com/test.php?app=imp&mode=extensions>
>>> - PHP Version: 5.5.24-nmm1
>>> - PHP Major Version: 5.5
>>> - PHP Minor Version: 24
>>> - PHP Subminor Version: nmm1
>>> - PHP Version Classification: release
>>> - *You are running a supported version of PHP.*
>>>
>>> PHP Module Capabilities
>>>
>>> - OpenSSL Support: *Yes*
>>>
>>> Miscellaneous PHP Settings
>>>
>>> - file_uploads enabled: *Yes*
>>>
>>
> No idea. Maybe you have some extension that is breaking things. That is a
> perfectly valid function closure.
>
>
>
> Gruß
>>
>> 2015-06-05 15:19 GMT+02:00 Michael J Rubinsky <mrubinsk at horde.org>:
>>
>>
>>> Quoting OnkelM <onkelm08 at gmail.com>:
>>>
>>> Hello all,
>>>
>>>>
>>>> on a fresh git install i get this error on /test.php
>>>>
>>>>
>>>> *The file config/prefs.php has PHP syntax errors:Parse error: syntax
>>>> error,
>>>> unexpected T_FUNCTION in
>>>> /www/htdocs/user/etc/git/horde/imp/config/prefs.php on line 70*
>>>> The line in question is:
>>>>
>>>> 70 'suppress' => function() {
>>>> 71 return !IMP_Compose::canHtmlCompose();
>>>>
>>>>
>>>>
>>>> what should i do ?
>>>>
>>>>
>>> Your probably running a too old version of PHP. Nothing wrong with that
>>> line.
>>>
>>> --
>>> mike
>>> The Horde Project
>>> http://www.horde.org
>>> https://www.facebook.com/hordeproject
>>> https://www.twitter.com/hordeproject
>>>
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>>
>>>
>
>
> --
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeproject
> https://www.twitter.com/hordeproject
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>
More information about the horde
mailing list