|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-24 08:40 UTC] derick@php.net
[2004-02-24 14:10 UTC] rxk at gmx dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 21:00:01 2025 UTC |
Description: ------------ unset don't free the memory. Reproduce code: --------------- <?php set_time_limit(0); $a=array(); for($j=0;$j<5;$j++) { for($i=0;$i<20000;$i++) { $a[$i] = array(1,2,3,4,5); $a[$i][] = &$a[$i]; } echo "before unset\n";sleep(5); unset($a); echo "after unset\n";sleep(5); } ?> Actual result: -------------- There is none differentiated before or after unset. The memory overflows.