use_no_eval_conflict.phpt 267 B

12345678910111213
  1. --TEST--
  2. Use conflicts should not occur across eval()s
  3. --FILE--
  4. <?php
  5. /* It is important that these two eval()s occur on the same line,
  6. * as this forces them to have the same filename. */
  7. eval("class A {}"); eval("use Foo\A;");
  8. ?>
  9. ===DONE===
  10. --EXPECT--
  11. ===DONE===