projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
5389d7b
)
fix crahs with empty urls because of typo
author
Michael Wallner
<mike@php.net>
Wed, 29 Feb 2012 08:26:11 +0000
(08:26 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 29 Feb 2012 08:26:11 +0000
(08:26 +0000)
php_http_url.c
patch
|
blob
|
history
diff --git
a/php_http_url.c
b/php_http_url.c
index b9ea708ce3512477ef3aacd59bf833eaf46bb8ef..40ed57ec8c9fb43fe92ac6fb5c3fd7c578f0a49f 100644
(file)
--- 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;
}