]> granicus.if.org Git - php/commitdiff
- Use ErrorException instead of Exception
authorMarcus Boerger <helly@php.net>
Thu, 15 Jul 2004 22:22:06 +0000 (22:22 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 15 Jul 2004 22:22:06 +0000 (22:22 +0000)
main/main.c

index 9b0a3c9701adbb7f13e0a895c94dd1af6637aa0c..84949ccd49f5abc19b578f2b314f3d72dfa26cde 100644 (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;