From:             jhgundersen at gmail dot com
Operating system: Ubuntu 9.10
PHP version:      5.3.1
PHP Bug Type:     Streams related
Bug description:  XMLReader does not accept zip stream

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 bug report at http://bugs.php.net/?id=50767&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50767&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50767&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50767&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50767&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50767&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50767&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50767&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50767&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50767&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50767&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50767&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50767&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50767&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50767&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50767&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50767&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50767&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50767&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50767&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50767&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50767&r=mysqlcfg

Reply via email to