- provide persistent storage for things curl might use on curl_easy_cleanup
[m6w6/ext-http] / http_request_info.c
index 110021102687bd9594907c186e015c2d04f1ef69..1d12f36d397f0e26ee05f2c0dbd44f310c251844 100644 (file)
@@ -125,7 +125,7 @@ PHP_HTTP_API void _http_request_info(http_request *request, HashTable *info)
        }
 #endif
 /* END */
-       add_assoc_string_ex(&array, "error", sizeof("error"), request->_error, 1);
+       add_assoc_string_ex(&array, "error", sizeof("error"), http_request_storage_get(request->ch)->errorbuffer, 1);
 }
 /* }}} */