summaryrefslogtreecommitdiff
path: root/ext/phar/tests/tar/frontcontroller21.phar.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2008-05-12 21:03:49 +0000
committerSVN Migration <svn@php.net>2008-05-12 21:03:49 +0000
commit16b4d8e0e1108564fa042520171d9091af708d83 (patch)
treeed242b98e845ea9c045ad6e10b9e9a083b569dd5 /ext/phar/tests/tar/frontcontroller21.phar.phpt
parente35c45791383ac9337adcd37255895f396001557 (diff)
downloadphp-git-16b4d8e0e1108564fa042520171d9091af708d83.tar.gz
This commit was manufactured by cvs2svn to create branch 'PHP_5_3'.
Diffstat (limited to 'ext/phar/tests/tar/frontcontroller21.phar.phpt')
-rw-r--r--ext/phar/tests/tar/frontcontroller21.phar.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/phar/tests/tar/frontcontroller21.phar.phpt b/ext/phar/tests/tar/frontcontroller21.phar.phpt
new file mode 100644
index 0000000000..eb21897226
--- /dev/null
+++ b/ext/phar/tests/tar/frontcontroller21.phar.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Phar front controller $_SERVER munging success tar-based
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--ENV--
+SCRIPT_NAME=/frontcontroller21.phar.php
+REQUEST_URI=/frontcontroller21.phar.php/index.php?test=hi
+PATH_INFO=/index.php
+QUERY_STRING=test=hi
+--FILE_EXTERNAL--
+files/frontcontroller12.phar.tar
+--EXPECTHEADERS--
+Content-type: text/html
+--EXPECTF--
+string(10) "/index.php"
+string(10) "/index.php"
+string(%d) "phar://%sfrontcontroller21.phar.php/index.php"
+string(18) "/index.php?test=hi"
+string(37) "/frontcontroller21.phar.php/index.php"
+string(27) "/frontcontroller21.phar.php"
+string(%d) "%sfrontcontroller21.phar.php"
+string(45) "/frontcontroller21.phar.php/index.php?test=hi" \ No newline at end of file