]> granicus.if.org Git - php/commitdiff
- Output error when there's an uncaught exception (by Timm Friebe)
authorAndi Gutmans <andi@php.net>
Sun, 6 Jan 2002 20:30:41 +0000 (20:30 +0000)
committerAndi Gutmans <andi@php.net>
Sun, 6 Jan 2002 20:30:41 +0000 (20:30 +0000)
Zend/zend.c

index e976a1740da317f10906ae69bdfb05e73284ec19..ecbb4d828b8decd8f4b08e3f6471eede0afa3445 100644 (file)
@@ -824,6 +824,7 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
                        zend_execute(EG(active_op_array) TSRMLS_CC);
                        if (EG(exception)) {
                                zval_ptr_dtor(&EG(exception));
+                               zend_error(E_ERROR, "Uncaught exception!");
                        } else if (!retval) {
                                zval_ptr_dtor(EG(return_value_ptr_ptr));
                                local_retval = NULL;