|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21707 long html text sources truncated
Submitted: 2003-01-17 00:43 UTC Modified: 2003-04-06 06:55 UTC
Avg. Score:4.2 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:3 (75.0%)
From: jtwolf at hotmail dot com Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.0 OS: windows xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
5 - 1 = ?
Subscribe to this entry?

 [2003-01-17 00:43 UTC] jtwolf at hotmail dot com
Apache 2.0.43 running on Windows XP.  Reproduced with PHP 4.3.0 running as CGI and as module.

present with output_buffering = off
not present with output_buffering = on

A 10kb(approximately) or larger html/text file with a .php extension is truncated if output buffering is set to off.  Turn output buffering on and the entire file is sent/displayed properly 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-17 00:51 UTC]
Truncated to how many characters and is it a consistent number?
 [2003-01-17 01:22 UTC] jtwolf at hotmail dot com
For example:
174412 Chars --> 7957 Chars
82828 Chars  --> 23906 Chars

not consistent, running the 82828 char file a second time gave me 43596 chars
 [2003-01-19 11:40 UTC] bouke at boukemedia dot nl
i'm having the same problems, but i'm running php as an module instead of cgi module.

Apache 2.0.43 on winXP 
PHP 4.2.4-dev

Setting output_buffering to On fixed this bug.
 [2003-01-19 12:43 UTC]
Which MPM model do you use in Apache2? (e.g. worker, prefork)
I managed to reproduce this with "worker" model.

 [2003-01-19 15:04 UTC]
Oops, my previous comment is totally off the point. Please ignore.

 [2003-04-06 06:55 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 10:01:28 2024 UTC