From:             jowie dot 1337+phpnet at gmail dot com
Operating system: Windows XP Service Pack 1
PHP version:      5.2.6
PHP Bug Type:     Apache2 related
Bug description:  PHP Cuts off documents after some point

Description:
------------
All my php documents are cut off after exactly 8800 bytes. The content
does not matter, it even happens on documents that have no php code at
all.

There are no errors (E_ALL) from php, nor from apache.

Renaming .php to .txt shows the whole file in my browser.
This also happends with an unmodified php.ini (php.ini-recommended,
besides extension_dir)

I have tried the following scenario's (restarted apache for each try):

+ Apache 2.2.9 PHP 4.4.8 as Module (bug appears)
+ Apache 2.2.9 PHP 5.2.6 as Module (bug appears)
+ Apache 2.2.9 PHP 5.2.6 under CGI (bug appears)
+ Apache 2.2.9 PHP 4.4.8 implicit_flush on (NO BUG)
+ Apache 2.2.9 PHP 5.2.6 Without ANY Extensions (bug appears)
+ Apache 2.2.9 PHP 5.2.6 implicit_flush on (bug appears)
+ Apache 2.2.9 PHP 5.2.6 output_buffering off (bug appears)
+ Apache 2.2.9 PHP 4.4.8 Super high memory_limit (bug appears)
+ Apache 2.2.9 PHP 5.2.6 Super high memory_limit (bug appears)

As you can see, for some reason if I turn implicit_flush on in php 4, the
bug disappears, i can see the whole document(s).


I have seen a different site where this happened. However it did not
appear on every document and at various cut-off lengths. This may be a
different bug perhaps unrelated to php but it is worth mentioning.
I only have the following limited info about that server:
OS: Some Linux Flavor; Apache 2.0.54 (Fedora); PHP 5.0.4 as a module

Reproduce code:
---------------
A text document containing more then 8800 characters saved as test.php

Expected result:
----------------
The whole text document

Actual result:
--------------
A text document that is cut off at 8800 characters

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

Reply via email to