1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0:
  Fixed bug #73916 (zend_print_flat_zval_r doesn't consider reference)
This commit is contained in:
Xinchen Hui
2017-01-13 13:04:53 +08:00

16
Zend/tests/bug73916.phpt Normal file
View File

@@ -0,0 +1,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]