From: dgbauleo at yahoo dot com dot br Operating system: Windows XP PHP version: 5.1.6 PHP Bug Type: Filesystem function related Bug description: file() an external address returns a weird error message
Description: ------------ I'm trying to pass an external link to the file() function, but it returns a weird error message in portuguese. Assuming that I live in Brazil, the message in portuguese is not the problem. What I don't understand is that the code was working, then suddenly it started to raise the error message. Reproduce code: --------------- <?php $aOrigem = file('http://rss.terra.com.br/0,,EI4795,00.xml'); ?> Expected result: ---------------- The lines of the file 0,,EI4795,00.xml should be passed as an array to $aOrigem. Actual result: -------------- I received this error message: Warning: file(http://rss.terra.com.br/0,,EI4795,00.xml) [function.file]: failed to open stream: Falha de uma chamada ao sistema que não deveria falhar nunca. in D:\WebRoot\atualiza_xml.php on line 2 Translating the error message to english: "Fail in a system call which should never have failed." I don't believe this is a coding issue, since the file is only 1 line long, and this code was working about 2 hours ago. -- Edit bug report at http://bugs.php.net/?id=38966&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38966&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38966&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38966&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38966&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38966&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38966&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38966&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38966&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38966&r=support Expected behavior: http://bugs.php.net/fix.php?id=38966&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38966&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38966&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38966&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38966&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38966&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38966&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38966&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38966&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38966&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38966&r=mysqlcfg