From: Xinchen Hui Date: Wed, 25 Mar 2015 04:07:25 +0000 (+0800) Subject: Bug #69293 NEW segfault when using SoapClient::__setSoapHeader (bisected, regression) X-Git-Tag: php-5.5.24RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=76c1ec5e96640e3076c105bde2cccfceb7557690;p=php Bug #69293 NEW segfault when using SoapClient::__setSoapHeader (bisected, regression) This was a typo introduced in c8eaca013a3922e8383def6158ece2b63f6ec483 --- diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 58fed4f03c..e9cf9d6ea3 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -464,7 +464,7 @@ static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xml xmlNodeSetName(node, BAD_CAST(Z_STRVAL_PP(zname))); } if (zend_hash_find(ht, "enc_namens", sizeof("enc_namens"), (void **)&znamens) == SUCCESS && - Z_TYPE_PP(zname) == IS_STRING) { + Z_TYPE_PP(znamens) == IS_STRING) { xmlNsPtr nsp = encode_add_ns(node, Z_STRVAL_PP(znamens)); xmlSetNs(node, nsp); }