6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/2/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#2189] array_shift() doesn't work like expected with php5.1b2
*
Your Email Address
*
Spam protection
Enter the letters below:
.___.. ..___.__..___ _/ | |[__ [__][__ ./__.|__|[___| |[___
Comment
> 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
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers