diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-12-07 19:24:55 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-07 19:24:55 +0300 |
commit | 6a9d2b2190923bfbc7b7caa1462ba95965a1b991 (patch) | |
tree | 26d1695b07a29a873e5fcd74cd4af47c89454f78 /ext/soap/php_sdl.c | |
parent | c890d469fab27500f0fa1070dccb16b36aa8be76 (diff) | |
download | php-git-6a9d2b2190923bfbc7b7caa1462ba95965a1b991.tar.gz |
Cleanup type conversion
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index b8f1911f69..08f750bea9 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -3250,16 +3250,13 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl) Z_TYPE_P(proxy_host) == IS_STRING && (proxy_port = zend_hash_str_find(Z_OBJPROP_P(this_ptr), "_proxy_port", sizeof("_proxy_port")-1)) != NULL && Z_TYPE_P(proxy_port) == IS_LONG) { - zval str_port, str_proxy; + zval str_proxy; smart_str proxy = {0}; - ZVAL_DUP(&str_port, proxy_port); - convert_to_string(&str_port); smart_str_appends(&proxy,"tcp://"); smart_str_appends(&proxy,Z_STRVAL_P(proxy_host)); smart_str_appends(&proxy,":"); - smart_str_appends(&proxy,Z_STRVAL(str_port)); + smart_str_append_long(&proxy,Z_LVAL_P(proxy_port)); smart_str_0(&proxy); - zval_dtor(&str_port); ZVAL_NEW_STR(&str_proxy, proxy.s); if (!context) { |