cvs: php-src(PHP_5_2) / NEWS /ext/soap php_encoding.c /ext/soap/tests/bugs bug40609.phpt bug40609.wsdl
| From: | Dmitry Stogov | Date: | Sun, 25 Feb 2007 13:19:29 +0000 |
| Subject: | cvs: php-src(PHP_5_2) / NEWS /ext/soap php_encoding.c /ext/soap/tests/bugs bug40609.phpt bug40609.wsdl | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43279@lists.php.net to get a copy of this message | ||
dmitry Sun Feb 25 13:19:29 2007 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/soap/tests/bugs bug40609.phpt bug40609.wsdl
Modified files:
/php-src NEWS
/php-src/ext/soap php_encoding.c
Log:
Fixed bug #40609 (Segfaults when using more than one SoapVar in a request). (Rob, Dmitry)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.561&r2=1.2027.2.547.2.562&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.561 php-src/NEWS:1.2027.2.547.2.562
--- php-src/NEWS:1.2027.2.547.2.561 Sat Feb 24 21:30:56 2007
+++ php-src/NEWS Sun Feb 25 13:19:28 2007
@@ -10,6 +10,8 @@
- Added tidyNode::getParent() method (John, Nuno)
- Fixed zend_llist_remove_tail (Michael Wallner, Dmitry)
- Fixed bug #40621 (Crash when constructor called inappropriately). (Tony)
+- Fixed bug #40609 (Segfaults when using more than one SoapVar in a request).
+ (Rob, Dmitry)
- Fixed bug #40606 (umask is not being restored when request is finished).
(Tony)
- Fixed bug #40598 (libxml segfault). (Rob)
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_encoding.c?r1=1.103.2.21.2.23&r2=1.103.2.21.2.24&diff_format=u
Index: php-src/ext/soap/php_encoding.c
diff -u php-src/ext/soap/php_encoding.c:1.103.2.21.2.23
php-src/ext/soap/php_encoding.c:1.103.2.21.2.24
--- php-src/ext/soap/php_encoding.c:1.103.2.21.2.23 Sat Feb 24 02:17:26 2007
+++ php-src/ext/soap/php_encoding.c Sun Feb 25 13:19:29 2007
@@ -17,7 +17,7 @@
| Dmitry Stogov <dmitry@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_encoding.c,v 1.103.2.21.2.23 2007/02/24 02:17:26 helly Exp $ */
+/* $Id: php_encoding.c,v 1.103.2.21.2.24 2007/02/25 13:19:29 dmitry Exp $ */
#include <time.h>
@@ -2888,8 +2888,18 @@
ret = xmlNewTextLen(BAD_CAST(Z_STRVAL(tmp)), Z_STRLEN(tmp));
zval_dtor(&tmp);
}
+
ret->name = xmlStringTextNoenc;
- xmlAddChild(parent, ret);
+ ret->parent = parent;
+ ret->doc = parent->doc;
+ ret->prev = parent->last;
+ ret->next = NULL;
+ if (parent->last) {
+ parent->last->next = ret;
+ } else {
+ parent->children = ret;
+ }
+ parent->last = ret;
return ret;
}
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/tests/bugs/bug40609.phpt?view=markup&rev=1.1
Index: php-src/ext/soap/tests/bugs/bug40609.phpt
+++ php-src/ext/soap/tests/bugs/bug40609.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/tests/bugs/bug40609.wsdl?view=markup&rev=1.1
Index: php-src/ext/soap/tests/bugs/bug40609.wsdl
+++ php-src/ext/soap/tests/bugs/bug40609.wsdl