extract_variation10.phpt 326 B

12345678910111213
  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"