Annotation of embedaddon/php/ext/standard/tests/array/extract_variation10.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test extract() function - ensure EXTR_REFS doesn't mess with isRef flag on COW references to array elements.  
                      3: --FILE--
                      4: <?php
                      5: $a = array('foo' => 'original.foo');
                      6: $nonref = $a['foo'];
                      7: $ref = &$a;
                      8: extract($a, EXTR_REFS);
                      9: $a['foo'] = 'changed.foo';
                     10: var_dump($nonref);
                     11: ?>
                     12: --EXPECTF--
                     13: %unicode|string%(12) "original.foo"

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