Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
740 B

  1. <?php
  2. // Set the encoding to something more "challenging."
  3. $ret = mb_internal_encoding('UTF-8');
  4. if ($ret === FALSE) {
  5. echo "Couldn't set encoding.";
  6. exit(1);
  7. }
  8. // Dump out the settings / encoding for future reference.
  9. $val = ini_get("mbstring.func_overload");
  10. echo "Settings: \n";
  11. echo " func_overload: " . $val . "\n";
  12. echo " mb_internal_encoding(): " . mb_internal_encoding() . "\n";
  13. // Perform the tests.
  14. require_once('Crypto.php');
  15. try {
  16. Crypto::RuntimeTest();
  17. echo "TEST PASSED!\n";
  18. exit(0);
  19. } catch (CryptoTestFailedException $ex) {
  20. echo "TEST FAILED!\n";
  21. var_dump($ex);
  22. exit(1);
  23. } catch (CannotPerformOperationException $ex) {
  24. echo "TEST FAILED\n";
  25. var_dump($ex);
  26. exit(1);
  27. }
  28. ?>