#50767 [Asn-Fbk]: XMLReader does not accept zip stream

2010-01-23 Thread rrichards
 ID:   50767
 Updated by:   rricha...@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:  rrichards
 New Comment:

Check all your error logs to see if anything unexpected happened. I
also  
cannot reproduce this. Have tried it on 3 different OSs and it has 
worked properly on each


Previous Comments:


[2010-01-21 10:07:51] j...@php.net

Rob, feedback was given.



[2010-01-19 12:22:18] jhgundersen at gmail dot com

phpinfo gives me: 
libxml Version  2.7.3



[2010-01-19 12:05:14] rricha...@php.net

What version of libxml2 are you using?



[2010-01-19 09:36:31] paj...@php.net

Richard, can you take a look please? Maybe it will ring a bell? libxml
stream bug or smtg else, but I can't reproduce it here, on unix (ubuntu
9.10) or win.



[2010-01-19 08:27:02] jhgundersen at gmail dot com

And it happens with every zip file I've tried.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50767

-- 
Edit this bug report at http://bugs.php.net/?id=50767edit=1



#50767 [Asn-Fbk]: XMLReader does not accept zip stream

2010-01-19 Thread rrichards
 ID:   50767
 Updated by:   rricha...@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:  rrichards
 New Comment:

What version of libxml2 are you using?


Previous Comments:


[2010-01-19 09:36:31] paj...@php.net

Richard, can you take a look please? Maybe it will ring a bell? libxml
stream bug or smtg else, but I can't reproduce it here, on unix (ubuntu
9.10) or win.



[2010-01-19 08:27:02] jhgundersen at gmail dot com

And it happens with every zip file I've tried.



[2010-01-19 08:21:00] jhgundersen at gmail dot com

the zip extension is loaded:

Zip: enabled 
Extension Version: $Id: php_zip.c,v 1.1.2.38.2.29 2009/02/24 23:55:14
iliaa Exp $ 
Zip version:1.9.1 
Libzip version: 0.9.0


I totally agree that it is weird that the zip protocol seems to be
working everywhere else but with xmlreader.



[2010-01-18 17:32:53] paj...@php.net

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.



[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



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50767

-- 
Edit this bug report at http://bugs.php.net/?id=50767edit=1



#50767 [Asn-Fbk]: XMLReader does not accept zip stream

2010-01-18 Thread pajoye
 ID:   50767
 Updated by:   paj...@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] johan...@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=50767edit=1