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

1.1       misho       1: --TEST--
                      2: Test extract() function - ensure EXTR_REFS works when array is referenced and keys clash with variables in current scope. 
                      3: --FILE--
                      4: <?php
                      5: $a = array('foo' => 'original.foo');
                      6: $ref = &$a;
                      7: $foo = 'test';
                      8: extract($a, EXTR_OVERWRITE|EXTR_REFS);
                      9: $foo = 'changed.foo';
                     10: var_dump($a['foo']);
                     11: ?>
                     12: --EXPECTF--
                     13: %unicode|string%(11) "changed.foo"

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