Ask a Question related to PHP Bugs, Design and Development.
-
dgbauleo at yahoo dot com dot br #1
#38966 [NEW]: file() an external address returns a weird error message
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([url]http://rss.terra.com.br/0,,EI4795,00.xml[/url]) [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 [url]http://bugs.php.net/?id=38966&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=38966&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=38966&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=38966&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=38966&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=38966&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=38966&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=38966&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=38966&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=38966&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=38966&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=38966&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=38966&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=38966&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=38966&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=38966&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=38966&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=38966&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=38966&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=38966&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=38966&r=mysqlcfg[/url]
dgbauleo at yahoo dot com dot br Guest
-
Edit Button returns error message
When I click the Edit button on the home page, it lets me edit. When I navigate to any other page, it returns the error message "you can't edit this... -
#38966 [Opn->Bgs]: file() an external address returns a weird error message
ID: 38966 Updated by: tony2001@php.net Reported By: dgbauleo at yahoo dot com dot br -Status: Open +Status: ... -
Help: file() function returns "Message to long" warning. What is this about ?
Hi people: I'm experiencing the following problem and don't know what it is about. Any help greatly appreciated: My script retrieves the data... -
Weird message when starting, but no error
I installed PS 7 for the first time on XP and got this when opening PS. It said "You currently have Adobe Photoshop's primary Scratch and Windows'... -
recvfrom returns with an error code of 14, EFAULT "Bad Address"
I'll post the code at the bottom of the post. Whenever I try to retreive a udp packet sent via broadcast I get the errorcode EFAULT(bad address).... -
dgbauleo at yahoo dot com dot br #2
#38966 [Bgs->Opn]: file() an external address returns a weird error message
ID: 38966
User updated by: dgbauleo at yahoo dot com dot br
Reported By: dgbauleo at yahoo dot com dot br
-Status: Bogus
+Status: Open
Bug Type: Filesystem function related
Operating System: Windows XP
PHP Version: 5.1.6
New Comment:
I installed PHP 4.4.4, and now I receive the error "Bad file
descriptor". Is this really an issue with my OS?
Previous Comments:
------------------------------------------------------------------------
[2006-09-26 21:28:25] [email]tony2001@php.net[/email]
This is what your OS says.>Falha de uma chamada ao sistema que não deveria falhar nunca.
------------------------------------------------------------------------
[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([url]http://rss.terra.com.br/0,,EI4795,00.xml[/url])
[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 [url]http://bugs.php.net/?id=38966&edit=1[/url]
dgbauleo at yahoo dot com dot br Guest
-
tony2001@php.net #3
#38966 [Opn->Bgs]: file() an external address returns a weird error message
ID: 38966
Updated by: [email]tony2001@php.net[/email]
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]tony2001@php.net[/email]
This is what your OS says.>Falha de uma chamada ao sistema que não deveria falhar nunca.
------------------------------------------------------------------------
[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([url]http://rss.terra.com.br/0,,EI4795,00.xml[/url])
[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 [url]http://bugs.php.net/?id=38966&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

