cvs: php-src /ext/simplexml simplexml.c
| From: | Marcus Boerger | Date: | Sun, 26 Oct 2003 13:27:04 +0000 |
| Subject: | cvs: php-src /ext/simplexml simplexml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24278@lists.php.net to get a copy of this message | ||
helly Sun Oct 26 08:27:04 2003 EDT
Modified files:
/php-src/ext/simplexml simplexml.c
Log:
Fix memory corruption
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.72 php-src/ext/simplexml/simplexml.c:1.73
--- php-src/ext/simplexml/simplexml.c:1.72 Sun Oct 26 08:11:56 2003
+++ php-src/ext/simplexml/simplexml.c Sun Oct 26 08:27:03 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: simplexml.c,v 1.72 2003/10/26 13:11:56 helly Exp $ */
+/* $Id: simplexml.c,v 1.73 2003/10/26 13:27:03 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -135,7 +135,7 @@
MAKE_STD_ZVAL(value);
contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, attr->children, 1);
- ZVAL_STRING(value, contents, 0);
+ ZVAL_STRING(value, contents, 1);
APPEND_CUR_ELEMENT(counter, value);
}
attr = attr->next;
@@ -1207,7 +1207,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Simplexml support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.72 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.73 $");
php_info_print_table_row(2, "Schema support",
#ifdef LIBXML_SCHEMAS_ENABLED
"enabled");