dynamic_call_008.phpt 239 B

12345678910111213
  1. --TEST--
  2. Don't optimize dynamic call to non-dynamic one if it drops the warning
  3. --FILE--
  4. <?php
  5. function test() {
  6. ((string) 'extract')(['a' => 42]);
  7. }
  8. test();
  9. ?>
  10. --EXPECTF--
  11. Warning: Cannot call extract() dynamically in %s on line %d