We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c22d54 commit 5d0ee5bCopy full SHA for 5d0ee5b
Zend/tests/array_append_COW.phpt
@@ -0,0 +1,17 @@
1
+--TEST--
2
+ Tests that array manipulation code is correctly dealing with copy on write and
3
+ splitting on reference.
4
+--FILE--
5
+<?php
6
+ $a=array();
7
+ $b=1;
8
+ $c=&$b;
9
+ $a[]=$b;
10
+ $b=2;
11
+ var_dump ($a);
12
+?>
13
+--EXPECT--
14
+array(1) {
15
+ [0]=>
16
+ int(1)
17
+}
Zend/tests/array_unshift_COW.phpt
+ Tests that array unshift code is correctly dealing with copy on write and
+ array_unshift ($a,$b);
0 commit comments