Test: /ext/phar/tests/readfile_edgecases.phpt - Version 7.2.12    

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+
001- Warning: readfile() expects parameter 1 to be a valid path, array given in %sreadfile_edgecases.php on line %d
002- blah
003- <?php
004- readfile("foo/" . basename(__FILE__));
005- $context = stream_context_create();
006- readfile("foob");
007- set_include_path("%stests");
008- readfile("foob", true);
009- readfile("./hi", 0, $context);
010- readfile("../oops");
011- ?>
012- test
013- test
014- <?php
015- readfile("foo/" . basename(__FILE__));
016- $context = stream_context_create();
017- readfile("foob");
018- set_include_path("%stests");
019- readfile("foob", true);
020- readfile("./hi", 0, $context);
021- readfile("../oops");
022- ?>
023-
024- 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
025- ===DONE===