php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64233
Patch soapfault-patch-1 revision 2013-06-06 07:07 UTC by andreas dot lindemann at de dot bp dot com

Patch soapfault-patch-1 for SOAP related Bug #64233

Patch version 2013-06-06 07:07 UTC

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

Developer: andreas.lindemann@de.bp.com

--- ext/soap/soap.c.orig  2013-05-27 12:16:12.114788400 +0200
+++ ext/soap/soap.c 2013-05-27 12:16:38.409244400 +0200
@@ -3909,7 +3909,7 @@

    if (version == SOAP_1_1) {
      if (zend_hash_find(prop, "faultcode", sizeof("faultcode"), (void**)&tmp) == SUCCESS) {
-       int new_len;
+       size_t new_len;
        xmlNodePtr node = xmlNewNode(NULL, BAD_CAST("faultcode"));
        char *str = php_escape_html_entities((unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRMLS_CC);
        xmlAddChild(param, node);
@@ -3919,7 +3919,7 @@
          xmlNodeSetContent(node, code);
          xmlFree(code);
        } else {
-         xmlNodeSetContentLen(node, BAD_CAST(str), new_len);
+         xmlNodeSetContentLen(node, BAD_CAST(str), (int)new_len);
        }
        efree(str);
      }
@@ -3934,7 +3934,7 @@
      detail_name = "detail";
    } else {
      if (zend_hash_find(prop, "faultcode", sizeof("faultcode"), (void**)&tmp) == SUCCESS) {
-       int new_len;
+       size_t new_len;
        xmlNodePtr node = xmlNewChild(param, ns, BAD_CAST("Code"), NULL);
        char *str = php_escape_html_entities((unsigned char*)Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), &new_len, 0, 0, NULL TSRMLS_CC);
        node = xmlNewChild(node, ns, BAD_CAST("Value"), NULL);
@@ -3944,7 +3944,7 @@
          xmlNodeSetContent(node, code);
          xmlFree(code);
        } else {
-         xmlNodeSetContentLen(node, BAD_CAST(str), new_len);
+         xmlNodeSetContentLen(node, BAD_CAST(str), (int)new_len);
        }
        efree(str);
      }
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 11:01:30 2024 UTC