- Use ErrorException instead of Exception

This commit is contained in:
Marcus Boerger 2004-07-15 22:22:06 +00:00
parent 1cdf7e66f4
commit 7722837517

View File

@ -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
*/
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);
return;