bug73583.phpt 439 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #73583 (Segfaults when conditionally declared class and function have the same name)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=0x4ff
  7. opcache.file_update_protection=0
  8. --EXTENSIONS--
  9. opcache
  10. --FILE--
  11. <?php
  12. if (true) {
  13. class A { }
  14. function A() { }
  15. function A() { }
  16. }
  17. ?>
  18. --EXPECTF--
  19. Fatal error: Cannot redeclare A() (previously declared in %sbug73583.php:4) in %sbug73583.php on line 5