#37873 [Opn->Bgs]: File() function is not working
| From: | tony2001@php.net | Date: | Wed, 21 Jun 2006 11:35:28 +0000 |
| Subject: | #37873 [Opn->Bgs]: File() function is not working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98631@lists.php.net to get a copy of this message | ||
ID: 37873
Updated by: tony2001@php.net
Reported By: msho at cyber-linkz dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows 2003
PHP Version: 4.4.2
New Comment:
Fixed in CVS several months ago.
Previous Comments:
------------------------------------------------------------------------
[2006-06-21 11:28:05] msho at cyber-linkz dot com
Description:
------------
When executing the script via CGI, file() function does not working
fine on opening files via URL.
There is no error shown or result returned.
Reproduce code:
---------------
<?
$lines = file("http://yahoo.com");
echo "Total Lines: ".count($lines);
?>
Expected result:
----------------
nothing output from the script.
Actual result:
--------------
Total Lines: xxx
Where xxx should be the total lines > 0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37873&edit=1