mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
- Use ErrorException instead of Exception
This commit is contained in:
parent
1cdf7e66f4
commit
7722837517
@ -667,7 +667,7 @@ static void php_error_cb(int type, const char *error_filename, const uint error_
|
|||||||
* but DO NOT overwrite a pending excepption
|
* but DO NOT overwrite a pending excepption
|
||||||
*/
|
*/
|
||||||
if (PG(error_handling) == EH_THROW && !EG(exception)) {
|
if (PG(error_handling) == EH_THROW && !EG(exception)) {
|
||||||
zend_throw_exception(PG(exception_class), buffer, 0 TSRMLS_CC);
|
zend_throw_error_exception(PG(exception_class), buffer, 0, type TSRMLS_CC);
|
||||||
}
|
}
|
||||||
efree(buffer);
|
efree(buffer);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user