summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2015-03-25 12:07:25 +0800
committerXinchen Hui <laruence@php.net>2015-03-25 12:07:25 +0800
commit76c1ec5e96640e3076c105bde2cccfceb7557690 (patch)
treea0dd780ab6f6239a7032f3fc91a4bbdaf23f4707
parenta52385fc020027e057f349c75a9bbc6174ef4e0e (diff)
downloadphp-git-76c1ec5e96640e3076c105bde2cccfceb7557690.tar.gz
Bug #69293 NEW segfault when using SoapClient::__setSoapHeader (bisected, regression)
This was a typo introduced in c8eaca013a3922e8383def6158ece2b63f6ec483
-rw-r--r--ext/soap/php_encoding.c2
1 files changed, 1 insertions, 1 deletions
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);
}