sterling Sun Jun 29 23:11:03 2003 EDT
Modified files:
/php-src/ext/simplexml simplexml.c
Log:
and my first user doesn't even like goto's. sniffle
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.45 php-src/ext/simplexml/simplexml.c:1.46
--- php-src/ext/simplexml/simplexml.c:1.45 Sun Jun 29 23:08:48 2003
+++ php-src/ext/simplexml/simplexml.c Sun Jun 29 23:11:03 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: simplexml.c,v 1.45 2003/06/30 03:08:48 sterling Exp $ */
+/* $Id: simplexml.c,v 1.46 2003/06/30 03:11:03 sterling Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -147,10 +147,10 @@
while (node) {
SKIP_TEXT(node);
- if (node->ns) {
+ do if (node->ns) {
if (node->parent->ns) {
if (!xmlStrcmp(node->ns->href,
node->parent->ns->href)) {
- goto this_iter;
+ break;
}
}
@@ -160,8 +160,7 @@
APPEND_CUR_ELEMENT(counter, value);
goto next_iter;
}
- }
-this_iter:
+ } while (0);
if (!xmlStrcmp(node->name, name)) {
APPEND_PREV_ELEMENT(counter, value);
@@ -1060,7 +1059,7 @@
{
php_info_print_table_start();
php_info_print_table_header(2, "Simplexml support", "enabled");
- php_info_print_table_row(2, "Revision", "$Revision: 1.45 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.46 $");
php_info_print_table_end();
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php