X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_url_api.h;h=cc15461b98887ba233324be55e1190cbe04e1928;hp=70c1aae867093b587305e1524c32b347d3bace5f;hb=5ba379899fb1e05ede73674dc010ce8846e051c2;hpb=3790a41ee6c48417d9570ec507e6490bcde0736f diff --git a/php_http_url_api.h b/php_http_url_api.h index 70c1aae..cc15461 100644 --- 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 { - 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); } }