php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2605 file() shocks on HTTP retrieval
Submitted: 1999-10-26 11:10 UTC Modified: 2000-07-28 12:23 UTC
From: rousseau at neuronnexion dot fr Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.13 OS: Linux / Alpha
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: rousseau at neuronnexion dot fr
New email:
PHP Version: OS:

 

 [1999-10-26 11:10 UTC] rousseau at neuronnexion dot fr
Using PHP 3.0.12, Apache 1.3.9 on Linux / Alpha

A script such as :

<?
$lines = file ("htttp://www.altavista.com");
for ($i = 0; $i < count ($lines); $i++) {
        print $lines[$i];
}
?>

shocks on execution with a :

   Warning: Invalid URL specified, http://www.altavista.com in
   /home/web/nnx/services/listes/listesman/tliste.phtml on line 3

I tried as a workaround to use the Snoopy class found on http://www.phpinsider.com/php/code/, without much further success

When trying to fetch the same page, it shocks on line 72, which reads :

                $URI_PARTS = parse_url($URI);

So I strongly suspect a probleme with the internal function that parses URL...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-01-08 06:44 UTC] sas at cvs dot php dot net
Fixed in 3.0.13. Thanks for your report.
 [2000-01-12 06:04 UTC] rousseau at neuronnexion dot fr
PHP updated to 3.0.13, Apache 1.39, it still barfs the same way on Linux/Alpha

 [2000-07-28 12:23 UTC] hholzgra@php.net
should be working on latest php 3 and 4 

please report if it still breaks on linux/alpha,
might be a 64bit issue then?

(or did you really have htttp: instead of http:

 in your code as in the sample ...? )
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jul 02 07:00:02 2026 UTC