Skip to content

Conversation

ralt
Copy link
Contributor

@ralt ralt commented Sep 20, 2014

Fixes https://bugs.php.net/bug.php?id=68062

This is a BC break, since the arguments are now declared using OBJ_ARG_INFO instead of plain ARG_INFO.

Should it be backported to 5.*, it would have to be kept with ARG_INFO.


function handler($errno, $errstr) {
if ($errno === E_RECOVERABLE_ERROR)
echo $errstr . "\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use { } around conditional statements (in all files)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't quite understand why this is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't do this, PHP will throw a catchable fatal error at the first argument of the wrong type, so the test won't be able to run all the checks

@ralt
Copy link
Contributor Author

ralt commented Sep 22, 2014

@derickr I've fixed your styling comment, fixed a test (it used a local path), and squashed all the commits into a single clean one.

As discussed in the internals mailing list, I'll write a fix in the PHP-5.6 branch, using ZEND_ARG_INFO to avoid breaking BC. I'll ping you in the new PR that'll come.

Fixes #68062

Should be backported to PHP-5.6 and PHP-5.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants