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