|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-20 21:41 UTC] ilia at manual dot ru
[2004-10-21 18:55 UTC] wedro at gmx dot net
[2004-10-24 14:11 UTC] no at mail dot ru
[2004-10-24 14:15 UTC] tony2001@php.net
[2004-11-01 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 04:00:01 2025 UTC |
Description: ------------ unset() does not free memory. In the example, list() is important. Reproduce code: --------------- for($i=1;$i<10000000;$i++) { list($b['a']) = array ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); unset($b['a'],$b); } Actual result: -------------- PHP Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to alloc ate 16 bytes) in /tmp/tours2lite.php on line 28 Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to allocate 1 6 bytes) in /tmp/tours2lite.php on line 28