exception_011.phpt 504 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Test exception doesn't cause RSHUTDOWN bypass, variation 0
  3. --INI--
  4. assert.bail=1
  5. assert.exception=1
  6. --FILE--
  7. <?php
  8. define ("XXXXX", 1);
  9. try {
  10. assert(false);
  11. } catch (AssertionError $error) {
  12. echo "Caught\n";
  13. }
  14. ?>
  15. --EXPECTHEADERS--
  16. Content-type: text/html; charset=UTF-8
  17. --EXPECTF--
  18. Fatal error: Uncaught AssertionError: assert(false) in %sexception_011.php:%d
  19. Stack trace:
  20. #0 %sexception_011.php(%d): assert(false, 'assert(false)')
  21. #1 {main}
  22. thrown in %sexception_011.php on line %d