--TEST-- Phar: test edge cases of readfile() function interception --SKIPIF-- --INI-- phar.readonly=0 --FILE-- '); include $pname . '/foo/hi'; ?> ===DONE=== --CLEAN-- --EXPECTF-- Notice: Array to string conversion in %sreadfile_edgecases.php on line %d Warning: readfile(Array): failed to open stream: No such file or directory in %sreadfile_edgecases.php on line %d 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 ===DONE===