mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
9f96b2bdc8
Based on the patch provided by david at bamsoftware. Closes GH-6517.
25 lines
545 B
PHP
25 lines
545 B
PHP
--TEST--
|
|
Phar front controller 404 zip-based
|
|
--INI--
|
|
phar.require_hash=0
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
|
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
|
|
--ENV--
|
|
SCRIPT_NAME=/frontcontroller6.phar.php
|
|
REQUEST_URI=/frontcontroller6.phar.php/notfound.php
|
|
PATH_INFO=/notfound.php
|
|
--FILE_EXTERNAL--
|
|
files/frontcontroller.phar.zip
|
|
--EXPECTHEADERS--
|
|
Status: 404 Not Found
|
|
--EXPECT--
|
|
<html>
|
|
<head>
|
|
<title>File Not Found</title>
|
|
</head>
|
|
<body>
|
|
<h1>404 - File Not Found</h1>
|
|
</body>
|
|
</html>
|