#29499 [Opn->Fbk]: php crashes when printing large strings
| From: | tony2001@php.net | Date: | Tue, 03 Aug 2004 07:34:08 +0000 |
| Subject: | #29499 [Opn->Fbk]: php crashes when printing large strings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63997@lists.php.net to get a copy of this message | ||
ID: 29499
Updated by: tony2001@php.net
Reported By: evign at club-internet dot fr
-Status: Open
+Status: Feedback
Bug Type: Output Control
Operating System: windows 2000
PHP Version: 4.3.8
New Comment:
And please try using different browsers, it can be a problem of your
browser.
Previous Comments:
------------------------------------------------------------------------
[2004-08-03 09:26:42] 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 04:57:54] 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 00:42:31] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29499&edit=1