From: Zoe Slattery Date: Mon, 9 Jul 2007 13:18:03 +0000 (+0000) Subject: array copy on write tests X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cf3ad9c03eac2d55d9b413a37b492f1b66c9480;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..aacbe79e86 --- /dev/null +++ b/Zend/tests/array_append_COW.phpt @@ -0,0 +1,22 @@ +--TEST-- + Tests that array manipulation code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} +--UEXPECT-- +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..864fc29e33 --- /dev/null +++ b/Zend/tests/array_unshift_COW.phpt @@ -0,0 +1,22 @@ +--TEST-- + Tests that array unshift code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file