Skip to content

Conversation

nikic
Copy link
Member

@nikic nikic commented Mar 23, 2012

This allows the error handler to be reset using set_error_handler(null). As the code suggests this behavior was already previously intended, but the callback check was done too strictly.

See also bug https://bugs.php.net/bug.php?id=60738.

PS: I replaced the !zend_is_true with a strict null check to be consistent with the behavior of set_exception_handler.

This allows the error handler to be reset using set_error_handler(null).
As the code suggests this behavior was already previously intended, but
the callback check was done too strictly.
@nikic
Copy link
Member Author

nikic commented Mar 23, 2012

Closing as this is against the wrong branch. New PR: #18

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.

1 participant