summaryrefslogtreecommitdiff
path: root/sapi/tests/test002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/tests/test002.phpt')
-rw-r--r--sapi/tests/test002.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/sapi/tests/test002.phpt b/sapi/tests/test002.phpt
new file mode 100644
index 0000000000..e0c51b60e3
--- /dev/null
+++ b/sapi/tests/test002.phpt
@@ -0,0 +1,23 @@
+--TEST--
+Apache style CGI
+--DESCRIPTION--
+Apache likes to set SCRIPT_FILENAME to the php executable
+if you use ScriptAlias configurations, and the proper
+path is in PATH_TRANSLATED. SCRIPT_NAME in this is faked,
+but that is ok, Apache sets SCRIPT_NAME to the ScriptAlias
+of the executable.
+--ENV--
+return <<<END
+REDIRECT_URL=$scriptname
+PATH_TRANSLATED=$filename
+PATH_INFO=$scriptname
+SCRIPT_NAME=/scriptalias/php
+SCRIPT_FILENAME=$this->conf['TEST_PHP_EXECUTABLE']
+END;
+--CGI--
+--FILE--
+<?php
+ echo "HELLO";
+?>
+--EXPECT--
+HELLO \ No newline at end of file