summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2009-07-20 10:12:34 +0000
committerDavid Soria Parra <dsp@php.net>2009-07-20 10:12:34 +0000
commitb4ea9bf939d2d3dd3217b5206769d30367e1dac6 (patch)
tree4b4bbe8f180a3891588918279fcb0d474b779559 /Zend/zend_exceptions.c
parent9491c31906f16a73bab7ee571aef951eb9b4253b (diff)
downloadphp-git-b4ea9bf939d2d3dd3217b5206769d30367e1dac6.tar.gz
- Define HAVE_DTRACE if dtrace is available and ifdef all calls to dtrace probes
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index b51d9ae74d..3039746d78 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -83,6 +83,7 @@ void zend_exception_restore(TSRMLS_D) /* {{{ */
void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
{
+#ifdef HAVE_DTRACE
if (DTRACE_EXCEPTION_THROWN_ENABLED()) {
zstr classname;
char *s_classname;
@@ -97,6 +98,7 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
efree(classname.v);
efree(s_classname);
}
+#endif /* HAVE_DTRACE */
if (exception != NULL) {
zval *previous = EG(exception);