#28131 [Opn]: Scripts can't consume more than 64MB on Windows XP/2000

From: Date: Mon, 26 Apr 2004 14:58:14 +0000
Subject: #28131 [Opn]: Scripts can't consume more than 64MB on Windows XP/2000
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58787@lists.php.net to get a copy of this message
ID: 28131 User updated by: webmaster at macway dot com Reported By: webmaster at macway dot com Status: Open Bug Type: Reproducible crash Operating System: Windows 2000 PHP Version: 4.3.4 New Comment: Faster code exhibiting the problem : <?php for ($i = 1; $i <= 1024; $i++) // I'm just making a 1024 Byte string { $chunk .='a'; } for ($i = 1; $i <= 66000; $i++) // if you use 65000 it works { $tablo[]=$chunk; } echo "c'est fini"; ?> Previous Comments: ------------------------------------------------------------------------ [2004-04-26 16:55:59] webmaster at macway dot com THE PROBLEM IS VERY SERIOUS : it crashes the php engine on Windows XP. It is reproductible. I've redonne some tests and it appears that the web server is nit the issue (launching the php.exe without any webserver exhibits the problem). I've you have 4 different variables, then the max size of each will be 64/4 = 16MB of ram max. That means the total ram consumed by the script has to be lower than 64MB ------------------------------------------------------------------------ [2004-04-26 12:02:02] wez@php.net We don't support third party PHP distributions. Please give the feedback we requested. ------------------------------------------------------------------------ [2004-04-26 10:22:53] webmaster at macway dot com I reproduced the bug using easyphp 1.7 on a windows xp machine. It crashes apache ! ------------------------------------------------------------------------ [2004-04-24 12:24:16] derick@php.net Upgrade apache from 1.3.9 to 1.3.29 first, then see if the problem persists. ------------------------------------------------------------------------ [2004-04-24 02:18:16] webmaster at macway dot com Apache 1.3.9 Do you use Windows ? (because it works without problems on linux/unix) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28131 -- Edit this bug report at http://bugs.php.net/?id=28131&edit=1

« previous php.bugs (#58787) next »