Browse Source

- Fixed bug #53306 (php crashes with segfault when DTrace "exception-thrown" probe fires)

patch by: mike at harschsystems dot com
experimental/with_scalar_types
Felipe Pena 16 years ago
parent
commit
45189fa803
  1. 9
      Zend/zend_exceptions.c

9
Zend/zend_exceptions.c

@ -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…
Cancel
Save