Re: Liveuser error due to php5.0.5 ?
| From: | Lukas Smith | Date: | Wed, 07 Sep 2005 11:29:37 +0000 |
| Subject: | Re: Liveuser error due to php5.0.5 ? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20840@lists.php.net to get a copy of this message | ||
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.4yes 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)); regards, Lukas