XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
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.

36 lines
1005 B

  1. #!/bin/sh
  2. getAbsolutePath() {
  3. which readlink >/dev/null 2>&1 && readlink -f "$@" || echo "$@"
  4. }
  5. # use symlink first
  6. if test -x ./php-cli ; then
  7. php_cli=`getAbsolutePath ./php-cli`
  8. elif test ! -z "$TEST_PHP_EXECUTABLE" && test -x "$TEST_PHP_EXECUTABLE"; then
  9. php_cli="$TEST_PHP_EXECUTABLE"
  10. else
  11. php_cli="`which php`"
  12. fi
  13. if test -x ./php-cgi ; then
  14. php_cgi=`getAbsolutePath ./php-cgi`
  15. else
  16. php_cgi="`which php-cgi`"
  17. fi
  18. TEST_PHP_EXECUTABLE="$php_cli"
  19. TEST_PHP_CGI_EXECUTABLE="$php_cgi"
  20. test -z "$TEST_PHP_SRCDIR" && TEST_PHP_SRCDIR=`getAbsolutePath ./php-src`
  21. export TEST_PHP_EXECUTABLE
  22. export TEST_PHP_CGI_EXECUTABLE
  23. export TEST_PHP_SRCDIR
  24. echo "XCache test running with:"
  25. echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
  26. echo "TEST_PHP_EXECUTABLE: $TEST_PHP_EXECUTABLE"
  27. echo "TEST_PHP_SRCDIR: $TEST_PHP_SRCDIR"
  28. run_tests_php=$TEST_PHP_SRCDIR/run-tests.php
  29. exec "$php_cli" -d "open_basedir=" -d "safe_mode=0" -d "output_buffering=0" -d "memory_limit=-1" $run_tests_php "$@"