moriyoshi Mon Nov 24 01:04:40 2003 EDT
Modified files:
/php-src/ext/xml compat.c
Log:
Partial fix for bug #25803 (xml_get_current_byte_index() always returns 0)
Index: php-src/ext/xml/compat.c
diff -u php-src/ext/xml/compat.c:1.19 php-src/ext/xml/compat.c:1.20
--- php-src/ext/xml/compat.c:1.19 Mon Sep 29 07:35:39 2003
+++ php-src/ext/xml/compat.c Mon Nov 24 01:04:39 2003
@@ -629,7 +629,8 @@
int
XML_GetCurrentByteIndex(XML_Parser parser)
{
- return parser->parser->input->consumed;
+ return parser->parser->input->consumed +
+ (parser->parser->input->cur - parser->parser->input->base);
}
const XML_Char *XML_ExpatVersion(void)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php