Skip to content

Commit 18f4ff4

Browse files
committed
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Fixed bug #73916 (zend_print_flat_zval_r doesn't consider reference)
2 parents e6632ce + 04379bc commit 18f4ff4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Zend/tests/bug73916.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Bug #73916 (zend_print_flat_zval_r doesn't consider reference)
3+
--FILE--
4+
<?php
5+
$a = array('a');
6+
class b{};
7+
$b = new b;
8+
$test[] =& $a;
9+
$test[] =& $b;
10+
test($test);
11+
function test() {
12+
debug_print_backtrace();
13+
}
14+
?>
15+
--EXPECTF--
16+
#0 test(Array ([0] => Array ([0] => a),[1] => b Object ())) called at [%sbug73916.php:%d]

0 commit comments

Comments
 (0)