diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-09-19 15:41:01 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-09-19 15:41:01 +0400 |
commit | 3bc8a958c5ec647adbe409ee6411ae7ed6a3dc3b (patch) | |
tree | fb2c0e55eacad99b2dbd7e8fbe0137a861714ce7 /ext/soap/php_sdl.c | |
parent | 3ec7c2808420ad58145d6c6b5aeb1293e81ae12b (diff) | |
download | php-git-3bc8a958c5ec647adbe409ee6411ae7ed6a3dc3b.tar.gz |
Fixed useless or duplicated IS_INTERNED() checks
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 587695b943..c7e52dfb8c 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -292,7 +292,7 @@ void sdl_set_uri_credentials(sdlCtx *ctx, char *uri TSRMLS_DC) zval new_header; rest += 2; - ZVAL_STR(&new_header, zend_string_alloc(Z_STRLEN_P(header) - (rest - s), 0)); + ZVAL_NEW_STR(&new_header, zend_string_alloc(Z_STRLEN_P(header) - (rest - s), 0)); memcpy(Z_STRVAL(new_header), Z_STRVAL_P(header), s - Z_STRVAL_P(header)); memcpy(Z_STRVAL(new_header) + (s - Z_STRVAL_P(header)), rest, Z_STRLEN_P(header) - (rest - Z_STRVAL_P(header)) + 1); ZVAL_COPY(&ctx->old_header, header); @@ -3250,8 +3250,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl TSRMLS_DC) smart_str_appends(&proxy,Z_STRVAL(str_port)); smart_str_0(&proxy); zval_dtor(&str_port); - ZVAL_STR(&str_proxy, zend_string_copy(proxy.s)); - smart_str_free(&proxy); + ZVAL_NEW_STR(&str_proxy, proxy.s); if (!context) { context = php_stream_context_alloc(TSRMLS_C); |