]> granicus.if.org Git - php/commitdiff
Check for zend_ce_throwable instead
authorAaron Piotrowski <aaron@trowski.com>
Mon, 15 Jun 2015 22:35:24 +0000 (17:35 -0500)
committerAaron Piotrowski <aaron@trowski.com>
Mon, 15 Jun 2015 22:35:24 +0000 (17:35 -0500)
Zend/zend_exceptions.c

index 1443afc3a2b8b911b32d3f8e01637d5893911bef..08342e9050456e80c654f42d1acef1f9612c324b 100644 (file)
@@ -926,7 +926,7 @@ ZEND_API void zend_exception_error(zend_object *ex, int severity) /* {{{ */
 
                zend_string_release(file);
                zend_string_release(message);
-       } else if (instanceof_function(ce_exception, default_exception_ce) || instanceof_function(ce_exception, error_ce)) {
+       } else if (instanceof_function(ce_exception, zend_ce_throwable)) {
                zval tmp, rv;
                zend_string *str, *file = NULL;
                zend_long line = 0;