|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesregression_bug_69085 (last revision 2015-03-24 14:24 UTC by thomas at shadowweb dot org)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-25 05:38 UTC] laruence@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: laruence
[2015-03-25 05:38 UTC] laruence@php.net
[2015-03-25 08:28 UTC] ondrej@php.net
[2015-04-11 04:35 UTC] tarik at opticempire dot com dot au
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ A bug/regression introduced in commit c8eaca013a3922e8383def6158ece2b63f6ec483 (for PHP 5.4) and b3ac3522534a75edb76312cf9a576e4624372123 (Merge to PHP 5.5) leads to reproductible segmentation faults, when using SOAP with PHP versions 5.4.39 and 5.5.23. I will not include a testscript, since the bug is obvious from the commit: - if (zend_hash_find(ht, "enc_namens", sizeof("enc_namens"), (void **)&znamens) == SUCCESS) { + if (zend_hash_find(ht, "enc_namens", sizeof("enc_namens"), (void **)&znamens) == SUCCESS && + Z_TYPE_PP(zname) == IS_STRING) { xmlNsPtr nsp = encode_add_ns(node, Z_STRVAL_PP(znamens)); xmlSetNs(node, nsp); } "Z_TYPE_PP(zname) == IS_STRING" should be "Z_TYPE_PP(znamens)", the included patch is for PHP 5.4.39.