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

From: Date: Sun, 16 Jun 2002 12:59:20 +0000
Subject: Bug #2494 Updated: response over 511 characters from fopen of a cgi file fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10712@lists.php.net to get a copy of this message
ID: 2494 Updated by: sander@php.net Reported By: support@teamcpr.com -Status: Open +Status: Bogus Bug Type: Misbehaving function Operating System: windows 98 PHP Version: 3.0.11 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-10-11 22:37:23] support@teamcpr.com 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2494&edit=1

« previous php.bugs (#10712) next »