client test and fixes
[m6w6/ext-http] / php_http_client_curl.c
index fb8ecf678f3e5e07366f7e772fd18d6551704b2a..460f62bafa3f49e2af7eb7131281c67673ae7468 100644 (file)
@@ -1862,10 +1862,11 @@ PHP_MINIT_FUNCTION(http_client_curl)
 {
        php_http_options_t *options;
        php_http_client_driver_t driver = {
+               ZEND_STRL("curl"),
                &php_http_client_curl_ops
        };
 
-       if (SUCCESS != php_http_client_driver_add(ZEND_STRL("curl"), &driver)) {
+       if (SUCCESS != php_http_client_driver_add(&driver)) {
                        return FAILURE;
                }