X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_exception_object.h;h=214b85dc4aad45142d674651ee0a4da6afe64e9b;hp=478aa25686df8d3eb54f83f74e8abf24525531d6;hb=f25310e793f05996d99ac7476cc1f2437e5bfb0e;hpb=edc84b40eb2c5be04492fa98fec5833a030782eb diff --git a/php_http_exception_object.h b/php_http_exception_object.h index 478aa25..214b85d 100644 --- a/php_http_exception_object.h +++ b/php_http_exception_object.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2005, Michael Wallner | + | Copyright (c) 2004-2007, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -20,7 +20,22 @@ PHP_MINIT_FUNCTION(http_exception_object); +#define HTTP_EX_DEF_CE http_exception_object_ce +#define HTTP_EX_CE(name) http_ ##name## _exception_object_ce + extern zend_class_entry *http_exception_object_ce; +extern zend_class_entry *HTTP_EX_CE(runtime); +extern zend_class_entry *HTTP_EX_CE(header); +extern zend_class_entry *HTTP_EX_CE(malformed_headers); +extern zend_class_entry *HTTP_EX_CE(request_method); +extern zend_class_entry *HTTP_EX_CE(message_type); +extern zend_class_entry *HTTP_EX_CE(invalid_param); +extern zend_class_entry *HTTP_EX_CE(encoding); +extern zend_class_entry *HTTP_EX_CE(request); +extern zend_class_entry *HTTP_EX_CE(request_pool); +extern zend_class_entry *HTTP_EX_CE(socket); +extern zend_class_entry *HTTP_EX_CE(response); +extern zend_class_entry *HTTP_EX_CE(url); extern zend_function_entry http_exception_object_fe[]; #define http_exception_get_default _http_exception_get_default @@ -29,6 +44,8 @@ extern zend_class_entry *_http_exception_get_default(); #define http_exception_get_for_code(c) _http_exception_get_for_code(c) extern zend_class_entry *_http_exception_get_for_code(long code); +PHP_METHOD(HttpException, __toString); + #endif #endif