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.

41 lines
936 B

#!/bin/sh
# use symlink first
if test -x ./php-cli ; then
php_cli=./php-cli
elif test ! -z "$TEST_PHP_EXECUTABLE" && test -x "$TEST_PHP_EXECUTABLE"; then
php_cli="$TEST_PHP_EXECUTABLE"
else
php_cli="`which php`"
fi
if test -x ./php-cgi ; then
php_cgi=./php-cgi
else
php_cgi="`which php-cgi`"
fi
test -z "$PHP_SRC" && PHP_SRC=./php-src
if test -z "$TEST_PHP_USER" ; then
TEST_PHP_USER="$PHP_SRC/tests"
for i in Zend ZendEngine2 ext/standard/tests ext/reflection/tests ; do
if test -d "$PHP_SRC/$i" ; then
TEST_PHP_USER="$TEST_PHP_USER,$PHP_SRC/$i"
fi
done
fi
TEST_PHP_EXECUTABLE="$php_cli"
TEST_PHP_CGI_EXECUTABLE="$php_cgi"
export TEST_PHP_CGI_EXECUTABLE
export TEST_PHP_EXECUTABLE
export TEST_PHP_USER
echo "XCache test running with:"
echo "TEST_PHP_CGI_EXECUTABLE: $TEST_PHP_CGI_EXECUTABLE"
echo "TEST_PHP_EXECUTABLE: $TEST_PHP_EXECUTABLE"
echo "TEST_PHP_USER: $TEST_PHP_USER"
exec "$php_cli" "$@"