- 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:
Felipe Pena 2010-11-17 21:41:30 +00:00
parent 46ef2edf8d
commit 45189fa803

View File

@ -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 */