diff --git a/ext/standard/tests/array/bug23788.phpt b/ext/standard/tests/array/bug23788.phpt new file mode 100644 index 00000000000..022b3cecd47 --- /dev/null +++ b/ext/standard/tests/array/bug23788.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #23788 (*_replace() clobbers referenced array elements) +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + &int(123) + [1]=> + &bool(true) +} +array(2) { + [0]=> + &int(123) + [1]=> + &bool(true) +}