php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29499 php crashes when printing large strings
Submitted: 2004-08-03 00:42 UTC Modified: 2005-01-16 01:00 UTC
Votes:3
Avg. Score:4.0 ± 0.8
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: evign at club-internet dot fr Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.8 OS: windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: evign at club-internet dot fr
New email:
PHP Version: OS:

 

 [2004-08-03 00:42 UTC] evign at club-internet dot fr
Description:
------------
PHP version 4.38 (and earlier versions)
System  Windows 2000 5.0 build 2195  
Build Date  Jul 13 2004 17:31:56  
Server API  Apache 2.0 Handler  

When I try to print a string larger than 200k, 
I receive a blank page : "Impossible d'afficher la page"

Unable to print the page, the service may be temporary unavaillable.

Unfortunately, i can't get any error message in my error_log file, even if ERROR_ALL is set in the php.ini.

BUG #25570 explains likely the same problem, but no snapshot could resolve this crash.

Thanks,

ev

Reproduce code:
---------------
<?
$buf="";
for($i=0;$i<1000000;$i++){
$buf.=".";
}
echo $buf ;
?>

Expected result:
----------------
.............. (*1000000)

Actual result:
--------------
 Impossible d'afficher la page 
La page que vous recherchez est actuellement indisponible. Le site Web rencontre peut-?tre des difficult?s techniques ou il vous faut peut-?tre modifier les param?tres de votre navigateur. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-03 04:57 UTC] fmk@php.net
I've tested the sample code with the current CVS vrsion PHP4 and PHP5, both CLI and CGI, and I don't get any crashes.

What SAPI are you using?
 [2004-08-03 09:26 UTC] evign at club-internet dot fr
I use php4apache2.dll from the 4.3.8 version.

You're right : in CLI mode, no problem.

excuse me : I wanted to say Php version 4.38 (and older versions) in my previous post. In deed, I haven't tested yet with php 5.
 [2004-08-03 09:34 UTC] tony2001@php.net
And please try using different browsers, it can be a problem of your browser.
 [2004-08-04 09:04 UTC] evign at club-internet dot fr
Not a problem of my browser...

But, I have a new piece of info : 

When I use php4apache.dll + apache 1.3.31, it works fine.

So, i will use apache 1.3.31 again, and let apache2 for a while.

Thank you for your help

ev
 [2005-01-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 07:01:28 2025 UTC