ID: 48095 Updated by: f...@php.net Reported By: pigo_chu at hotmail dot com -Status: Open +Status: Verified Bug Type: *XML functions Operating System: win32 only - Windows XP SP3 PHP Version: 5.2.9 New Comment:
The URL mentioned passes http://www.w3.org/RDF/Validator/ as of now. 5.2.9 on Linux reads it correctly, 5.2.9-2 on XP / SP3 yields this result: PHP Warning: simplexml_load_file(): input conversion failed due to input error, bytes 0xA1 0xFE 0xA6 0xCC in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): input conversion failed due to input error, bytes 0xA1 0xFE 0xA6 0xCC in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): encoder errorhttp://www.nownews.com/rss/realtime.rdf:79: parser error : Premature end of data in tag title line 79 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): <title>粽子推薦 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): ^ in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): http://www.nownews.com/rss/realtime.rdf:79: parser error : Premature end of data in tag item line 77 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): <title>粽子推薦 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): ^ in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): http://www.nownews.com/rss/realtime.rdf:79: parser error : Premature end of data in tag RDF line 2 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): <title>粽子推薦 in D:\code\48095.php on line 2 PHP Warning: simplexml_load_file(): ^ in D:\code\48095.php on line 2 Previous Comments: ------------------------------------------------------------------------ [2009-04-28 03:25:07] pigo_chu at hotmail dot com Description: ------------ The url http://www.nownews.com/rss/realtime.rdf is rdf document Use any xml function(simplexml or domdocument) to load the url On Linux PHP 5.2.9 is ok On Windows XP SP3 has error Reproduce code: --------------- $doc = simplexml_load_file('http://www.nownews.com/rss/realtime.rdf'); var_dump($doc); Expected result: ---------------- output is 'false' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48095&edit=1