[Tickets #2189] NEW: array_shift() doesn't work like expected with php5.1b2
bugs@bugs.horde.org
bugs at bugs.horde.org
Mon Jun 27 02:55:34 PDT 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=2189
-----------------------------------------------------------------------
Ticket | 2189
Created By | bigmichi1 at bigmichi1.dyndns.org
Summary | array_shift() doesn't work like expected with php5.1b2
Queue | Horde Base
Version | 3.0.4
State | Unconfirmed
Priority | 3. High
Type | Bug
Owners |
-----------------------------------------------------------------------
bigmichi1 at bigmichi1.dyndns.org (2005-06-27 02:55) wrote:
after testing horde with php5.1b2 horde doesn't work anymore
on the entry page the following happens:
Fatal error: Only variables can be passed by reference in
/var/www/localhost/htdocs/homepage/nuke77/horde/config/registry.php on line
48
i looked a little bit closer at this and found a bug report at bugs.php.net,
specially http://bugs.php.net/bug.php?id=33466
so i changed the line:
$webroot = strstr(dirname(__FILE__), '/' . array_shift(preg_split(';/;',
$_SERVER['PHP_SELF'], 2, PREG_SPLIT_NO_EMPTY)));
to these two lines:
$temp = preg_split(';/;', $_SERVER['PHP_SELF'], 2,
PREG_SPLIT_NO_EMPTY);
$webroot = strstr(dirname(__FILE__), '/' . array_shift($temp));
and all works like it should
but i think there are more such array_shift operations to fix
More information about the bugs
mailing list