#21262 [Com]: crash or fail when outputting large amounts of text quickly

From: Date: Sun, 29 Dec 2002 18:01:41 +0000
Subject: #21262 [Com]: crash or fail when outputting large amounts of text quickly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28685@lists.php.net to get a copy of this message
ID: 21262 Comment by: spagmoid@yahoo.com Reported By: spagmoid@yahoo.com Status: Open Bug Type: Reproducible crash Operating System: WinXP PHP Version: 4.3.0 New Comment: Setting implicit_flush to ON does not fix it - so maybe adding flush() only helps because it slows it down..? Also, messing with output_buffering has no effect. This problem has been present ever since I started using PHP. Maybe a memory overflow? Can anyone else repro? (note this only happens with the sapi/mod version) Previous Comments: ------------------------------------------------------------------------ [2002-12-29 00:05:14] spagmoid@yahoo.com On the SAPI version of php in Apache under WinXP: for($Loop=0 ; $Loop<100000 ; $Loop++) { echo "blah $Loop "; } (usually) causes IE to abort loading and reload the page many times; eventually it just shows the standard "The page cannot be displayed", "Cannot find server or DNS Error". Netscape simply aborts in the middle, usually around 50,000. But, sometimes it works fine. If you add a flush() in the loop, the problem goes away. Nothing shows up in the PHP or server error logs, so I assume its a crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21262&edit=1

« previous php.bugs (#28685) next »