[horde] Parse error: syntax error, unexpected T_FUNCTION in /www/htdocs/user/etc/git/horde/imp/config/prefs.php on line 70

Michael J Rubinsky mrubinsk at horde.org
Fri Jun 5 15:26:02 UTC 2015


Please do not top post.


Quoting OnkelM <onkelm08 at gmail.com>:

> 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*

No idea. You are going to need to track that down yourself. Works fine here:

mrubinsk at coffee:~$ php --version
PHP 5.5.25 (cli) (built: May 14 2015 21:02:36)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies



-- 
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5869 bytes
Desc: S/MIME Signature
URL: <http://lists.horde.org/archives/horde/attachments/20150605/9a74457a/attachment.bin>


More information about the horde mailing list