components/php-5_3/php-sapi/patches/028_php_Zend_zend_exceptions.c.patch
author Craig Mohrman <craig.mohrman@oracle.com>
Fri, 18 Apr 2014 11:03:12 -0700
branchs11u1-sru
changeset 3086 649b12aa87ce
parent 846 fe258446a1ae
permissions -rw-r--r--
17362112 problem in UTILITY/PHP 18083695 problem in UTILITY/PHP 18181920 remove BUILD_VERSION from php package manifests 18368537 problem in UTILITY/PHP 18368630 problem in UTILITY/PHP

--- php-5.3.10/Zend/zend_exceptions.c_orig	Sun Jan  1 05:15:04 2012
+++ php-5.3.10/Zend/zend_exceptions.c	Wed Feb  8 11:25:25 2012
@@ -27,6 +27,7 @@
 #include "zend_interfaces.h"
 #include "zend_exceptions.h"
 #include "zend_vm.h"
+#include "zend_dtrace.h"
 
 zend_class_entry *default_exception_ce;
 zend_class_entry *error_exception_ce;
@@ -82,6 +83,15 @@
 
 void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
 {
+#ifdef HAVE_DTRACE
+       if (DTRACE_EXCEPTION_THROWN_ENABLED()) {
+               char *classname;
+               int name_len;
+               zend_get_object_classname(exception, &classname, &name_len TSRMLS_CC);
+               DTRACE_EXCEPTION_THROWN(classname);
+       }
+#endif /* HAVE_DTRACE */
+
 	if (exception != NULL) {
 		zval *previous = EG(exception);
 		zend_exception_set_previous(exception, EG(exception) TSRMLS_CC);