From:             maddog2k at maddog2k dot net
Operating system: Linux
PHP version:      4CVS-2005-11-18 (snap)
PHP Bug Type:     Output Control
Bug description:  output_buffer set too low -> segfaulting Apache childs

Description:
------------
Bug #35264 was fixed, but this introduced a new Apache child segmentation
fault, under some conditions.

With PHP 4.4.0 and below, the following would work correctly with Apache
2.0.54/.55 : 

AddOutputFilter INCLUDES .php
AddType application/x-httpd-php .php

Then having a .php that contains multiple (eg. 2) <!--#include
virtual="/page.html" --> and for example about 24 thumbnails (of 4.0k
each), you read a segfault of an Apache child process in the error_log and
the page loading finishes and showing cut-off content.

Like I said, the segfault happens since the fix for bug #35264, before it
just didn't segfault but stopped loading.

When changing output_buffer to 0 or Off, no difference.
Only when I set output_buffer => 16384 in php.ini, the page loads
completely.

Strange thing here is that output buffering isn't used in the page at all,
or SSI by default must use buffering...

Seems to me that something has changed regarding buffering between 4.4.0
<-> higher versions.

Like the memory get's full or so, cause when I delete a few lines of
html-code in the page (random), it does load.

Noe that this does like an Apache bug or so, but hence it only happens
since PHP 4.4.1

Reproduce code:
---------------
Hopefully, the description rings a bell at you guys :)
But possible if really needed.


Expected result:
----------------
Page loads completely (100%)

Actual result:
--------------
Page loads not completely

-- 
Edit bug report at http://bugs.php.net/?id=35278&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35278&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35278&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35278&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35278&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35278&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35278&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35278&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35278&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35278&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35278&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35278&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35278&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35278&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35278&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35278&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35278&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35278&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35278&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35278&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35278&r=mysqlcfg

Reply via email to