bug70828.phpt 452 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #70828 (php-fpm 5.6 with opcache crashes when referencing a non-existent constant)
  3. --FILE--
  4. <?php
  5. namespace test {
  6. use const nonexistent;
  7. class test {
  8. static function run(){
  9. var_dump(nonexistent);
  10. existent;
  11. }
  12. }
  13. }
  14. namespace {
  15. define("test\\existent", "bug!", 1);
  16. test\test::run();
  17. }
  18. ?>
  19. --EXPECTF--
  20. Notice: Use of undefined constant nonexistent - assumed 'nonexistent' in %sbug70828.php on line %d
  21. string(11) "nonexistent"