X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_url_api.h;h=940db8e61e68e1a544896a691079ad33c5b633ff;hp=70c1aae867093b587305e1524c32b347d3bace5f;hb=ad5f896b03adaa073134a00108a9cdf00720673a;hpb=51669004bbd20bcb4cd9d509799ff65e3998ea47 diff --git a/php_http_url_api.h b/php_http_url_api.h index 70c1aae..940db8e 100644 --- a/php_http_url_api.h +++ b/php_http_url_api.h @@ -6,7 +6,7 @@ | modification, are permitted provided that the conditions mentioned | | in the accompanying LICENSE file are met. | +--------------------------------------------------------------------+ - | Copyright (c) 2004-2007, Michael Wallner | + | Copyright (c) 2004-2010, Michael Wallner | +--------------------------------------------------------------------+ */ @@ -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); } }