don't crash if user extends abstract classes
[m6w6/ext-http] / php_http_client_pool_curl.c
index b6d39e31ce3d22de9367d856fb40fd93909a5df2..12d9454d9f0781e478d6fba3f52368fda8be6c0c 100644 (file)
@@ -532,7 +532,7 @@ PHP_MINIT_FUNCTION(http_client_pool_curl)
                return FAILURE;
        }
 
-       PHP_HTTP_REGISTER_CLASS(http\\Client\\Pool, CURL, http_client_pool_curl, php_http_client_pool_class_entry, 0);
+       PHP_HTTP_REGISTER_CLASS(http\\Client\\Pool, CURL, http_client_pool_curl, php_http_client_pool_get_class_entry(), 0);
        php_http_client_pool_curl_class_entry->create_object = php_http_client_pool_curl_object_new;
 
        return SUCCESS;