- ditch redundant http_split_response
[m6w6/ext-http] / http_functions.c
index 9f76881a8359beadf1224df9c4c0ab034f58e5a6..01df1a16231170a01f5b3083c67df62c60832e8a 100644 (file)
@@ -618,7 +618,7 @@ PHP_FUNCTION(http_split_response)
        MAKE_STD_ZVAL(zheaders);
        array_init(zheaders);
 
-       if (SUCCESS != http_split_response(zresponse, zheaders, zbody)) {
+       if (SUCCESS != http_split_response(Z_STRVAL_P(zresponse), Z_STRLEN_P(zresponse), Z_ARRVAL_P(zheaders), &Z_STRVAL_P(zbody), &Z_STRLEN_P(zbody))) {
                http_error(E_WARNING, HTTP_E_PARSE, "Could not parse HTTP response");
                RETURN_FALSE;
        }