php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #75641 XMLReader read progress in bytes
Submitted: 2017-12-06 14:28 UTC Modified: 2021-04-11 04:22 UTC
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:3 (75.0%)
Same OS:3 (75.0%)
From: martin dot withaar at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: XML Reader
PHP Version: Next Minor Version OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: martin dot withaar at gmail dot com
New email:
PHP Version: OS:

 

 [2017-12-06 14:28 UTC] 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
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-04-01 10:28 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-04-01 10:28 UTC] 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>
 [2021-04-11 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 11:03:35 2021 UTC