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 /sapi/phpdbg | |
parent | 43aca3118ab011b878ec577904eafc18f86f69ae (diff) | |
download | php-git-091d77f28a78a700ce0e72457606e01ed696de83.tar.gz |
Avoid magic method hash lookups
Diffstat (limited to 'sapi/phpdbg')
-rw-r--r-- | sapi/phpdbg/phpdbg_prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg_prompt.c b/sapi/phpdbg/phpdbg_prompt.c index 220288493e..067ae73913 100644 --- a/sapi/phpdbg/phpdbg_prompt.c +++ b/sapi/phpdbg/phpdbg_prompt.c @@ -775,7 +775,7 @@ static inline void phpdbg_handle_exception(void) /* {{{ */ EG(exception) = NULL; ZVAL_OBJ(&zv, ex); - zend_call_method_with_0_params(&zv, ex->ce, NULL, "__tostring", &tmp); + zend_call_method_with_0_params(&zv, ex->ce, &ex->ce->__tostring, "__tostring", &tmp); file = zval_get_string(zend_read_property(zend_get_exception_base(&zv), &zv, ZEND_STRL("file"), 1, &rv)); line = zval_get_long(zend_read_property(zend_get_exception_base(&zv), &zv, ZEND_STRL("line"), 1, &rv)); |