diff options
author | Xinchen Hui <laruence@gmail.com> | 2018-02-17 16:33:39 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2018-02-17 16:33:39 +0800 |
commit | 26dda8999ceca1d4d33a51723d77d5a73b05b926 (patch) | |
tree | 261683c8ba1e302face3b462d145c1a66c6eb6a9 /ext/standard/tests | |
parent | 0674d677bc82d448395f57e5612fc7280a2f5846 (diff) | |
parent | 94e9d0a2ae76bad712495d820d3962e401085fef (diff) | |
download | php-git-26dda8999ceca1d4d33a51723d77d5a73b05b926.tar.gz |
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #75961 (Strange references behavior)
Diffstat (limited to 'ext/standard/tests')
-rw-r--r-- | ext/standard/tests/array/bug75961.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/standard/tests/array/bug75961.phpt b/ext/standard/tests/array/bug75961.phpt new file mode 100644 index 0000000000..15484ab16f --- /dev/null +++ b/ext/standard/tests/array/bug75961.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #75961 (Strange references behavior) +--FILE-- +<?php +$arr = [[1]]; + +array_walk($arr, function(){}); +array_map('array_shift', $arr); +var_dump($arr); +?> +--EXPECT-- +array(1) { + [0]=> + array(1) { + [0]=> + int(1) + } +} |