Edit report at https://bugs.php.net/bug.php?id=53980&edit=1
ID: 53980 User updated by: skibi82 at interia dot pl Reported by: skibi82 at interia dot pl Summary: On the Windows-version of PHP can not allocate more memory than 512 memory_limi Status: Open Type: Bug Package: PHP options/info functions -Operating System: Windows XP SP3 +Operating System: Win7 , WinXP, Win2008 srv R2 -PHP Version: 5.3.5 +PHP Version: 5.3.9 Block user comment: N Private report: N New Comment: The error still occurs Previous Comments: ------------------------------------------------------------------------ [2012-01-24 18:45:19] skibi82 at interia dot pl Fatal error: Out of memory (allocated 537919488) (tried to allocate 536870913 bytes) XXXX zend_mm_heap corrupted The error occurs regardless of the setting memory_limit ------------------------------------------------------------------------ [2011-11-04 15:54:48] skibi8 at interia dot pl In version 5.3.8 error still occurs E:\SVN>test.php 5.3.8 Limit:4024M 100 1000 PHP Fatal error: Out of memory (allocated 736362496) (tried to allocate 734003 01 bytes) in E:\SVN\test.php on line 25 --- echo phpversion()."\n"; ini_set ('memory_limit', '4024M'); echo 'Limit:'.ini_get ('memory_limit')."\n"; $mb=''; $x=0; do { $x++; $mb.='X'; }while ($x< 1048576); echo "100\n"; $x=0; $mb100=''; do { $x++; $mb100.=$mb; }while ($x< 100); echo "1000\n"; $x=0; $gb=''; do { $x++; $gb.=$mb100; }while ($x< 10); echo "OK\n"; Fatal error: Out of memory (allocated 736362496) (tried to allocate 734003201 b tes) in E:\SVN\test.php on line 25 zend_mm_heap corrupted ------------------------------------------------------------------------ [2011-11-04 15:40:14] paj...@php.net Please try with 5.3.8 ------------------------------------------------------------------------ [2011-11-04 12:14:13] shaun at laughey dot com I can confirm the issue affects PHP 5.3.3 on Windows 2008 and 5.3.5 on Windows 7. I have tested on Ubuntu with 5.3.2 and 5.3.5 and the bug is not present and the script works. ------------------------------------------------------------------------ [2011-03-11 23:33:42] amarasatish at gmail dot com I am having a php file which parses the meta tags out of the html report files and display them in a table. Until now it has wroked fine on PHP 5.2.4.4, now after installing the version 5.3.5, the page doesn't load and give an error: "PHP Fatal error: Out of memory (allocated xxxxxx) (tried to allocate xxxxxx 01 bytes) in File on line xx.". I start increasing the memory allocation in php.ini almost upto 1000MB, but still the same error. If i downgrade to PHP 5.2.4.4, its working again. What could the problem be? For some reason, the Test Script given here, gives the same error message on version PHP 5.3.5, 5.2.4.4, 4. ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=53980 -- Edit this bug report at https://bugs.php.net/bug.php?id=53980&edit=1