X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_exception_object.c;h=294239f5c53bd9af4e41614786712f94ac60aba7;hb=389e280e0bba312ff5ca9981801cc842dad26ec2;hp=b6594bac3f98a952b1d2f5b21ac0342dfe2be951;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb;p=m6w6%2Fext-http diff --git a/http_exception_object.c b/http_exception_object.c index b6594ba..294239f 100644 --- a/http_exception_object.c +++ b/http_exception_object.c @@ -6,26 +6,19 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2006, Michael Wallner | +--------------------------------------------------------------------+ */ /* $Id$ */ - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - #include "php_http.h" #ifdef ZEND_ENGINE_2 #include "php_http_exception_object.h" -#define HTTP_EX_DEF_CE http_exception_object_ce zend_class_entry *http_exception_object_ce; -#define HTTP_EX_CE(name) http_ ##name## _exception_object_ce zend_class_entry *HTTP_EX_CE(runtime); zend_class_entry *HTTP_EX_CE(header); zend_class_entry *HTTP_EX_CE(malformed_headers); @@ -54,6 +47,8 @@ PHP_MINIT_FUNCTION(http_exception_object) HTTP_REGISTER_EXCEPTION(HttpSocketException, HTTP_EX_CE(socket), HTTP_EX_DEF_CE); HTTP_REGISTER_EXCEPTION(HttpResponseException, HTTP_EX_CE(response), HTTP_EX_DEF_CE); HTTP_REGISTER_EXCEPTION(HttpUrlException, HTTP_EX_CE(url), HTTP_EX_DEF_CE); + + zend_declare_property_null(HTTP_EX_CE(request_pool), "exceptionStack", lenof("exceptionStack"), ZEND_ACC_PUBLIC TSRMLS_CC); HTTP_LONG_CONSTANT("HTTP_E_RUNTIME", HTTP_E_RUNTIME); HTTP_LONG_CONSTANT("HTTP_E_INVALID_PARAM", HTTP_E_INVALID_PARAM);