php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69288
Patch regression_bug_69085 revision 2015-03-24 14:24 UTC by thomas at shadowweb dot org

Patch regression_bug_69085 for Reproducible crash Bug #69288

Patch version 2015-03-24 14:24 UTC

Return to Bug #69288 | Download this patch
Patch Revisions:

Developer: thomas@shadowweb.org

--- ext/soap/php_encoding.c.org	2015-03-18 06:33:59.000000000 +0100
+++ ext/soap/php_encoding.c	2015-03-24 13:56:55.105706813 +0100
@@ -464,7 +464,7 @@
 			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);
 		}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 05:01:29 2024 UTC