php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38966 file() an external address returns a weird error message
Submitted: 2006-09-26 21:23 UTC Modified: 2006-09-27 07:30 UTC
From: dgbauleo at yahoo dot com dot br Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.1.6 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dgbauleo at yahoo dot com dot br
New email:
PHP Version: OS:

 

 [2006-09-26 21:23 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-26 21:28 UTC] tony2001@php.net
>Falha de uma chamada ao sistema que n?o deveria falhar nunca.
This is what your OS says.
 [2006-09-26 23:22 UTC] 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-27 07:30 UTC] tony2001@php.net
Yes, PHP just doesn't have any error messages in pt_BR.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 13:01:32 2025 UTC