]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Thu, 6 Mar 2003 16:29:06 +0000 (16:29 +0000)
committerSVN Migration <svn@php.net>
Thu, 6 Mar 2003 16:29:06 +0000 (16:29 +0000)
tests/lang/bug19943.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug19943.phpt b/tests/lang/bug19943.phpt
new file mode 100644 (file)
index 0000000..63f8008
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+Bug #19566 (memleaks)
+--FILE--
+<?php
+       $ar = array();
+       for ($count = 0; $count < 10; $count++) {
+               $ar[$count]        = "$count";
+               $ar[$count]['idx'] = "$count";
+       }
+
+       for ($count = 0; $count < 10; $count++) {
+               echo $ar[$count]." -- ".$ar[$count]['idx']."\n";
+       }
+?>
+--EXPECT--
+0 -- 0
+1 -- 1
+2 -- 2
+3 -- 3
+4 -- 4
+5 -- 5
+6 -- 6
+7 -- 7
+8 -- 8
+9 -- 9