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
 [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 02:00:01 2026 UTC