diff options
| author | David Soria Parra <dsp@php.net> | 2009-07-20 10:12:34 +0000 |
|---|---|---|
| committer | David Soria Parra <dsp@php.net> | 2009-07-20 10:12:34 +0000 |
| commit | b4ea9bf939d2d3dd3217b5206769d30367e1dac6 (patch) | |
| tree | 4b4bbe8f180a3891588918279fcb0d474b779559 /Zend/zend_exceptions.c | |
| parent | 9491c31906f16a73bab7ee571aef951eb9b4253b (diff) | |
| download | php-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.c | 2 |
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); |
