php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1556 Successive file() or readfile() calls don't work.
Submitted: 1999-06-17 02:42 UTC Modified: 1999-06-18 11:50 UTC
From: mtippett at ticons dot com dot au Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.9 OS: Solaris 2.5.1/Apache 1.3.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mtippett at ticons dot com dot au
New email:
PHP Version: OS:

 

 [1999-06-17 02:42 UTC] mtippett at ticons dot com dot au
test.phtml
<?
	readfile("http://macra:29080/test2.phtml");
	readfile("http://macra:29080/test2.phtml");
	readfile("http://macra:29080/test2.phtml");
?>


test2.phtml
<?
	echo "Here!<BR>\n";
?>


Produces the following
======
Here!

Warning: ReadFile("http://macra:29080/test2.phtml") - Error 0 in
/project/dev/info/dev_mtippett/cr_phpenvconf/infoshop/InfoShopBin/htdocs/test.phtml on line 3

Warning: ReadFile("http://macra:29080/test2.phtml") - Error 0 in
/project/dev/info/dev_mtippett/cr_phpenvconf/infoshop/InfoShopBin/htdocs/test.phtml on line 4
=======

The truss output does the following (summarised),

	Open socket,
	write request
	read response
	close socket

	Open socket,
	Write request
	close socket

	...

And hence doesn't return any data. for the successive requests.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-17 04:22 UTC] mtippett at ticons dot com dot au
php 3.0.3 works.
 [1999-06-17 17:17 UTC] mtippett at ticons dot com dot au
3.0.8 Doesn't work at all...  More version numbers to come
 [1999-06-18 11:50 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri Oct 09 22:00:02 2026 UTC