cvs: php-src(PHP_5_2) /ext/soap php_schema.c
| From: | Antony Dovgal | Date: | Mon, 19 Jun 2006 11:43:45 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/soap php_schema.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38792@lists.php.net to get a copy of this message | ||
tony2001 Mon Jun 19 11:43:45 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/soap php_schema.c
Log:
MFH: fix #37807 (segmentation fault during SOAP schema import)
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_schema.c?r1=1.58.2.6&r2=1.58.2.6.2.1&diff_format=u
Index: php-src/ext/soap/php_schema.c
diff -u php-src/ext/soap/php_schema.c:1.58.2.6 php-src/ext/soap/php_schema.c:1.58.2.6.2.1
--- php-src/ext/soap/php_schema.c:1.58.2.6 Sun Apr 9 23:35:51 2006
+++ php-src/ext/soap/php_schema.c Mon Jun 19 11:43:45 2006
@@ -17,7 +17,7 @@
| Dmitry Stogov <dmitry@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_schema.c,v 1.58.2.6 2006/04/09 23:35:51 andrei Exp $ */
+/* $Id: php_schema.c,v 1.58.2.6.2.1 2006/06/19 11:43:45 tony2001 Exp $ */
#include "php_soap.h"
#include "libxml/uri.h"
@@ -115,7 +115,7 @@
if (import) {
if (ns != NULL && (new_tns == NULL ||
strcmp(ns->children->content,new_tns->children->content) != 0)) {
xmlFreeDoc(doc);
- soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s',
unexpected 'targetNamespace'='%s'", location,
new_tns->children->content);
+ soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s',
unexpected 'targetNamespace'='%s'", location, ns->children->content);
}
if (ns == NULL && new_tns != NULL) {
xmlFreeDoc(doc);