diff --git a/ext/phar/tests/files/frontcontroller18.phar b/ext/phar/tests/files/frontcontroller18.phar index b24d619a9d7..ade248fb421 100644 Binary files a/ext/phar/tests/files/frontcontroller18.phar and b/ext/phar/tests/files/frontcontroller18.phar differ diff --git a/ext/phar/tests/files/frontcontroller19.phar.inc b/ext/phar/tests/files/frontcontroller19.phar.inc new file mode 100644 index 00000000000..561cc455393 --- /dev/null +++ b/ext/phar/tests/files/frontcontroller19.phar.inc @@ -0,0 +1,25 @@ +'; +$a['another.php'] = ''; +$a->setStub('getMessage() . "\n"); +} +echo "oops did not run\n"; +var_dump($_ENV, $_SERVER); +__HALT_COMPILER();'); +?> diff --git a/ext/phar/tests/frontcontroller34.phpt b/ext/phar/tests/frontcontroller34.phpt new file mode 100644 index 00000000000..636667032ab --- /dev/null +++ b/ext/phar/tests/frontcontroller34.phpt @@ -0,0 +1,16 @@ +--TEST-- +Phar front controller with cwd +--SKIPIF-- + +--ENV-- +SCRIPT_NAME=/frontcontroller34.php +REQUEST_URI=/frontcontroller34.php/start/index.php +PATH_INFO=/start/index.php +--EXPECTHEADERS-- +Content-type: text/html +--FILE_EXTERNAL-- +files/frontcontroller19.phar +--EXPECT-- +start/index.php +start/another.php +another.php