ID: 38966 Updated by: [EMAIL PROTECTED] Reported By: dgbauleo at yahoo dot com dot br -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Windows XP PHP Version: 5.1.6 New Comment:
Yes, PHP just doesn't have any error messages in pt_BR. Previous Comments: ------------------------------------------------------------------------ [2006-09-26 23:22:47] dgbauleo at yahoo dot com dot br I installed PHP 4.4.4, and now I receive the error "Bad file descriptor". Is this really an issue with my OS? ------------------------------------------------------------------------ [2006-09-26 21:28:25] [EMAIL PROTECTED] >Falha de uma chamada ao sistema que não deveria falhar nunca. This is what your OS says. ------------------------------------------------------------------------ [2006-09-26 21:23:21] dgbauleo at yahoo dot com dot br 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 this bug report at http://bugs.php.net/?id=38966&edit=1