helly Fri Apr 14 12:18:15 2006 UTC
Modified files:
/php-src/ext/simplexml simplexml.c
Log:
- If node no longer exists then there won't be any data
http://cvs.php.net/viewcvs.cgi/php-src/ext/simplexml/simplexml.c?r1=1.203&r2=1.204&diff_format=u
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.203
php-src/ext/simplexml/simplexml.c:1.204
--- php-src/ext/simplexml/simplexml.c:1.203 Mon Apr 10 23:19:23 2006
+++ php-src/ext/simplexml/simplexml.c Fri Apr 14 12:18:15 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: simplexml.c,v 1.203 2006/04/10 23:19:23 helly Exp $ */
+/* $Id: simplexml.c,v 1.204 2006/04/14 12:18:15 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -950,6 +950,9 @@
}
GET_NODE(sxe, node);
+ if (!node) {
+ return rv;
+ }
if (1||sxe->iter.type != SXE_ITER_CHILD) {
if (sxe->iter.type == SXE_ITER_ELEMENT) {
node = php_sxe_get_first_node(sxe, node TSRMLS_CC);
@@ -2261,7 +2264,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Simplexml support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.203 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.204 $");
php_info_print_table_row(2, "Schema support",
#ifdef LIBXML_SCHEMAS_ENABLED
"enabled");
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php