fixed bug #16893 Content not decoded with zlib support and compress enabled
[m6w6/ext-http] / php_http_exception_object.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id$ */
14
15 #ifndef PHP_HTTP_EXCEPTION_OBJECT_H
16 #define PHP_HTTP_EXCEPTION_OBJECT_H
17 #ifdef ZEND_ENGINE_2
18
19 #include "zend_exceptions.h"
20
21 PHP_MINIT_FUNCTION(http_exception_object);
22
23 #define HTTP_EX_DEF_CE http_exception_object_ce
24 #define HTTP_EX_CE(name) http_ ##name## _exception_object_ce
25
26 extern zend_class_entry *http_exception_object_ce;
27 extern zend_class_entry *HTTP_EX_CE(runtime);
28 extern zend_class_entry *HTTP_EX_CE(header);
29 extern zend_class_entry *HTTP_EX_CE(malformed_headers);
30 extern zend_class_entry *HTTP_EX_CE(request_method);
31 extern zend_class_entry *HTTP_EX_CE(message_type);
32 extern zend_class_entry *HTTP_EX_CE(invalid_param);
33 extern zend_class_entry *HTTP_EX_CE(encoding);
34 extern zend_class_entry *HTTP_EX_CE(request);
35 extern zend_class_entry *HTTP_EX_CE(request_pool);
36 extern zend_class_entry *HTTP_EX_CE(socket);
37 extern zend_class_entry *HTTP_EX_CE(response);
38 extern zend_class_entry *HTTP_EX_CE(url);
39 extern zend_function_entry http_exception_object_fe[];
40
41 #define http_exception_get_default _http_exception_get_default
42 extern zend_class_entry *_http_exception_get_default();
43
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);
46
47 PHP_METHOD(HttpException, __toString);
48
49 #endif
50 #endif
51
52 /*
53 * Local variables:
54 * tab-width: 4
55 * c-basic-offset: 4
56 * End:
57 * vim600: noet sw=4 ts=4 fdm=marker
58 * vim<600: noet sw=4 ts=4
59 */
60