mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
- Fixed bug #53306 (php crashes with segfault when DTrace "exception-thrown" probe fires)
patch by: mike at harschsystems dot com
This commit is contained in:
parent
46ef2edf8d
commit
45189fa803
@ -87,8 +87,13 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
|
||||
if (DTRACE_EXCEPTION_THROWN_ENABLED()) {
|
||||
char *classname;
|
||||
int name_len;
|
||||
zend_get_object_classname(exception, &classname, &name_len);
|
||||
DTRACE_EXCEPTION_THROWN(classname);
|
||||
|
||||
if (exception != NULL) {
|
||||
zend_get_object_classname(exception, &classname, &name_len);
|
||||
DTRACE_EXCEPTION_THROWN(classname);
|
||||
} else {
|
||||
DTRACE_EXCEPTION_THROWN(NULL);
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_DTRACE */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user