From: Zoe Slattery Date: Mon, 9 Jul 2007 13:23:37 +0000 (+0000) Subject: array copy on write tests X-Git-Tag: php-5.2.4RC1~209 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d0ee5b518710ff03ec96fefa1ebdba907d612b0;p=php array copy on write tests --- diff --git a/Zend/tests/array_append_COW.phpt b/Zend/tests/array_append_COW.phpt new file mode 100644 index 0000000000..e6c9926931 --- /dev/null +++ b/Zend/tests/array_append_COW.phpt @@ -0,0 +1,17 @@ +--TEST-- + Tests that array manipulation code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file diff --git a/Zend/tests/array_unshift_COW.phpt b/Zend/tests/array_unshift_COW.phpt new file mode 100644 index 0000000000..7c8beba3d9 --- /dev/null +++ b/Zend/tests/array_unshift_COW.phpt @@ -0,0 +1,17 @@ +--TEST-- + Tests that array unshift code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file