-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
Test code..
@ini_set('track_errors','1'); // so $php_errormsg is available
foreach (NULL as $foo);
echo 'We found: "'.$php_errormsg.'"';
Zend returns this (running from console):
PHP Warning: Invalid argument supplied for foreach() in /home/ocp/test/index.php on line 5 We found: "Invalid argument supplied for foreach()"
HPHP returns this (running from console):
HipHop Warning: Invalid argument supplied for foreach() HipHop Notice: Undefined variable: php_errormsg We found: ""
I particularly don't like "Undefined variable: php_errormsg" - it would be slightly better if php_errormsg simply stayed as the empty string.
Metadata
Metadata
Assignees
Labels
No labels