diff options
author | Greg Beaver <cellog@php.net> | 2008-01-05 03:41:43 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-01-05 03:41:43 +0000 |
commit | 653dc9e8cec8c6aeed481a0271cd4cb4819cbc63 (patch) | |
tree | 7dadfae37a227bfaa2e62241c9ffa904a2334878 /ext/phar/tests/frontcontroller1.phpt | |
parent | 4c7c6d1ef470d252583a13ff0753d84c2e052794 (diff) | |
download | php-git-653dc9e8cec8c6aeed481a0271cd4cb4819cbc63.tar.gz |
fix front controller tests (requires patch to run-tests.php posted to internals a little while ago)
allow phars to have extension .php as last resort
fix phar-based phars for MIME_OTHER type
Diffstat (limited to 'ext/phar/tests/frontcontroller1.phpt')
-rw-r--r-- | ext/phar/tests/frontcontroller1.phpt | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/ext/phar/tests/frontcontroller1.phpt b/ext/phar/tests/frontcontroller1.phpt index 0cff6e6f3d..ebe5c35b5b 100644 --- a/ext/phar/tests/frontcontroller1.phpt +++ b/ext/phar/tests/frontcontroller1.phpt @@ -2,32 +2,11 @@ Phar front controller --SKIPIF-- <?php if (!extension_loaded("phar")) die("skip"); ?> ---INI-- -phar.require_hash=0 -phar.readonly=0 --ENV-- -REQUEST_URI=/frontcontroller1.phar.php/a.jpg ---FILE-- -<?php -$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; -$pname = 'phar://' . $fname; - -$a = new Phar($fname); -$a['a.jpg'] = 'hio'; -$a->setStub('<?php -Phar::webPhar(); -__HALT_COMPILER();'); - -$_SERVER['REQUEST_URI'] = '/' . basename(__FILE__, '.php') . '.phar.php/a.jpg'; -include $fname; -?> -===DONE=== ---CLEAN-- -<?php -unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); -unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phartmp.php'); -__HALT_COMPILER(); -?> +SCRIPT_NAME=/frontcontroller1.php/a.jpg +REQUEST_URI=/frontcontroller1.php/a.jpg +--FILE_EXTERNAL-- +frontcontroller.phar --EXPECTHEADERS-- Content-type: image/jpeg Content-length: 3 |