- Fix property handling
[m6w6/ext-http] / http_request_object.c
index 571f521dd7886ceaf31ad6d16a9c09e701717dcc..d1c6dba68f55f0082dbf7b2f9e82e64624775b37 100644 (file)
@@ -278,7 +278,7 @@ zend_function_entry http_request_object_fe[] = {
        HTTP_REQUEST_ALIAS(methodUnregister, http_request_method_unregister)
        HTTP_REQUEST_ALIAS(methodName, http_request_method_name)
        HTTP_REQUEST_ALIAS(methodExists, http_request_method_exists)
-
+       
        {NULL, NULL, NULL}
 };
 static zend_object_handlers http_request_object_handlers;
@@ -287,6 +287,8 @@ void _http_request_object_init(INIT_FUNC_ARGS)
 {
        HTTP_REGISTER_CLASS_EX(HttpRequest, http_request_object, NULL, 0);
 
+       _http_request_object_declare_default_properties(TSRMLS_C);
+
        /* HTTP/1.1 */
        HTTP_LONG_CONSTANT("HTTP_GET", HTTP_GET);
        HTTP_LONG_CONSTANT("HTTP_HEAD", HTTP_HEAD);