Summary | array_shift() doesn't work like expected with php5.1b2 |
Queue | Horde Base |
Queue Version | 3.0.4 |
Type | Bug |
State | Not A Bug |
Priority | 2. Medium |
Owners | |
Requester | bigmichi1 (at) bigmichi1 (dot) dyndns (dot) org |
Created | 06/27/2005 (7326 days ago) |
Due | |
Updated | 10/24/2005 (7207 days ago) |
Assigned | |
Resolved | 06/28/2005 (7325 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
changes for 3.0.5, because this was fixed in the _example_
_configuration_ file.
the same results.
upgraded it's PHP5 package this morning and i immediately hit this
error. I did the same to fix it as described here. I think something
needs to be done in the code base to address this.
State ⇒ Not A Bug
Priority ⇒ 2. Medium
work for everyone. Second, I think this is a bc break that will be
fixed in future 5.1 betas - I've seen it come up on the internals
list. If it's not, we can address it later.
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ array_shift() doesn't work like expected with php5.1b2
Queue ⇒ Horde Base
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