--TEST-- Phar: test edge cases of fopen() function interception #2 --SKIPIF-- --INI-- phar.readonly=0 --FILE-- '); include $pname . '/foo/hi'; ?> ===DONE=== --CLEAN-- --EXPECTF-- Warning: fopen() expects parameter 1 to be a valid path, array given in %sfopen_edgecases2.php on line %d blah test Warning: fopen(phar://%sfopen_edgecases2.phar.php/oops): failed to open stream: phar error: path "oops" is a directory in phar://%sfopen_edgecases2.phar.php/foo/hi on line %d ===DONE===