]> granicus.if.org Git - php/commitdiff
fix ~450 tests and 25 segfaults
authorAntony Dovgal <tony2001@php.net>
Sun, 25 Apr 2010 19:17:16 +0000 (19:17 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 25 Apr 2010 19:17:16 +0000 (19:17 +0000)
make test, anyone?

Zend/zend_exceptions.c

index 40c7b1cfd03196cef7063e5dfe660c3eac3c75c0..301037ade5c4a672645770983f28bf50560b00a8 100644 (file)
@@ -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);