From: Greg Beaver Date: Sat, 12 Jan 2008 22:25:40 +0000 (+0000) Subject: new test for inclusion within phar that takes CWD into account X-Git-Tag: RELEASE_2_0_0a1~929 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9131f152ba9df655c93495a6bfc757f01ab591d7;p=php new test for inclusion within phar that takes CWD into account --- diff --git a/ext/phar/tests/frontcontroller13.phar b/ext/phar/tests/frontcontroller13.phar new file mode 100644 index 0000000000..2434b1e32d Binary files /dev/null and b/ext/phar/tests/frontcontroller13.phar differ diff --git a/ext/phar/tests/frontcontroller13.phar.inc b/ext/phar/tests/frontcontroller13.phar.inc new file mode 100644 index 0000000000..0bfef46853 --- /dev/null +++ b/ext/phar/tests/frontcontroller13.phar.inc @@ -0,0 +1,14 @@ +setStub(' +--ENV-- +SCRIPT_NAME=/frontcontroller22.php/index.php +REQUEST_URI=/frontcontroller22.php/index.php +--FILE_EXTERNAL-- +frontcontroller13.phar +--EXPECTHEADERS-- +Content-type: text/html +--EXPECTF-- +string(4) "test" +string(12) "oof/test.php" + +Warning: include(phar://%s/./hi.php): failed to open stream: phar error: "hi.php" is not a file in phar "%sfrontcontroller22.php" in phar://%s/oof/test.php on line %d + +Warning: include(): Failed opening './hi.php' for inclusion (include_path='%s') in phar://%soof/test.php on line %d \ No newline at end of file