From: webmaster at macway dot com Operating system: Windows 2000 PHP version: 4.3.4 PHP Bug Type: Scripting Engine problem Bug description: Scripts can't consume more than 64MB on Windows 2000
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 bug report at http://bugs.php.net/?id=28131&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28131&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28131&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28131&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28131&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28131&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28131&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28131&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28131&r=support Expected behavior: http://bugs.php.net/fix.php?id=28131&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28131&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28131&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28131&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28131&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28131&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28131&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28131&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28131&r=float