ID:               33516
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bmansion at mamasam dot com
-Status:           Feedback
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: Mac OS X 10.4.1
 PHP Version:      5.1.0b2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Actually, never mind - this is bogus. 

http://no2.php.net/end lists:

mixed end ( array &array )

a return value is not a variable, and thus can not be passed by
reference.


Previous Comments:
------------------------------------------------------------------------

[2005-06-30 12:42:27] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

------------------------------------------------------------------------

[2005-06-30 12:30:03] bmansion at mamasam dot com

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 this bug report at http://bugs.php.net/?id=33516&edit=1

Reply via email to