removed awkward custom error handling and http\Object base class
[m6w6/ext-http] / php_http_message.h
index ea747fe671558b30244594b7327c5f2d16df6ba3..32af834c8fc34f8eea9b165b5d66cdad639773c1 100644 (file)
 /* required minimum length of an HTTP message "HTTP/1.1" */
 #define PHP_HTTP_MESSAGE_MIN_SIZE 8
 #define PHP_HTTP_MESSAGE_TYPE(TYPE, msg) ((msg) && ((msg)->type == PHP_HTTP_ ##TYPE))
-#define PHP_HTTP_MESSAGE_TYPE_CHECK(type, msg, action) \
-               if (!PHP_HTTP_MESSAGE_TYPE(type, (msg))) { \
-                       php_http_error(HE_NOTICE, PHP_HTTP_E_MESSAGE_TYPE, "HttpMessage is not of type "#type); \
-                       action; \
-               }
 
 typedef php_http_info_type_t php_http_message_type_t;
 typedef struct php_http_message php_http_message_t;