summaryrefslogtreecommitdiff
path: root/Zend/tests/bug73916.phpt
blob: ba2567ed0c4be06b667af07f4ecbe03b0fe2b0eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #73916 (zend_print_flat_zval_r doesn't consider reference)
--FILE--
<?php
$a = array('a');
class b{};
$b = new b;
$test[] =& $a;
$test[] =& $b;
test($test);
function test() {
	debug_print_backtrace();
}
?>
--EXPECTF--
#0  test(Array ([0] => Array ([0] => a),[1] => b Object ())) called at [%sbug73916.php:%d]