|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-08-07 18:42 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
The following script (/php3/test/lang/021.php3t) leaks memory : <?php for ($i=0; $i<=5; $i++) { echo "i=$i\n"; switch($i) { case 0: echo "In branch 0\n"; break; case 1: echo "In branch 1\n"; break; case 2: echo "In branch 2\n"; break; case 3: echo "In branch 3\n"; break 2; case 4: echo "In branch 4\n"; break; default: echo "In default\n"; break; } } echo "hi\n"; ?> Content-Type: text/html i=0 In branch 0 i=1 In branch 1 i=2 In branch 2 i=3 In branch 3 hi /tmp/switch1.php3: Freeing 0x08215948 (37 bytes), allocated in zend_hash.c on line 175<br> Same goes for test/lang/022.php3t and test/lang/023.php3t