- use PHP macros, so that it is obvious when to call what
[m6w6/ext-http] / http_response_object.c
index 72289b65f291fc71025eb04262abb32fdd03695c..9193590266ebbf31cd116c6d8189bffd1e1f05e6 100644 (file)
@@ -214,10 +214,11 @@ zend_function_entry http_response_object_fe[] = {
        EMPTY_FUNCTION_ENTRY
 };
 
-void _http_response_object_init(INIT_FUNC_ARGS)
+PHP_MINIT_FUNCTION(http_response_object)
 {
        HTTP_REGISTER_CLASS(HttpResponse, http_response_object, NULL, 0);
        http_response_object_declare_default_properties();
+       return SUCCESS;
 }
 
 static inline void _http_response_object_declare_default_properties(TSRMLS_D)