bug76275.phpt 547 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Bug #76275: Assertion failure in file cache when unserializing empty try_catch_array
  3. --INI--
  4. opcache.enabled=1
  5. opcache.enable_cli=1
  6. opcache.file_cache="{TMP}"
  7. --EXTENSIONS--
  8. opcache
  9. --FILE--
  10. <?php
  11. if (PHP_VERSION_ID >= 70000) {
  12. echo "Done";
  13. return;
  14. }
  15. if (!is_callable('random_bytes')) {
  16. try {
  17. } catch (com_exception $e) {
  18. }
  19. function random_bytes($length)
  20. {
  21. throw new Exception(
  22. 'There is no suitable CSPRNG installed on your system'
  23. );
  24. return '';
  25. }
  26. }
  27. ?>
  28. --EXPECT--
  29. Done