#50767 [Asn->Fbk]: XMLReader does not accept zip stream
| From: | pajoye@php.net | Date: | Mon, 18 Jan 2010 17:32:53 +0000 |
| Subject: | #50767 [Asn->Fbk]: XMLReader does not accept zip stream | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146773@lists.php.net to get a copy of this message | ||
ID: 50767
Updated by: pajoye@php.net
Reported By: jhgundersen at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: Streams related
Operating System: Ubuntu 9.10
PHP Version: 5.3.1
Assigned To: pajoye
New Comment:
It works just fine here. It is rather expected as both
file_get_contents and xmlreader use the exact same code to read a zip
entry.
Please provide a link to the archive you use for this test or double
check that you actually load the zip extension for this test.
Previous Comments:
------------------------------------------------------------------------
[2010-01-15 15:19:49] jhgundersen at gmail dot com
Zip stream works with file_get_contents, I can open the test.xml with
zip archive
------------------------------------------------------------------------
[2010-01-15 14:34:27] johannes@php.net
Are you sure you have the zip extension loaded?
------------------------------------------------------------------------
[2010-01-15 14:30:13] jhgundersen at gmail dot com
Description:
------------
XMLReader has stopped working with zip streams.
It easy to reproduce:
Make a zip file named test.zip with a single file named test.xml
Reproduce code:
---------------
echo file_get_contents('zip://test.zip#test.xml');
$reader = new XMLReader()
$reader->open('zip://test.zip#test.xml');
Expected result:
----------------
output of test.xml and no crash from xmlreader
Actual result:
--------------
output from test.xml is ok, but xmlreader crashes with:
XMLReader::open(): Unable to open source data
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50767&edit=1