Bug #2494: response over 511 characters from fopen of a cgi file fails

From: Date: Tue, 12 Oct 1999 02:37:23 +0000
Subject: Bug #2494: response over 511 characters from fopen of a cgi file fails
Groups: php.dev 
Request: Send a blank email to php-dev+get-11695@lists.php.net to get a copy of this message
From: support@teamcpr.com Operating system: windows 98 PHP version: 3.0.11 PHP Bug Type: Misbehaving function Bug description: response over 511 characters from fopen of a cgi file fails Create two files: test.php3 contains: <? $max = 511; for ($t = 1 ; $t <= $max ; $t++) print "A"; ?> caller.php3 contains: <? $infile = fopen("http://127.0.0.1/test.php3","r"); while (!feof($infile)) $response .= fgets($infile,255); fclose($infile); print $response; ?> Run it as is and you get a line of A's. If you increase $max, the call hangs.

« previous php.dev (#11695) next »