PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_QuickForm » Bug #4725

Fatal error in QuickForm.php on line 594

Details

Submitted2005-07-01 16:50 UTC
Fromsoenke at city-map dot de
Assignedavb
StatusClosed
PackageHTML_QuickForm
PHP Version5_1 CVS-2005-07-01
OSLinux
Roadmaps(Not assigned)

Comments

[2005-07-01 16:50 UTC] soenke at city-map dot de

Description:
------------
PHP 5.1 latest CVS throws a fatal error on using QuickForm:

Fatal error: Only variables can be passed by reference in /usr/lib/php/HTML/QuickForm.php on line 594

This is related to PHP Bug Tracker:

http://bugs.php.net/bug.php?id=3351

This can be easily solved with a temp array (I did not look at the sense of the code, but it works then)!

Reproduce code:
---------------
Any usage of addElement()

Expected result:
----------------
Working.

Actual result:
--------------
Only variables can be passed by reference in /usr/lib/php/HTML/QuickForm.php on line 594

[2005-07-01 20:40 UTC] soenke at city-map dot de

Sorry, the PHP Bug DB Link was stripped to much - correct link is:

http://bugs.php.net/bug.php?id=33516

[2005-07-07 14:09 UTC] danielr at electroteque dot org

From advise from the patch, I have created a diff from
cvs, any chance to get it in ?

www.electroteque.org/pear/QuickForm/QuickForm.diff