X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_message_object.c;h=18d3793dea0d90a55216af845a9eefdff253f168;hp=8365a593af3bd3365d57b3ecf0eb7ed2500791cf;hb=76d019d55561c397209d49f7d594f2cfe022cdf9;hpb=b08947e98f1832091c8a9f6dea3799e0524d2822 diff --git a/http_message_object.c b/http_message_object.c index 8365a59..18d3793 100644 --- a/http_message_object.c +++ b/http_message_object.c @@ -30,6 +30,7 @@ #include "php_http_exception_object.h" #include "phpstr/phpstr.h" +#include "missing.h" ZEND_EXTERN_MODULE_GLOBALS(http); @@ -182,6 +183,10 @@ static inline void _http_message_object_declare_default_properties(TSRMLS_D) { zend_class_entry *ce = http_message_object_ce; + DCL_CONST(long, "NONE", HTTP_MSG_NONE); + DCL_CONST(long, "REQUEST", HTTP_MSG_REQUEST); + DCL_CONST(long, "RESPONSE", HTTP_MSG_RESPONSE); + DCL_PROP(PROTECTED, long, type, HTTP_MSG_NONE); DCL_PROP(PROTECTED, string, body, ""); DCL_PROP(PROTECTED, string, requestMethod, "");