diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2020-01-13 17:06:26 +0100 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2020-03-02 15:25:32 +0100 |
commit | 9e775db02567d3b90694ebb43f0225875a48e8c9 (patch) | |
tree | cd25ebdb5e735ca322eded189b156619a4b43534 /Zend/zend_exceptions.c | |
parent | c06850b9fa1b6dc8f4f8a46d6d0ea55e8baf7cbf (diff) | |
download | php-git-9e775db02567d3b90694ebb43f0225875a48e8c9.tar.gz |
Define Stringable with __toString():string method
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 f3846d326b..fb48d34bdf 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -763,7 +763,6 @@ static const zend_function_entry zend_funcs_throwable[] = { ZEND_ABSTRACT_ME(throwable, getTrace, arginfo_class_Throwable_getTrace) ZEND_ABSTRACT_ME(throwable, getPrevious, arginfo_class_Throwable_getPrevious) ZEND_ABSTRACT_ME(throwable, getTraceAsString, arginfo_class_Throwable_getTraceAsString) - ZEND_ABSTRACT_ME(throwable, __toString, arginfo_class_Throwable___toString) ZEND_FE_END }; /* }}} */ @@ -805,6 +804,7 @@ void zend_register_default_exception(void) /* {{{ */ zend_class_entry ce; REGISTER_MAGIC_INTERFACE(throwable, Throwable); + zend_class_implements(zend_ce_throwable, 1, zend_ce_stringable); memcpy(&default_exception_handlers, &std_object_handlers, sizeof(zend_object_handlers)); default_exception_handlers.clone_obj = NULL; |