@@ -17,7 +17,7 @@ $pname = 'phar://' . $fname;
17
17
file_get_contents (array ());
18
18
chdir (__DIR__ );
19
19
file_put_contents ($ fname , "blah \n" );
20
- file_put_contents ("foob " , "test \n" );
20
+ file_put_contents ("fgc_edgecases.txt " , "test \n" );
21
21
echo file_get_contents ($ fname );
22
22
unlink ($ fname );
23
23
mkdir ($ pname . '/oops ' );
@@ -26,9 +26,9 @@ file_put_contents($pname . '/foo/hi', '<?php
26
26
echo file_get_contents("foo/" . basename(__FILE__));
27
27
$context = stream_context_create();
28
28
file_get_contents("./hi", 0, $context, 0, -1);
29
- echo file_get_contents("foob ");
29
+ echo file_get_contents("fgc_edgecases.txt ");
30
30
set_include_path(" ' . addslashes (__DIR__ ) . '");
31
- echo file_get_contents("foob ", true);
31
+ echo file_get_contents("fgc_edgecases.txt ", true);
32
32
echo file_get_contents("./hi", 0, $context);
33
33
echo file_get_contents("../oops");
34
34
echo file_get_contents("./hi", 0, $context, 50000);
@@ -44,17 +44,17 @@ include $pname . '/foo/hi';
44
44
--CLEAN--
45
45
<?php unlink (__DIR__ . '/ ' . basename (__FILE__ , '.clean.php ' ) . '.phar.php ' ); ?>
46
46
<?php rmdir (__DIR__ . '/poo ' ); ?>
47
- <?php unlink (__DIR__ . '/foob ' ); ?>
47
+ <?php unlink (__DIR__ . '/fgc_edgecases.txt ' ); ?>
48
48
--EXPECTF--
49
49
Warning: file_get_contents() expects parameter 1 to be a valid path, array given in %sfgc_edgecases.php on line %d
50
50
blah
51
51
<?php
52
52
echo file_get_contents ("foo/ " . basename (__FILE__ ));
53
53
$ context = stream_context_create ();
54
54
file_get_contents ("./hi " , 0 , $ context , 0 , -1 );
55
- echo file_get_contents ("foob " );
55
+ echo file_get_contents ("fgc_edgecases.txt " );
56
56
set_include_path ("%stests " );
57
- echo file_get_contents ("foob " , true );
57
+ echo file_get_contents ("fgc_edgecases.txt " , true );
58
58
echo file_get_contents ("./hi " , 0 , $ context );
59
59
echo file_get_contents ("../oops " );
60
60
echo file_get_contents ("./hi " , 0 , $ context , 50000 );
69
69
echo file_get_contents ("foo/ " . basename (__FILE__ ));
70
70
$ context = stream_context_create ();
71
71
file_get_contents ("./hi " , 0 , $ context , 0 , -1 );
72
- echo file_get_contents ("foob " );
72
+ echo file_get_contents ("fgc_edgecases.txt " );
73
73
set_include_path ("%stests " );
74
- echo file_get_contents ("foob " , true );
74
+ echo file_get_contents ("fgc_edgecases.txt " , true );
75
75
echo file_get_contents ("./hi " , 0 , $ context );
76
76
echo file_get_contents ("../oops " );
77
77
echo file_get_contents ("./hi " , 0 , $ context , 50000 );
@@ -86,9 +86,9 @@ Warning: file_get_contents(): Failed to seek to position 50000 in the stream in
86
86
echo file_get_contents ("foo/ " . basename (__FILE__ ));
87
87
$ context = stream_context_create ();
88
88
file_get_contents ("./hi " , 0 , $ context , 0 , -1 );
89
- echo file_get_contents ("foob " );
89
+ echo file_get_contents ("fgc_edgecases.txt " );
90
90
set_include_path ("%stests " );
91
- echo file_get_contents ("foob " , true );
91
+ echo file_get_contents ("fgc_edgecases.txt " , true );
92
92
echo file_get_contents ("./hi " , 0 , $ context );
93
93
echo file_get_contents ("../oops " );
94
94
echo file_get_contents ("./hi " , 0 , $ context , 50000 );
0 commit comments