Req #75641 [Fbk->NoF]: XMLReader read progress in bytes

From: Date: Sun, 11 Apr 2021 04:22:10 +0000
Subject: Req #75641 [Fbk->NoF]: XMLReader read progress in bytes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233349@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75641&edit=1 ID: 75641 Updated by: php-bugs@lists.php.net Reported by: martin dot withaar at gmail dot com Summary: XMLReader read progress in bytes -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: XML Reader PHP Version: Next Minor Version Assigned To: cmb Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2021-04-01 12:40:36] cmb@php.net Related To: Bug #46706 ------------------------------------------------------------------------ [2021-04-01 10:28:35] cmb@php.net It seems to me there is a technical problem: while libxml2's xmlreader module has functions to get the the current line[1] and column number[2], it doesn't look like it can report the current position in bytes or code points. Would that information be sufficient for your purposes? [1] <http://xmlsoft.org/html/libxml-xmlreader.html#xmlTextReaderGetParserLineNumber> [2] <http://xmlsoft.org/html/libxml-xmlreader.html#xmlTextReaderGetParserColumnNumber> ------------------------------------------------------------------------ [2017-12-06 14:28:44] martin dot withaar at gmail dot com Description: ------------ It would be nice if a progressbar could be shown when reading large XML files. For this I need the read progress in bytes. That way I can calculate the progress using filesize like this: $progress / $filesize --- From manual page: http://www.php.net/book.xmlreader --- ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75641&edit=1

« previous php.bugs (#233349) next »