summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/frontcontroller10.phar.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/zip/frontcontroller10.phar.phpt')
-rw-r--r--ext/phar/tests/zip/frontcontroller10.phar.phpt24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/phar/tests/zip/frontcontroller10.phar.phpt b/ext/phar/tests/zip/frontcontroller10.phar.phpt
new file mode 100644
index 0000000..56d16c2
--- /dev/null
+++ b/ext/phar/tests/zip/frontcontroller10.phar.phpt
@@ -0,0 +1,24 @@
+--TEST--
+Phar front controller rewrite array invalid zip-based
+--INI--
+default_charset=UTF-8
+--SKIPIF--
+<?php if (!extension_loaded("phar")) die("skip"); ?>
+--ENV--
+SCRIPT_NAME=/frontcontroller10.phar.php
+REQUEST_URI=/frontcontroller10.phar.php/hi
+PATH_INFO=/hi
+--FILE_EXTERNAL--
+files/frontcontroller4.phar.zip
+--EXPECTHEADERS--
+Content-type: text/html; charset=UTF-8
+Status: 403 Access Denied
+--EXPECT--
+<html>
+ <head>
+ <title>Access Denied</title>
+ </head>
+ <body>
+ <h1>403 - File /hi Access Denied</h1>
+ </body>
+</html> \ No newline at end of file