dynamic_call_007.phpt 309 B

1234567891011121314151617
  1. --TEST--
  2. Dynamic calls to scope introspection functions are forbidden (misoptimization)
  3. --FILE--
  4. <?php
  5. function test() {
  6. $i = 1;
  7. array_map('extract', [['i' => new stdClass]]);
  8. $i += 1;
  9. var_dump($i);
  10. }
  11. test();
  12. ?>
  13. --EXPECTF--
  14. Warning: Cannot call extract() dynamically in %s on line %d
  15. int(2)