Re: Liveuser error due to php5.0.5 ?

From: Date: Wed, 07 Sep 2005 11:41:41 +0000
Subject: Re: Liveuser error due to php5.0.5 ?
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20841@lists.php.net to get a copy of this message
Lukas Smith wrote:
Jeroen Houben wrote:
// get the group $group = array_pop($lu_admin->perm->getGroups($params)); error *Fatal error*: Only variables can be passed by reference in ... I think it's a PHP error, I've got some other code that throws this error and worked fine on 5.0.4
yes indeed .. it was changed as part of fixing: http://bugs.php.net/bug.php?id=33257 in the commit: cvs diff -r1.652.2.38 -r1.652.2.39 zend_execute.c remember that array_pop() expects a reference to a variable so you need to change this to: $group = array_pop($tmp = $lu_admin->perm->getGroups($params));
Right. Thanks a lot. So this kind of code *should* have been throwing errors for a long time. I'll just use the "select"=>"row" - the array_pop() seemed a bit clumsy anyway ;-) Jeroen

« previous php.pear.general (#20841) next »