]> granicus.if.org Git - php/commit
Fix bug #71241: array_replace_recursive mutates ref params
authorAdam Saponara <as@php.net>
Fri, 26 Aug 2016 21:33:22 +0000 (17:33 -0400)
committerNikita Popov <nikic@php.net>
Thu, 20 Oct 2016 11:22:04 +0000 (13:22 +0200)
commit55d17662cb61bc29f443276b0cd50b3a62f91acc
tree4b640bb1193c66f174850720a8db934b4e1cdd69
parentc3361f16c7086d328142d4f08615e52256ad60df
Fix bug #71241: array_replace_recursive mutates ref params

`array_replace_recursive` can sometimes mutate its params if
references are nested within. This differs from the PHP 5 behavior.
NEWS
ext/standard/array.c
ext/standard/tests/array/array_replace_merge_recursive_ref.phpt [new file with mode: 0644]