summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_execute.h
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2010-04-24 13:32:30 +0000
committerDavid Soria Parra <dsp@php.net>2010-04-24 13:32:30 +0000
commit08b9fdc8a3bf29e27431b7907b5ea4973e9c7042 (patch)
tree2b27f135a1cfad5f4d90fd437710aec7777eaff1 /Zend/zend_vm_execute.h
parentfd42b5064c497e500e5745bf36d1b0ddd5bd34bd (diff)
downloadphp-git-08b9fdc8a3bf29e27431b7907b5ea4973e9c7042.tar.gz
Add DTrace probes
Diffstat (limited to 'Zend/zend_vm_execute.h')
-rw-r--r--Zend/zend_vm_execute.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h
index ed9263aeaf..ecb943a422 100644
--- a/Zend/zend_vm_execute.h
+++ b/Zend/zend_vm_execute.h
@@ -4830,6 +4830,13 @@ static int ZEND_FASTCALL ZEND_CATCH_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_A
}
catch_ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, ZEND_FETCH_CLASS_NO_AUTOLOAD TSRMLS_CC);
ce = Z_OBJCE_P(EG(exception));
+
+#ifdef HAVE_DTRACE
+ if (DTRACE_EXCEPTION_CAUGHT_ENABLED()) {
+ DTRACE_EXCEPTION_CAUGHT(ce->name);
+ }
+#endif /* HAVE_DTRACE */
+
if (ce != catch_ce) {
if (!instanceof_function(ce, catch_ce TSRMLS_CC)) {
if (opline->result.num) {