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

From: Date: Sat, 24 Apr 2004 10:24:17 +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-58689@lists.php.net to get a copy of this message
ID: 28131 Updated by: derick@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: Upgrade apache from 1.3.9 to 1.3.29 first, then see if the problem persists. Previous Comments: ------------------------------------------------------------------------ [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 (#58689) next »