--TEST-- Phar: test edge cases of readfile() function interception --SKIPIF-- --INI-- phar.readonly=0 --FILE-- '); include $pname . '/foo/hi'; ?> ===DONE=== --CLEAN-- --EXPECTF-- blah test test Warning: readfile(phar://%sreadfile_edgecasesU.phar.php/oops): failed to open stream: phar error: path "oops" is a directory in phar://%sreadfile_edgecasesU.phar.php/foo/hi on line %d ===DONE===