#21262 [Opn->Fbk]: crash or fail when outputting large amounts of text quickly

From: Date: Thu, 23 Jan 2003 01:47:57 +0000
Subject: #21262 [Opn->Fbk]: crash or fail when outputting large amounts of text quickly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30990@lists.php.net to get a copy of this message
 ID:               21262
 Updated by:       sniper@php.net
 Reported By:      spagmoid@yahoo.com
-Status:           Open
+Status:           Feedback
 Bug Type:         Performance problem
 Operating System: WinXP
 PHP Version:      4.3.0
 New Comment:

Please provide a SHORT but complete example script that
can be used to reproduce this. (the one you provided doesn't cause any
crashes)



Previous Comments:
------------------------------------------------------------------------

[2003-01-22 19:41:51] spagmoid@yahoo.com

You are wrong.
If it was a memory error, PHP should display the standard out of memory
message.

AS I EXPLAINED, this also happens with very SMALL amounts of data.  The
use of large blocks of data is just an easy way to REPRO.  Surely there
must be more people working on PHP than you?

------------------------------------------------------------------------

[2003-01-22 17:12:39] iliaa@php.net

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

I've explained before and I will attempt to explain once again. When
output buffering is turned on the system does not output the text right
away but rather fills up a memory buffer that is displayed in one large
block. If the text you are trying to output exceeds the avaliable
system memory then the error you are seeing will occur. This cannot be
helped, the solution is to either disable output buffering or not use
things like gz_handler, which cause ALL of the output to be buffered in
memory rather then output the data in chunks (default chunk size 4096
bytes).

------------------------------------------------------------------------

[2003-01-16 10:20:56] spagmoid@yahoo.com

This bug has been present for over a year, maybe since the beginning of
PHP.  We're still getting people passing the buck..

------------------------------------------------------------------------

[2003-01-15 16:44:33] gmeakin@btinternet.com

I am using Apache version 2.0.43 with the sapi php module.

I downloaded the latest stable snapshot of php (4.3.1) but it still
reproduced the same orignial problem discussed.

Regards

------------------------------------------------------------------------

[2003-01-14 19:25:17] sniper@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip


(and what apache version is it?)


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/21262

-- 
Edit this bug report at http://bugs.php.net/?id=21262&edit=1



Thread (25 messages)

« previous php.bugs (#30990) next »