#38966 [NEW]: file() an external address returns a weird error message

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    1. 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...
    2. #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: ...
    3. 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...
    4. 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'...
    5. 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)....
  3. #2

    Default #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]
    >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([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

  4. #3

    Default #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]
    >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([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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139