--TEST-- Phar: test edge cases of file_get_contents() function interception --SKIPIF-- ")) die("skip pre-unicode version of PHP required"); ?> --INI-- phar.readonly=0 --FILE-- '); include $pname . '/foo/hi'; ?> ===DONE=== --CLEAN-- --EXPECTF-- Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %sfgc_edgecases.php on line %d blah Warning: file_get_contents(): length must be greater than or equal to zero in phar://%sfgc_edgecases.phar.php/foo/hi on line %d test test Warning: file_get_contents(phar://%sfgc_edgecases.phar.php/oops): failed to open stream: phar error: path "oops" is a directory in phar://%sfgc_edgecases.phar.php/foo/hi on line %d Warning: file_get_contents(): Failed to seek to position 50000 in the stream in phar://%sfgc_edgecases.phar.php/foo/hi on line %d ===DONE===