From: Michael Wallner Date: Wed, 29 Feb 2012 08:26:11 +0000 (+0000) Subject: fix crahs with empty urls because of typo X-Git-Tag: DEV_2-before-client~36 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1421b2b78469a66ebe3cd2958a608de9a036bca9;p=m6w6%2Fext-http fix crahs with empty urls because of typo --- diff --git a/php_http_url.c b/php_http_url.c index b9ea708..40ed57e 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -495,7 +495,7 @@ PHP_METHOD(HttpUrl, __construct) default: { zval *cpy = php_http_ztyp(IS_STRING, new_url); - new_purl = php_url_parse(Z_STRVAL_P(new_url)); + new_purl = php_url_parse(Z_STRVAL_P(cpy)); zval_ptr_dtor(&cpy); break; } @@ -513,7 +513,7 @@ PHP_METHOD(HttpUrl, __construct) default: { zval *cpy = php_http_ztyp(IS_STRING, old_url); - old_purl = php_url_parse(Z_STRVAL_P(old_url)); + old_purl = php_url_parse(Z_STRVAL_P(cpy)); zval_ptr_dtor(&cpy); break; }