From:             
Operating system: Windows
PHP version:      5.3.12
Package:          XML Reader
Bug Type:         Bug
Bug description:XMLReader::open(): Unable to open source data i

Description:
------------
It seems this function doesn't like long url's

$z = new XMLReader;
$z->open("http://images.gwales.com/cgi-bin/xmlif?userid=1&password=canolfan&sql=SELECT
* FROM (SELECT isbn,
price_vat,pub_code,available,title,author,publication_date,link_to_marketing,medium,prod_lang_code,c1.CATEGORY_DESCRIPTION
text_category,c2.CATEGORY_DESCRIPTION
text_sub_category,DESC1,DESC2,PROD_SIZE,PAGES, row_number() OVER (ORDER BY
ISBN) rn FROM PRODUCTS, CATEGORIES c1, CATEGORIES c2 WHERE INVALID='N' AND
ORDER_ALLOWED_OME='Y' AND c1.CATEGORY=PRODUCTS.CATEGORY AND
c2.CATEGORY=PRODUCTS.SUB_CATEGORY) WHERE rn BETWEEN 1 and 10 ORDER BY
rn");

returns
XMLReader::open(): Unable to open source data 

this error has started to apear since upgrading from php 5.2 to 5.3

Test script:
---------------
Tried
 $z = new XMLReader;
$z->open("http://www.w3schools.com/xml/cd_catalog.xml";);

works fine.


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

Reply via email to