no more PG(error_handling) in PHP-5.3
[m6w6/ext-http] / php_http_std_defs.h
index d20579d8b025ca9618e3d73ea9aee3536018d3f4..fdbfafa5e4e4b0a5915f6851e067ddae2a0e004f 100644 (file)
@@ -219,8 +219,8 @@ typedef int STATUS;
 #ifdef ZEND_ENGINE_2
 #      define with_error_handling(eh, ec) \
        { \
-               error_handling_t __eh = PG(error_handling); \
-               zend_class_entry *__ec= PG(exception_class); \
+               error_handling_t __eh = GLOBAL_ERROR_HANDLING; \
+               zend_class_entry *__ec= GLOBAL_EXCEPTION_CLASS; \
                php_set_error_handling(eh, ec TSRMLS_CC);
 #      define end_error_handling() \
                php_set_error_handling(__eh, __ec TSRMLS_CC); \