Annotation of embedaddon/php/Zend/tests/array_append_COW.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Tests that array manipulation code is correctly dealing with copy on write and splitting on reference
                      3: --FILE--
                      4: <?php
                      5:        $a=array();
                      6:        $b=1;
                      7:        $c=&$b;
                      8:        $a[]=$b;
                      9:        $b=2;
                     10:        var_dump ($a);
                     11: ?>
                     12: --EXPECT--
                     13: array(1) {
                     14:   [0]=>
                     15:   int(1)
                     16: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>