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.

30 lines
651 B

  1. #!/bin/bash
  2. echo "Normal"
  3. echo "--------------------------------------------------"
  4. php -d mbstring.func_overload=0 tests/runtime.php
  5. if [ $? -ne 0 ]; then
  6. echo "FAIL."
  7. exit 1
  8. fi
  9. echo "--------------------------------------------------"
  10. echo ""
  11. echo "Multibyte"
  12. echo "--------------------------------------------------"
  13. php -d mbstring.func_overload=7 tests/runtime.php
  14. if [ $? -ne 0 ]; then
  15. echo "FAIL."
  16. exit 1
  17. fi
  18. echo "--------------------------------------------------"
  19. echo ""
  20. if [ -z "$(php Crypto.php)" ]; then
  21. echo "PASS: Crypto.php output is empty."
  22. else
  23. echo "FAIL: Crypto.php output is not empty."
  24. exit 1
  25. fi