components/php-5_3/php-sapi/patches/028_php_Zend_zend_exceptions.c.patch
changeset 4987 6a82655eda42
parent 4986 90a869b3f47a
child 4988 4b69c7c7e09b
--- a/components/php-5_3/php-sapi/patches/028_php_Zend_zend_exceptions.c.patch	Fri Oct 16 07:42:27 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
---- 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);