#ifdef ZEND_ENGINE_2
+#include "zend_interfaces.h"
#include "ext/standard/url.h"
#include "php_http_api.h"
#include "php_http_request_object.h"
#ifndef WONKY
-# include "zend_interfaces.h"
# ifdef HAVE_SPL
/* SPL doesn't install its headers */
extern PHPAPI zend_class_entry *spl_ce_Countable;
memset(&hurl, 0, sizeof(php_url));
hurl.host = host ? Z_STRVAL_P(host) : NULL;
- http_build_url(purl, &hurl, NULL, &url, NULL);
+ http_build_url(HTTP_URL_REPLACE, purl, &hurl, NULL, &url, NULL);
php_url_free(purl);
add_assoc_string(array, "url", url, 0);