X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=d1c6dba68f55f0082dbf7b2f9e82e64624775b37;hb=9a35b7682fede86cb0167d21a67fea38a6e85181;hp=571f521dd7886ceaf31ad6d16a9c09e701717dcc;hpb=b08947e98f1832091c8a9f6dea3799e0524d2822;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index 571f521..d1c6dba 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -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);