Edit report at https://bugs.php.net/bug.php?id=61957&edit=1

 ID:                 61957
 Updated by:         paj...@php.net
 Reported by:        dean dot sanderson at 3dgroupuk dot com
 Summary:            XMLReader::open(): Unable to open source data i
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            XML Reader
 Operating System:   Windows
 PHP Version:        5.3.12
 Block user comment: N
 Private report:     N

 New Comment:

Encode the URI correctly and it should work fine.


Previous Comments:
------------------------------------------------------------------------
[2012-05-06 01:15:04] dean dot sanderson at 3dgroupuk dot com

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 this bug report at https://bugs.php.net/bug.php?id=61957&edit=1

Reply via email to