2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2005, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
15 #ifndef PHP_HTTP_EXCEPTION_OBJECT_H
16 #define PHP_HTTP_EXCEPTION_OBJECT_H
19 #include "zend_exceptions.h"
21 PHP_MINIT_FUNCTION(http_exception_object
);
23 #define HTTP_EX_DEF_CE http_exception_object_ce
24 #define HTTP_EX_CE(name) http_ ##name## _exception_object_ce
26 extern zend_class_entry
*http_exception_object_ce
;
27 extern zend_function_entry http_exception_object_fe
[];
28 extern zend_class_entry
*HTTP_EX_CE(runtime
);
29 extern zend_class_entry
*HTTP_EX_CE(header
);
30 extern zend_class_entry
*HTTP_EX_CE(malformed_headers
);
31 extern zend_class_entry
*HTTP_EX_CE(request_method
);
32 extern zend_class_entry
*HTTP_EX_CE(message_type
);
33 extern zend_class_entry
*HTTP_EX_CE(invalid_param
);
34 extern zend_class_entry
*HTTP_EX_CE(encoding
);
35 extern zend_class_entry
*HTTP_EX_CE(request
);
36 extern zend_class_entry
*HTTP_EX_CE(request_pool
);
37 extern zend_class_entry
*HTTP_EX_CE(socket
);
38 extern zend_class_entry
*HTTP_EX_CE(response
);
39 extern zend_class_entry
*HTTP_EX_CE(url
);
41 #define http_exception_get_default _http_exception_get_default
42 extern zend_class_entry
*_http_exception_get_default();
44 #define http_exception_get_for_code(c) _http_exception_get_for_code(c)
45 extern zend_class_entry
*_http_exception_get_for_code(long code
);
55 * vim600: noet sw=4 ts=4 fdm=marker
56 * vim<600: noet sw=4 ts=4