27 lines
318 B
Bash
Executable File
27 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if pidof php > /dev/null; then
|
|
echo -n
|
|
else
|
|
printf "%-40s" "FastCGI PHPinfo"
|
|
exit 77
|
|
fi
|
|
|
|
test x$srcdir = x && srcdir=.
|
|
|
|
. $srcdir/testbase.sh
|
|
|
|
prepare_test
|
|
|
|
cat > $TMPFILE <<EOF
|
|
PHP_SELF + indexfile
|
|
GET /indexfile/ HTTP/1.0
|
|
Host: www.example.org
|
|
|
|
Status: 200
|
|
Content: /indexfile/index.php
|
|
EOF
|
|
|
|
run_test
|
|
|