]> granicus.if.org Git - php/commitdiff
dont use function to fetch default exception ce
authorAnatol Belski <ab@php.net>
Wed, 17 Jun 2015 22:21:38 +0000 (00:21 +0200)
committerAnatol Belski <ab@php.net>
Wed, 17 Jun 2015 22:21:38 +0000 (00:21 +0200)
Zend/zend_exceptions.c

index 75259c397eb92b17c01625295f378193bdba4699..0d9506445ee04036f5bd23a33526f11b4122fecd 100644 (file)
@@ -248,7 +248,7 @@ ZEND_METHOD(exception, __construct)
                if (execute_data->called_scope) {
                        ce = execute_data->called_scope;
                } else {
-                       ce = zend_get_exception_base(getThis());
+                       ce = default_exception_ce;
                }
                zend_error(E_EXCEPTION | E_ERROR, "Wrong parameters for %s([string $message [, long $code [, Throwable $previous = NULL]]])", ce->name->val);
                return;