Skip to content

track_errors not supported #114

@chrisgraham

Description

@chrisgraham

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions