ID: 6606
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

No feedback.
Doesn't crash for me with the latest CVS.

--Jani


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

[2001-01-07 18:42:14] [EMAIL PROTECTED]
Does this happen with PHP 4.0.4 ??

--Jani

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

[2000-09-07 12:27:50] [EMAIL PROTECTED]
This crashes:
function &foo() {
   while (list($key, $name) = each($arr));
   return($ret);
}

------

This works:
function &foo() {
   if (is_array($arr))
      while (list($key, $name) = each($arr));
   return($ret);
}

------

This works:
function &foo() {
   while (list($key, $name) = each($arr));
   return(is_array($ret) ? $ret : false);
}

I know returning a NULL value as refernce is nonsense but it shouldn't crash, right?

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=6606&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to