We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code:
<?php if (defined("pass3")) { } else { function errorHandler($errorNumber, $errorMessage, $fileName, $lineNumber) { define("pass3", 1); include(__FILE__); } set_error_handler('errorHandler'); } $resource = zend_test_create_throwing_resource(); try {ldap_delete_ext($fileName,$exception,$fileName);} catch (Exception $e) { echo($e); }
Resulted in this output:
php: /home/phpfuzz/WorkSpace/flowfusion/php-src/Zend/zend_exceptions.c:197: void zend_throw_exception_internal(zend_object *): Assertion `is_handle_exception_set() && "HANDLE_EXCEPTION not set?"' failed. Aborted (core dumped)
nightly
No response
The text was updated successfully, but these errors were encountered:
Simplified test:
<?php declare(strict_types=1); function errorHandler($errorNumber, $errorMessage, $fileName, $lineNumber) { $resource = zend_test_create_throwing_resource(); strlen(null); } set_error_handler('errorHandler'); echo $undef;
Sorry, something went wrong.
The assertion may be too conservative, as the HANDLE_EXCEPTION is set later on. But I'm not sure (yet).
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 11b615c214a..0c3c6e8f743 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -193,7 +193,7 @@ ZEND_API ZEND_COLD void zend_throw_exception_internal(zend_object *exception) /* zend_exception_set_previous(exception, EG(exception)); EG(exception) = exception; if (previous) { - ZEND_ASSERT(is_handle_exception_set() && "HANDLE_EXCEPTION not set?"); + //ZEND_ASSERT(is_handle_exception_set() && "HANDLE_EXCEPTION not set?"); return; } }
No branches or pull requests
Description
The following code:
Resulted in this output:
PHP Version
nightly
Operating System
No response
The text was updated successfully, but these errors were encountered: