php-src/ext/phar/tests/zip/frontcontroller10.phar.phpt

22 lines
480 B
PHP

--TEST--
Phar front controller rewrite array invalid zip-based
--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
Status: 403 Access Denied
--EXPECT--
<html>
<head>
<title>Access Denied</title>
</head>
<body>
<h1>403 - File /hi Access Denied</h1>
</body>
</html>