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

From: Date: Thu, 01 Apr 2021 10:28:35 +0000
Subject: Req #75641 [Opn->Fbk]: XMLReader read progress in bytes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233118@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:         cmb@php.net
 Reported by:        martin dot withaar at gmail dot com
 Summary:            XMLReader read progress in bytes
-Status:             Open
+Status:             Feedback
 Type:               Feature/Change Request
 Package:            XML Reader
 PHP Version:        Next Minor Version
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#233118) next »