com php-src: dont use function to fetch default exception ce: Zend/zend_exceptions.c
| From: | Anatol Belski | Date: | Wed, 17 Jun 2015 22:21:38 +0000 |
| Subject: | com php-src: dont use function to fetch default exception ce: Zend/zend_exceptions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87349@lists.php.net to get a copy of this message | ||
Commit: 9076eb26c79c518ea5f10b29c4670cd655ae2f5f
Author: Anatol Belski <ab@php.net> Thu, 18 Jun 2015 00:21:38 +0200
Parents: 848650565171578e8b1a1786c3bd626263ac2513
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9076eb26c79c518ea5f10b29c4670cd655ae2f5f
Log:
dont use function to fetch default exception ce
Changed paths:
M Zend/zend_exceptions.c
Diff:
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 75259c3..0d95064 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -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;