Annotation of embedaddon/php/ext/standard/tests/array/bug44181.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #44181 (extract EXTR_OVERWRITE|EXTR_REFS can fail to create references)
        !             3: --FILE--
        !             4: <?php
        !             5: $a = array('foo' => 'original.foo');
        !             6: 
        !             7: $foo = 'test';
        !             8: $ref = &$a;
        !             9: 
        !            10: extract($a, EXTR_OVERWRITE|EXTR_REFS);
        !            11: $foo = 'changed.foo';
        !            12: 
        !            13: var_dump($a['foo']);
        !            14: echo "Done\n";
        !            15: ?>
        !            16: --EXPECTF--
        !            17: string(%d) "changed.foo"
        !            18: Done
        !            19: 

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