Bug #1556: Successive file() or readfile() calls don't work.

From: Date: Thu, 17 Jun 1999 06:42:53 +0000
Subject: Bug #1556: Successive file() or readfile() calls don't work.
Groups: php.dev 
Request: Send a blank email to php-dev+get-7046@lists.php.net to get a copy of this message
From: mtippett@ticons.com.au Operating system: Solaris 2.5.1/Apache 1.3.6 PHP version: 3.0.9 PHP Bug Type: Misbehaving function Bug description: Successive file() or readfile() calls don't work. 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.

« previous php.dev (#7046) next »