Skip to content

Commit 3296c58

Browse files
committed
Fix Warning messages in tests
1 parent b1d8b14 commit 3296c58

File tree

99 files changed

+175
-175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+175
-175
lines changed

Zend/tests/bug60909_1.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require 'notfound.php';
1313
error(require(): failed to open stream (notfound.php): %s)
1414
Warning: Uncaught Exception: Foo in %sbug60909_1.php:5
1515
Stack trace:
16-
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array)
16+
#0 %sbug60909_1.php(8): {closure}(2, 'require(): fail...', '%s', 8, Array)
1717
#1 %sbug60909_1.php(8): require()
1818
#2 {main}
1919
thrown in %sbug60909_1.php on line 5

ext/bz2/tests/001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool(false)
3737
Warning: bzopen(): 'rw' is not a valid mode for bzopen(). Only 'w' and 'r' are supported. in %s on line %d
3838
bool(false)
3939

40-
Warning: bzopen(no_such_file): failed to open stream: No such file or directory in %s on line %d
40+
Warning: bzopen(): failed to open stream (no_such_file): No such file or directory in %s on line %d
4141
bool(false)
4242
resource(%d) of type (stream)
4343
Done

ext/bz2/tests/002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ bool(false)
8383
resource(%d) of type (stream)
8484
resource(%d) of type (stream)
8585

86-
Warning: fopen(bz_open_002.txt): failed to open stream: Bad file %s in %s on line %d
86+
Warning: fopen(): failed to open stream (bz_open_002.txt): Bad file %s in %s on line %d
8787

8888
Warning: bzopen(): first parameter has to be string or file-resource in %s on line %d
8989
bool(false)
9090

91-
Warning: fopen(bz_open_002.txt): failed to open stream: Bad file %s in %s on line %d
91+
Warning: fopen(): failed to open stream (bz_open_002.txt): Bad file %s in %s on line %d
9292

9393
Warning: bzopen(): first parameter has to be string or file-resource in %s on line %d
9494
bool(false)

ext/fileinfo/tests/finfo_file_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ Warning: finfo_file(): Empty filename or path in %s on line %d
2424
bool(false)
2525
string(9) "directory"
2626

27-
Warning: finfo_file(&): failed to open stream: No such file or directory in %s on line %d
27+
Warning: finfo_file(): failed to open stream (&): No such file or directory in %s on line %d
2828
bool(false)

ext/fileinfo/tests/finfo_open_001.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ bool(false)
1919
resource(%d) of type (file_info)
2020
resource(%d) of type (file_info)
2121

22-
Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
22+
Warning: finfo_open(): failed to open stream (%s123): No such file or directory in %s on line %d
2323

24-
Warning: finfo_open(%s123): failed to open stream: No such file or directory in %s on line %d
24+
Warning: finfo_open(): failed to open stream (%s123): No such file or directory in %s on line %d
2525

2626
Warning: finfo_open(): Failed to load magic database at '%s123'. in %s on line %d
2727
bool(false)
2828

29-
Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
29+
Warning: finfo_open(): failed to open stream (%s1): No such file or directory in %s on line %d
3030

31-
Warning: finfo_open(%s1): failed to open stream: No such file or directory in %s on line %d
31+
Warning: finfo_open(): failed to open stream (%s1): No such file or directory in %s on line %d
3232

3333
Warning: finfo_open(): Failed to load magic database at '%s1'. in %s on line %d
3434
bool(false)
3535

36-
Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d
36+
Warning: finfo_open(): failed to open stream (%sinexistent): No such file or directory in %s on line %d
3737

38-
Warning: finfo_open(%sinexistent): failed to open stream: No such file or directory in %s on line %d
38+
Warning: finfo_open(): failed to open stream (%sinexistent): No such file or directory in %s on line %d
3939

4040
Warning: finfo_open(): Failed to load magic database at '%sinexistent'. in %s on line %d
4141
bool(false)

ext/fileinfo/tests/finfo_open_error.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ try {
3131
--EXPECTF--
3232
*** Testing finfo_open() : error functionality ***
3333

34-
Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or directory in %sfinfo_open_error.php on line 12
34+
Warning: finfo_open(): failed to open stream (%sfoobarfile): No such file or directory in %sfinfo_open_error.php on line 12
3535

36-
Warning: finfo_open(%sfoobarfile): failed to open stream: No such file or directory in %sfinfo_open_error.php on line 12
36+
Warning: finfo_open(): failed to open stream (%sfoobarfile): No such file or directory in %sfinfo_open_error.php on line 12
3737

3838
Warning: finfo_open(): Failed to load magic database at '%sfoobarfile'. in %sfinfo_open_error.php on line 12
3939
bool(false)

ext/fileinfo/tests/mime_content_type_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Warning: mime_content_type(): Can only process string or stream arguments in %s
2323

2424
Warning: mime_content_type(): Can only process string or stream arguments in %s on line %d
2525

26-
Warning: mime_content_type(foo/inexistent): failed to open stream: No such file or directory in %s on line %d
26+
Warning: mime_content_type(): failed to open stream (foo/inexistent): No such file or directory in %s on line %d
2727

2828
Warning: mime_content_type(): Empty filename or path in %s on line %d
2929

ext/gd/tests/001-mb.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var_dump(imagecreatefrompng($file));
1717
echo "Done\n";
1818
?>
1919
--EXPECTF--
20-
Warning: imagecreatefrompng(%s001私はガラスを食べられます.test): failed to open stream: No such file or directory in %s on line %d
20+
Warning: imagecreatefrompng(): failed to open stream (%s001私はガラスを食べられます.test): No such file or directory in %s on line %d
2121
bool(false)
2222

2323
Warning: imagecreatefrompng(): '%s001私はガラスを食べられます.test' is not a valid PNG file in %s on line %d

ext/gd/tests/001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var_dump(imagecreatefrompng($file));
1717
echo "Done\n";
1818
?>
1919
--EXPECTF--
20-
Warning: imagecreatefrompng(%s001.test): failed to open stream: No such file or directory in %s on line %d
20+
Warning: imagecreatefrompng(): failed to open stream (%s001.test): No such file or directory in %s on line %d
2121
bool(false)
2222

2323
Warning: imagecreatefrompng(): '%s001.test' is not a valid PNG file in %s on line %d

ext/gd/tests/imageloadfont_error2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Austin Drouare <austin.drouare [at] gmail [dot] com> #testfest #tek11
1111
var_dump( imageloadfont('\src\invalidfile.font') );
1212
?>
1313
--EXPECTF--
14-
Warning: imageloadfont(\src\invalidfile.font): failed to open stream: No such file or directory in %s on line %d
14+
Warning: imageloadfont(): failed to open stream (\src\invalidfile.font): No such file or directory in %s on line %d
1515
bool(false)

ext/libxml/tests/bug61367-write.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ bool(true)
4242

4343
Warning: DOMDocument::save(): open_basedir restriction in effect. File(%s) is not within the allowed path(s): (.) in %s on line %d
4444

45-
Warning: DOMDocument::save(%s): failed to open stream: Operation not permitted in %s on line %d
45+
Warning: DOMDocument::save(): failed to open stream (%s): Operation not permitted in %s on line %d
4646
bool(false)

ext/phar/tests/013.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ echo file_get_contents($pname.'/a');
2020
--CLEAN--
2121
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
2222
--EXPECTF--
23-
Warning: file_get_contents(phar://%s/a): failed to open stream: phar error: internal corruption of phar "%s" (%s file "a") in %s on line %d
23+
Warning: file_get_contents(): failed to open stream (phar://%s/a): phar error: internal corruption of phar "%s" (%s file "a") in %s on line %d

ext/phar/tests/014.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ echo file_get_contents($pname.'/a');
2020
--CLEAN--
2121
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
2222
--EXPECTF--
23-
Warning: file_get_contents(phar://%s/a): failed to open stream: phar error: internal corruption of phar "%s" (crc32 mismatch on file "a") in %s on line %d
23+
Warning: file_get_contents(): failed to open stream (phar://%s/a): phar error: internal corruption of phar "%s" (crc32 mismatch on file "a") in %s on line %d

ext/phar/tests/016.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ var_dump(file_get_contents($pname . '/d'));
2828
--CLEAN--
2929
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
3030
--EXPECTF--
31-
Warning: file_get_contents(phar://%s/a): failed to open stream: phar error: internal corruption of phar "%s" (actual filesize mismatch on file "a") in %s on line %d
31+
Warning: file_get_contents(): failed to open stream (phar://%s/a): phar error: internal corruption of phar "%s" (actual filesize mismatch on file "a") in %s on line %d
3232
bool(false)
3333

34-
Warning: file_get_contents(phar://%s/b): failed to open stream: phar error: internal corruption of phar "%s" (actual filesize mismatch on file "b") in %s on line %d
34+
Warning: file_get_contents(): failed to open stream (phar://%s/b): phar error: internal corruption of phar "%s" (actual filesize mismatch on file "b") in %s on line %d
3535
bool(false)
3636
string(1) "*"
3737

38-
Warning: file_get_contents(phar://%s/d): failed to open stream: phar error: internal corruption of phar "%s" (actual filesize mismatch on file "d") in %s on line %d
38+
Warning: file_get_contents(): failed to open stream (phar://%s/d): phar error: internal corruption of phar "%s" (actual filesize mismatch on file "d") in %s on line %d
3939
bool(false)

ext/phar/tests/016b.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ echo file_get_contents($pname . '/a');
2121
--CLEAN--
2222
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
2323
--EXPECTF--
24-
Warning: file_get_contents(phar://%s/a): failed to open stream: phar error: internal corruption of phar "%s" (actual filesize mismatch on file "a") in %s on line %d
24+
Warning: file_get_contents(): failed to open stream (phar://%s/a): phar error: internal corruption of phar "%s" (actual filesize mismatch on file "a") in %s on line %d

ext/phar/tests/017.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ $dir = opendir('phar://hio');
2929
string(%d) "%s017.phar.php"
3030
bool(true)
3131

32-
Warning: opendir(phar://hio): failed to open dir: phar error: no directory in "phar://hio", must have at least phar://hio/ for root directory (always use full path to a new phar)
32+
Warning: opendir(): failed to open dir (phar://hio): phar error: no directory in "phar://hio", must have at least phar://hio/ for root directory (always use full path to a new phar)
3333
phar url "phar://hio" is unknown in %s017.php on line %d

ext/phar/tests/027.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ int(0)
8686
bool(false)
8787
opendir edge cases
8888

89-
Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at least phar:/// for root directory (always use full path to a new phar)
89+
Warning: opendir(): failed to open dir (phar://): phar error: no directory in "phar://", must have at least phar:/// for root directory (always use full path to a new phar)
9090
phar url "phar://" is unknown in %s027.php on line %d
9191
bool(false)
9292

93-
Warning: opendir(phar://foo.phar/hi): failed to open dir: phar error: invalid url or non-existent phar "phar://foo.phar/hi"
93+
Warning: opendir(): failed to open dir (phar://foo.phar/hi): phar error: invalid url or non-existent phar "phar://foo.phar/hi"
9494
phar url "phar://foo.phar/hi" is unknown in %s027.php on line %d
9595
bool(false)
9696
===DONE===

ext/phar/tests/bug69720.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ try {
2424
--EXPECTF--
2525
MY_METADATA_NULL
2626

27-
Warning: file_get_contents(phar://%s): failed to open stream: phar error: "test.php" is not a file in phar "%s.phar" in %s.php on line %d
27+
Warning: file_get_contents(): failed to open stream (phar://%s): phar error: "test.php" is not a file in phar "%s.phar" in %s.php on line %d
2828
array(1) {
2929
["whatever"]=>
3030
int(123)

ext/phar/tests/cache_list/frontcontroller22.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Content-type: text/html; charset=UTF-8
1717
string(4) "test"
1818
string(12) "oof/test.php"
1919

20-
Warning: include(./hi.php): failed to open stream: No such file or directory in phar://%s/oof/test.php on line %d
20+
Warning: include(): failed to open stream (./hi.php): No such file or directory in phar://%s/oof/test.php on line %d
2121

2222
Warning: include(): Failed opening './hi.php' for inclusion (include_path='%s') in phar://%soof/test.php on line %d

ext/phar/tests/create_new_phar_b.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ include 'phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php/a.ph
1717
--CLEAN--
1818
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
1919
--EXPECTF--
20-
Warning: file_put_contents(phar://%screate_new_phar_b.phar.php/a.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %screate_new_phar_b.php on line %d
20+
Warning: file_put_contents(): failed to open stream (phar://%screate_new_phar_b.phar.php/a.php): phar error: write operations disabled by the php.ini setting phar.readonly in %screate_new_phar_b.php on line %d
2121

22-
Warning: include(phar://%screate_new_phar_b.phar.php/a.php): failed to open stream: %s in %screate_new_phar_b.php on line %d
22+
Warning: include(): failed to open stream (phar://%screate_new_phar_b.phar.php/a.php): %s in %screate_new_phar_b.php on line %d
2323

2424
Warning: include(): Failed opening 'phar://%screate_new_phar_b.phar.php/a.php' for inclusion (include_path='%s') in %screate_new_phar_b.php on line %d
2525

ext/phar/tests/create_path_error.phpt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ foreach($checks as $check)
6666
--EXPECTF--
6767
string(5) "query"
6868
string(5) "query"
69-
1:Error: file_put_contents(phar://%s//): failed to open stream: phar error: file "" in phar "%s" cannot be empty
70-
2:Error: file_put_contents(phar://%s/.): failed to open stream: phar error: file "" in phar "%s" cannot be empty
71-
3:Error: file_put_contents(phar://%s/../): failed to open stream: phar error: file "" in phar "%s" cannot be empty
72-
4:Error: file_put_contents(phar://%s/a/..): failed to open stream: phar error: file "" in phar "%s" cannot be empty
69+
1:Error: file_put_contents(): failed to open stream (phar://%s//): phar error: file "" in phar "%s" cannot be empty
70+
2:Error: file_put_contents(): failed to open stream (phar://%s/.): phar error: file "" in phar "%s" cannot be empty
71+
3:Error: file_put_contents(): failed to open stream (phar://%s/../): phar error: file "" in phar "%s" cannot be empty
72+
4:Error: file_put_contents(): failed to open stream (phar://%s/a/..): phar error: file "" in phar "%s" cannot be empty
7373
5:
7474
6:
7575
7:
7676
8:
77-
9:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
78-
10:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
79-
11:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
80-
12:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
81-
13:Error: file_put_contents(phar://%s): failed to open stream: phar error: invalid path "%s" contains illegal character
77+
9:Error: file_put_contents(): failed to open stream (phar://%s): phar error: invalid path "%s" contains illegal character
78+
10:Error: file_put_contents(): failed to open stream (phar://%s): phar error: invalid path "%s" contains illegal character
79+
11:Error: file_put_contents(): failed to open stream (phar://%s): phar error: invalid path "%s" contains illegal character
80+
12:Error: file_put_contents(): failed to open stream (phar://%s): phar error: invalid path "%s" contains illegal character
81+
13:Error: file_put_contents(): failed to open stream (phar://%s): phar error: invalid path "%s" contains illegal character
8282
Error: Phar::offsetSet() expects parameter 1 to be a valid path, string given===DONE===

ext/phar/tests/delete.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ echo file_get_contents($pname . '/a') . "\n";
2828
--EXPECTF--
2929
a
3030

31-
Warning: file_get_contents(phar://%sdelete.phar.php/a): failed to open stream: phar error: "a" is not a file in phar "%sdelete.phar.php" in %sdelete.php on line 16
31+
Warning: file_get_contents(): failed to open stream (phar://%sdelete.phar.php/a): phar error: "a" is not a file in phar "%sdelete.phar.php" in %sdelete.php on line 16

ext/phar/tests/delete_in_phar.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This is b/c
4949
This is a
5050
This is b
5151

52-
Warning: include(%sdelete_in_phar.phar.php/b/c.php): failed to open stream: phar error: "b/c.php" is not a file in phar "%sdelete_in_phar.phar.php" in %sdelete_in_phar.php on line %d
52+
Warning: include(): failed to open stream (%sdelete_in_phar.phar.php/b/c.php): phar error: "b/c.php" is not a file in phar "%sdelete_in_phar.phar.php" in %sdelete_in_phar.php on line %d
5353

5454
Warning: include(): Failed opening 'phar://%sdelete_in_phar.phar.php/b/c.php' for inclusion (include_path='%s') in %sdelete_in_phar.php on line %d
5555

ext/phar/tests/delete_in_phar_confirm.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ This is b/c
5353
This is a
5454
This is b
5555

56-
Warning: include(%sdelete_in_phar_confirm.phar.php/b/c.php): failed to open stream: phar error: "b/c.php" is not a file in phar "%sdelete_in_phar_confirm.phar.php" in %sdelete_in_phar_confirm.php on line %d
56+
Warning: include(): failed to open stream (%sdelete_in_phar_confirm.phar.php/b/c.php): phar error: "b/c.php" is not a file in phar "%sdelete_in_phar_confirm.phar.php" in %sdelete_in_phar_confirm.php on line %d
5757

5858
Warning: include(): Failed opening 'phar://%sdelete_in_phar_confirm.phar.php/b/c.php' for inclusion (include_path='%s') in %sdelete_in_phar_confirm.php on line %d
5959

ext/phar/tests/fgc_edgecases.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ echo file_get_contents("./hi");
7979
echo file_get_contents("./hi", 0, $context, 0, 0);
8080
?>
8181

82-
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
82+
Warning: file_get_contents(): failed to open stream (phar://%sfgc_edgecases.phar.php/oops): phar error: path "oops" is a directory in phar://%sfgc_edgecases.phar.php/foo/hi on line %d
8383

8484
Warning: file_get_contents(): Failed to seek to position 50000 in the stream in phar://%sfgc_edgecases.phar.php/foo/hi on line %d
8585
<?php

ext/phar/tests/fopen.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ include $fname;
3838
--EXPECTF--
3939
Warning: fopen() expects at least 2 parameters, 0 given in %sfopen.php on line %d
4040
hihi
41-
Warning: fopen(notfound.txt): failed to open stream: No such file or directory in phar://%sfopen.phar.php/index.php on line %d
41+
Warning: fopen(): failed to open stream (notfound.txt): No such file or directory in phar://%sfopen.phar.php/index.php on line %d
4242
===DONE===

ext/phar/tests/fopen_edgecases.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ include $pname . '/test.php';
7272
<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php'); ?>
7373
<?php unlink(__DIR__ . '/fopen_edgetest.phar');
7474
--EXPECTF--
75-
Warning: fopen(phar://%sfopen_edgecases.phar.php/b/c.php): failed to open stream: phar error: open mode append not supported in %sfopen_edgecases.php on line %d
75+
Warning: fopen(): failed to open stream (phar://%sfopen_edgecases.phar.php/b/c.php): phar error: open mode append not supported in %sfopen_edgecases.php on line %d
7676

77-
Warning: fopen(phar://%sfopen_edgecases.phar.php.phar.gz): failed to open stream: phar error: invalid url or non-existent phar "phar://%sfopen_edgecases.phar.php.phar.gz" in %sfopen_edgecases.php on line %d
77+
Warning: fopen(): failed to open stream (phar://%sfopen_edgecases.phar.php.phar.gz): phar error: invalid url or non-existent phar "phar://%sfopen_edgecases.phar.php.phar.gz" in %sfopen_edgecases.php on line %d
7878
bool(false)
7979

80-
Warning: fopen(phar://%sfopen_edgecases.2.phar.php/hi): failed to open stream: internal corruption of phar "%sfopen_edgecases.2.phar.php" (truncated manifest at stub end) in %sfopen_edgecases.php on line %d
80+
Warning: fopen(): failed to open stream (phar://%sfopen_edgecases.2.phar.php/hi): internal corruption of phar "%sfopen_edgecases.2.phar.php" (truncated manifest at stub end) in %sfopen_edgecases.php on line %d
8181

82-
Warning: fopen(phar://): failed to open stream: phar error: no directory in "phar://", must have at least phar:/// for root directory (always use full path to a new phar) in %sfopen_edgecases.php on line %d
82+
Warning: fopen(): failed to open stream (phar://): phar error: no directory in "phar://", must have at least phar:/// for root directory (always use full path to a new phar) in %sfopen_edgecases.php on line %d
8383

84-
Warning: fopen(phar://foo.phar): failed to open stream: %s in %sfopen_edgecases.php on line %d
84+
Warning: fopen(): failed to open stream (phar://foo.phar): %s in %sfopen_edgecases.php on line %d
8585
int(0)
8686
int(1)
8787
int(0)
@@ -119,6 +119,6 @@ Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/
119119

120120
Warning: rename(): phar error: cannot rename "phar://%sfopen_edgecases.phar.php/hi" to "phar://%sfopen_edgecases.phar.php/there": invalid or non-writable url "phar://%sfopen_edgecases.phar.php/hi" in %sfopen_edgecases.php on line %d
121121

122-
Warning: fopen(./notfound.php): failed to open stream: No such file or directory in phar://%sfopen_edgecases.phar.php/test.php on line %d
122+
Warning: fopen(): failed to open stream (./notfound.php): No such file or directory in phar://%sfopen_edgecases.phar.php/test.php on line %d
123123

124124
===DONE===

ext/phar/tests/fopen_edgecases2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ Warning: fopen() expects parameter 1 to be a valid path, array given in %sfopen_
3939
blah
4040
test
4141

42-
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
42+
Warning: fopen(): failed to open stream (phar://%sfopen_edgecases2.phar.php/oops): phar error: path "oops" is a directory in phar://%sfopen_edgecases2.phar.php/foo/hi on line %d
4343
===DONE===

0 commit comments

Comments
 (0)