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

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

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