Browse Source

added test for the memleak part from bug #19943

migration/unlabaled-1.3.2
foobar 23 years ago
parent
commit
888a084ccb
  1. 25
      tests/lang/bug19943.phpt

25
tests/lang/bug19943.phpt

@ -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
Loading…
Cancel
Save