|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-06-15 11:49 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 28 02:00:01 2025 UTC |
Description: ------------ php gives the next fatal error: Fatal error: Allowed memory size of -2147483648 bytes exhausted (tried to allocate 2147221481 bytes) in /root/convert.php on line 6 when trying to use a script with a memory limit of 2gig. Reproduce code: --------------- <?php ini_set('memory_limit', '2048M'); $d = ''; while (true) { $d .= 'a'; } Expected result: ---------------- Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 2147221481 bytes) in /root/convert.php on line 6 Actual result: -------------- Fatal error: Allowed memory size of -2147483648 bytes exhausted (tried to allocate 2147221481 bytes) in /root/convert.php on line 6