ID:               45448
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jowie dot 1337+phpnet at gmail dot com
 Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Windows XP Service Pack 1
 PHP Version:      5.2.6
 New Comment:

Also: What other filters/modules have you enabled in your apache
config?


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

[2008-07-11 15:33:15] [EMAIL PROTECTED]

You're actually using PHP 4..? The support for PHP 4 has ended, so if
you could actually try with PHP 5 first..

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

[2008-07-08 16:01:35] jowie dot 1337+phpnet at gmail dot com

This is a snippet of my httpd.conf related to php, this is the same as
I used to test the scenario's in my opening post:


AddType application/x-httpd-php .php

LoadModule php4_module "C:/Program Files/PHP 4/php4apache2.dll"
PHPIniDir "C:/Program Files/PHP 4/" 

#PHPIniDir "C:/Program Files/PHP 5/"
#LoadModule php5_module "C:/Program Files/PHP 5/php5apache2_2.dll"

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

[2008-07-08 13:13:04] [EMAIL PROTECTED]

Which apache2 SAPI are you using?

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

[2008-07-07 22:55:19] jowie dot 1337+phpnet at gmail dot com

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 this bug report at http://bugs.php.net/?id=45448&edit=1

Reply via email to