X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_exception_object.h;h=c3804c2e1928f5f6855884edaef217a3d3462619;hp=e89c576244ec158a91df9e5430f859376c256ad1;hb=451ed82bb79fd9bb89baadebd783497cd8823072;hpb=3a658eda7fbc2ad5c8d2534ae69c4683266dab95 diff --git a/php_http_exception_object.h b/php_http_exception_object.h index e89c576..c3804c2 100644 --- a/php_http_exception_object.h +++ b/php_http_exception_object.h @@ -19,15 +19,17 @@ #define PHP_HTTP_EXCEPTION_OBJECT_H #ifdef ZEND_ENGINE_2 +PHP_MINIT_FUNCTION(http_exception_object); + extern zend_class_entry *http_exception_object_ce; extern zend_function_entry http_exception_object_fe[]; -#define http_exception_object_init _http_exception_object_init -extern void _http_exception_object_init(INIT_FUNC_ARGS); - #define http_exception_get_default _http_exception_get_default 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); + #endif #endif