blob: 802534dfecbbbcae1e950420df5aafe04f8c954e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
--TEST--
Bug #43505 (Assign by reference bug)
--INI--
error_reporting=0
--FILE--
<?php
class Test implements Countable {
public function count() {
return $some;
}
}
$obj = new Test();
$a = array();
$b =& $a['test'];
var_dump($a);
$t = count($obj);
$a = array();
$b =& $a['test'];
var_dump($a);
?>
--EXPECT--
array(1) {
["test"]=>
&NULL
}
array(1) {
["test"]=>
&NULL
}
|