Annotation of embedaddon/php/ext/standard/tests/array/bug43505.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #43505 (Assign by reference bug)
3: --INI--
4: error_reporting=0
5: --SKIPIF--
6: <?php if (!extension_loaded('spl')) die("skip SPL is not available"); ?>
7: --FILE--
8: <?php
9: class Test implements Countable {
10: public function count() {
11: return $some;
12: }
13: }
14:
15: $obj = new Test();
16:
17: $a = array();
18: $b =& $a['test'];
19: var_dump($a);
20:
21: $t = count($obj);
22:
23: $a = array();
24: $b =& $a['test'];
25: var_dump($a);
26: ?>
27: --EXPECT--
28: array(1) {
29: ["test"]=>
30: &NULL
31: }
32: array(1) {
33: ["test"]=>
34: &NULL
35: }
36:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>