diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-07-02 17:03:50 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-07-02 17:03:50 +0300 |
commit | 091d77f28a78a700ce0e72457606e01ed696de83 (patch) | |
tree | 3167f9e6df3b4f4935c3cc0b5d65d421d472f2a3 /Zend/zend_exceptions.c | |
parent | 43aca3118ab011b878ec577904eafc18f86f69ae (diff) | |
download | php-git-091d77f28a78a700ce0e72457606e01ed696de83.tar.gz |
Avoid magic method hash lookups
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 72a3c806e5..81ee386e56 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -984,7 +984,7 @@ ZEND_API ZEND_COLD void zend_exception_error(zend_object *ex, int severity) /* { zend_string *str, *file = NULL; zend_long line = 0; - zend_call_method_with_0_params(&exception, ce_exception, NULL, "__tostring", &tmp); + zend_call_method_with_0_params(&exception, ce_exception, &ex->ce->__tostring, "__tostring", &tmp); if (!EG(exception)) { if (Z_TYPE(tmp) != IS_STRING) { zend_error(E_WARNING, "%s::__toString() must return a string", ZSTR_VAL(ce_exception->name)); |