summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2010-04-25 19:17:16 +0000
committerAntony Dovgal <tony2001@php.net>2010-04-25 19:17:16 +0000
commit7211284ac7f217694f2f351ec223f94af7db0d16 (patch)
tree53b2241e4a7c6f9d2ef45779fd896a7c663bc621 /Zend/zend_exceptions.c
parentb25baf178dbc9123254c6978dd2dc7a95be9ca95 (diff)
downloadphp-git-7211284ac7f217694f2f351ec223f94af7db0d16.tar.gz
fix ~450 tests and 25 segfaults
make test, anyone?
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 40c7b1cfd0..301037ade5 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -90,6 +90,7 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
zend_get_object_classname(exception, &classname, &name_len);
DTRACE_EXCEPTION_THROWN(classname);
}
+#endif /* HAVE_DTRACE */
if (exception != NULL) {
zval *previous = EG(exception);
@@ -102,7 +103,6 @@ void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */
if (!EG(current_execute_data)) {
zend_error(E_ERROR, "Exception thrown without a stack frame");
}
-#endif /* HAVE_DTRACE */
if (zend_throw_exception_hook) {
zend_throw_exception_hook(exception TSRMLS_CC);