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