#33516 [NEW]: Only variables can be passed by reference

From: Date: Thu, 30 Jun 2005 10:30:06 +0000
Subject: #33516 [NEW]: Only variables can be passed by reference
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81205@lists.php.net to get a copy of this message
From: bmansion at mamasam dot com Operating system: Mac OS X 10.4.1 PHP version: 5.1.0b2 PHP Bug Type: Variables related Bug description: Only variables can be passed by reference Description: ------------ This code in HTML_QuickForm::addElement() line 594 (version 3.4pl1) : $this->_elements[] =& $elementObject; $this->_elementIndex[$elementName] = end(array_keys($this->_elements)); where $elementObject is an HTML_QuickForm_element object returns a Fatal error : Fatal error: Only variables can be passed by reference in /usr/lib/php/HTML/QuickForm.php on line 594 It worked fine with Php 5.0.4 -- Edit bug report at http://bugs.php.net/?id=33516&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33516&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33516&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33516&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33516&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33516&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33516&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33516&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33516&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33516&r=support Expected behavior: http://bugs.php.net/fix.php?id=33516&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33516&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33516&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33516&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33516&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33516&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33516&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33516&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33516&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33516&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33516&r=mysqlcfg

« previous php.bugs (#81205) next »