#28131 [Opn->Fbk]: Scripts can't consume more than 64MB on Windows 2000

From: Date: Mon, 26 Apr 2004 10:02:03 +0000
Subject: #28131 [Opn->Fbk]: Scripts can't consume more than 64MB on Windows 2000
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58776@lists.php.net to get a copy of this message
ID: 28131 Updated by: wez@php.net Reported By: webmaster at macway dot com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows 2000 PHP Version: 4.3.4 New Comment: We don't support third party PHP distributions. Please give the feedback we requested. Previous Comments: ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ [2004-04-24 00:29:52] fmk@php.net I don't see any problems with PHP. Loading a 185 Mb file works fine and your test script is also doing fine. What is the server environment you are using (Apache, IIS). ------------------------------------------------------------------------ [2004-04-23 23:46:42] webmaster at macway dot com Description: ------------ Despite proper setting of php.ini memory_limit, and despite having 2 GB of available ram, a script on windows server 2000 can't work with more than 64MB in memory. There's no problems on a Mac OS X box. That means you can't process huge volume of data in arrays for example if the php server is a window 2k box ! Reproduce code: --------------- <?php for ($i = 1; $i <= 1024; $i++) // I'm just making a 1024 Byte string { $chunk .='a'; } for ($i = 1; $i <= 66000; $i++) // I repeat it more than 65535 time and it fails { $toto .=$chunk; } echo $toto; ?> Expected result: ---------------- A 65MB string should be returned. This works perfectly on Mac OS X, but fails on Windows 2000. Actual result: -------------- Windows 2000 aborts and return a "document contains no data". ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28131&edit=1

« previous php.bugs (#58776) next »