exception_012.phpt 685 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test exception doesn't cause RSHUTDOWN bypass, variation 1
  3. --INI--
  4. assert.bail=1
  5. assert.exception=1
  6. --FILE--
  7. <?php
  8. $func = create_function('', 'define("Mommy", 1); assert(false);');
  9. $func();
  10. ?>
  11. --EXPECTHEADERS--
  12. Content-type: text/html; charset=UTF-8
  13. --EXPECTF--
  14. Deprecated: Function create_function() is deprecated in %s on line %d
  15. Fatal error: Uncaught AssertionError: assert(false) in %sexception_012.php(%d) : runtime-created function:%d
  16. Stack trace:
  17. #0 %sexception_012.php(%d) : runtime-created function(%d): assert(false, 'assert(false)')
  18. #1 %sexception_012.php(%d): __lambda_func()
  19. #2 {main}
  20. thrown in %sexception_012.php(%d) : runtime-created function on line %d