Skip to content

Commit 1f7abed

Browse files
committed
streams: remove php_stream_wrapper_warn_param() functions
And instead let the normal docref error handling code handle arguments
1 parent ff23286 commit 1f7abed

32 files changed

Lines changed: 88 additions & 146 deletions

Zend/tests/display_error_function_args.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Warning: unlink('/'): %s in %s on line %d
2525

2626
Warning: password_hash(Object(SensitiveParameterValue), '2y', Array): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d
2727

28-
Warning: unlink(/): %s in %s on line %d
28+
Warning: unlink(): %s in %s on line %d
2929

3030
Warning: password_hash(): The "salt" option has been ignored, since providing a custom salt is no longer supported in %s on line %d

ext/session/tests/user_session_module/session_set_save_handler_variation4.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ array(3) {
8383
}
8484
Destroy [%s,%s]
8585

86-
Warning: unlink(%s): No such file or directory in %s on line %d
86+
Warning: unlink(): No such file or directory in %s on line %d
8787
Close [%s,PHPSESSID]
8888
bool(true)

ext/session/tests/user_session_module/session_set_save_handler_variation5.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ GC [0]
9797
bool(true)
9898
Destroy [%s,PHPT-%d]
9999

100-
Warning: unlink(%s): No such file or directory in %s on line %d
100+
Warning: unlink(): No such file or directory in %s on line %d
101101
Close [%s,PHPSESSID]
102102
bool(true)

ext/standard/tests/file/copy_variation4.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Destination file name => %s/
9191
Size of source file => int(1500)
9292
Size of destination file => int(%d)
9393

94-
Warning: unlink(%s): %s
94+
Warning: unlink(): %s
9595

9696
-- Iteration 2 --
9797
Existence of destination file before copy => bool(true)
@@ -103,7 +103,7 @@ Destination file name => %s/
103103
Size of source file => int(1500)
104104
Size of destination file => int(%d)
105105

106-
Warning: unlink(%s): %s
106+
Warning: unlink(): %s
107107

108108
-- Iteration 3 --
109109
Existence of destination file before copy => bool(true)
@@ -115,7 +115,7 @@ Destination file name => %s/
115115
Size of source file => int(1500)
116116
Size of destination file => int(%d)
117117

118-
Warning: unlink(%s): %s
118+
Warning: unlink(): %s
119119

120120
-- Iteration 4 --
121121
Existence of destination file before copy => bool(true)
@@ -127,7 +127,7 @@ Destination file name => %s/
127127
Size of source file => int(1500)
128128
Size of destination file => int(%d)
129129

130-
Warning: unlink(%s): %s
130+
Warning: unlink(): %s
131131

132132
-- Iteration 5 --
133133
Existence of destination file before copy => bool(false)

ext/standard/tests/file/copy_variation5-win32.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Destination file name => %s/CopY5.TMP
9898
Size of source file => int(1500)
9999
Size of destination file => int(1500)
100100

101-
Warning: unlink(%s/COPY5.TMP): No such file or directory in %s on line %d
101+
Warning: unlink(): No such file or directory in %s on line %d
102102

103-
Warning: unlink(%s/CopY5.TMP): No such file or directory in %s on line %d
103+
Warning: unlink(): No such file or directory in %s on line %d
104104
*** Done ***

ext/standard/tests/file/mkdir_rmdir_error.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ echo "Done\n";
1111
--EXPECTF--
1212
*** Testing rmdir() on non-existent directory ***
1313

14-
Warning: rmdir(temp): No such file or directory in %s on line %d
14+
Warning: rmdir(): No such file or directory in %s on line %d
1515
bool(false)
1616
Done

ext/standard/tests/file/mkdir_rmdir_variation-win32-mb.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ bool(true)
15961596
*** Testing rmdir() on a non-empty directory ***
15971597
bool(true)
15981598

1599-
Warning: rmdir(%s/mkdir私はガラスを食べられます/): Directory not empty in %s on line %d
1599+
Warning: rmdir(): Directory not empty in %s on line %d
16001600
bool(false)
16011601

16021602
*** Testing mkdir() and rmdir() for binary safe functionality ***

ext/standard/tests/file/mkdir_rmdir_variation-win32.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1596,7 +1596,7 @@ bool(true)
15961596
*** Testing rmdir() on a non-empty directory ***
15971597
bool(true)
15981598

1599-
Warning: rmdir(%s/mkdir/): Directory not empty in %s on line %d
1599+
Warning: rmdir(): Directory not empty in %s on line %d
16001600
bool(false)
16011601

16021602
*** Testing mkdir() and rmdir() for binary safe functionality ***

ext/standard/tests/file/mkdir_rmdir_variation2.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool(true)
5656
*** Testing rmdir() on a non-empty directory ***
5757
bool(true)
5858

59-
Warning: rmdir(%s/mkdir_variation2/): %s on line %d
59+
Warning: rmdir(): %s on line %d
6060
bool(false)
6161

6262
*** Testing mkdir() and rmdir() for binary safe functionality ***

ext/standard/tests/file/readlink_realpath_variation2-win32.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Warning: readlink(): readlink failed to read the symbolic link (%s), error %d in
8080
bool(false)
8181
bool(false)
8282

83-
Warning: unlink(%s/./readlink_realpath_variation2/home/../home//tests//..//..//..//home//readlink_realpath_variation2_link.tmp/): No such file or directory in %s on line %d
83+
Warning: unlink(): No such file or directory in %s on line %d
8484

8585
-- Testing readlink() and realpath() with hardlink, linkname stored inside an array --
8686
bool(true)
@@ -94,5 +94,5 @@ Warning: readlink(): readlink failed to read the symbolic link (%s), error %d in
9494
bool(false)
9595
bool(false)
9696

97-
Warning: unlink(%s/./readlink_realpath_variation2/home/../home//tests//..//..//..//home//readlink_realpath_variation2_link.tmp/): No such file or directory in %s on line %d
97+
Warning: unlink(): No such file or directory in %s on line %d
9898
Done

0 commit comments

Comments
 (0)