xref: /PHP-5.4/tests/lang/bug19943.phpt (revision e4f40a33)
1--TEST--
2Bug #19943 (memleaks)
3--FILE--
4<?php
5	$ar = array();
6	for ($count = 0; $count < 10; $count++) {
7		$ar[$count]        = "$count";
8		@$ar[$count]['idx'] = "$count";
9	}
10
11	for ($count = 0; $count < 10; $count++) {
12		echo $ar[$count]." -- ".@$ar[$count]['idx']."\n";
13	}
14	$a = "0123456789";
15	$a[9] = $a[0];
16	var_dump($a);
17?>
18--EXPECT--
190 -- 0
201 -- 1
212 -- 2
223 -- 3
234 -- 4
245 -- 5
256 -- 6
267 -- 7
278 -- 8
289 -- 9
29string(10) "0123456780"
30