- parameter to set*() and add*() methods is optional
[m6w6/ext-http] / http_message_object.c
index 8365a593af3bd3365d57b3ecf0eb7ed2500791cf..18d3793dea0d90a55216af845a9eefdff253f168 100644 (file)
@@ -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, "");