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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 12:01:32 2024 UTC