projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixed bug #15800
[m6w6/ext-http]
/
php_http_url_api.h
diff --git
a/php_http_url_api.h
b/php_http_url_api.h
index 70c1aae867093b587305e1524c32b347d3bace5f..cc15461b98887ba233324be55e1190cbe04e1928 100644
(file)
--- a/
php_http_url_api.h
+++ b/
php_http_url_api.h
@@
-93,11
+93,10
@@
static inline php_url *_http_url_from_struct(php_url *url, HashTable *ht TSRMLS_
if (Z_TYPE_PP(e) == IS_LONG) {
url->port = (unsigned short) Z_LVAL_PP(e);
} else {
if (Z_TYPE_PP(e) == IS_LONG) {
url->port = (unsigned short) Z_LVAL_PP(e);
} else {
- zval *o =
*e
;
+ zval *o =
http_zsep(IS_LONG, *e)
;
- convert_to_long_ex(e);
- url->port = (unsigned short) Z_LVAL_PP(e);
- if (o != *e) zval_ptr_dtor(e);
+ url->port = (unsigned short) Z_LVAL_P(o);
+ zval_ptr_dtor(&o);
}
}
}
}