Skip to content

Commit fc5a88f

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 9cb9c53 + c31b2bb commit fc5a88f

File tree

3 files changed

+17
-34
lines changed

3 files changed

+17
-34
lines changed

ext/mbstring/tests/mb_substitute_character.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var_dump(bin2hex(mb_convert_encoding("\xe2\x99\xa0\xe3\x81\x82", "CP932", "UTF-8
2525

2626
var_dump(mb_substitute_character('BAD_NAME'));
2727
?>
28-
--EXPECTF--
28+
--EXPECT--
2929
bool(true)
3030
int(12356)
3131
string(8) "82a282a0"
@@ -38,6 +38,4 @@ string(4) "82a0"
3838
bool(true)
3939
string(6) "entity"
4040
string(20) "262378323636303b82a0"
41-
42-
Warning: mb_substitute_character(): Unknown character in %s on line %d
43-
bool(false)
41+
bool(true)

ext/mbstring/tests/mb_substitute_character_basic.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var_dump( mb_substitute_character() );
2727
var_dump( mb_substitute_character("b") );
2828

2929
?>
30-
--EXPECTF--
30+
--EXPECT--
3131
*** Testing mb_substitute_character() : basic functionality ***
3232
int(63)
3333
bool(true)
@@ -36,6 +36,4 @@ bool(true)
3636
int(1234)
3737
bool(true)
3838
string(4) "none"
39-
40-
Warning: mb_substitute_character(): Unknown character in %s on line %d
41-
bool(false)
39+
bool(true)

ext/mbstring/tests/mb_substitute_character_variation1.phpt

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ fclose($fp);
122122
*** Testing mb_substitute_character() : usage variation ***
123123

124124
--int 0--
125-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
126-
bool(false)
125+
bool(true)
127126

128127
--int 1--
129128
bool(true)
@@ -151,12 +150,10 @@ Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
151150
bool(false)
152151

153152
--float .5--
154-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
155-
bool(false)
153+
bool(true)
156154

157155
--empty array--
158-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
159-
bool(false)
156+
bool(true)
160157

161158
--int indexed array--
162159
bool(true)
@@ -168,26 +165,22 @@ bool(true)
168165
bool(true)
169166

170167
--uppercase NULL--
171-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
172-
bool(false)
168+
bool(true)
173169

174170
--lowercase null--
175-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
176-
bool(false)
171+
bool(true)
177172

178173
--lowercase true--
179174
bool(true)
180175

181176
--lowercase false--
182-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
183-
bool(false)
177+
bool(true)
184178

185179
--uppercase TRUE--
186180
bool(true)
187181

188182
--uppercase FALSE--
189-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
190-
bool(false)
183+
bool(true)
191184

192185
--empty string DQ--
193186
bool(true)
@@ -196,20 +189,16 @@ bool(true)
196189
bool(true)
197190

198191
--string DQ--
199-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
200-
bool(false)
192+
bool(true)
201193

202194
--string SQ--
203-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
204-
bool(false)
195+
bool(true)
205196

206197
--mixed case string--
207-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
208-
bool(false)
198+
bool(true)
209199

210200
--heredoc--
211-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
212-
bool(false)
201+
bool(true)
213202

214203
--instance of classWithToString--
215204
Error: 8 - Object of class classWithToString could not be converted to int, %s(%d)
@@ -220,9 +209,7 @@ Error: 8 - Object of class classWithoutToString could not be converted to int, %
220209
bool(true)
221210

222211
--undefined var--
223-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
224-
bool(false)
212+
bool(true)
225213

226214
--unset var--
227-
Error: 2 - mb_substitute_character(): Unknown character, %s(%d)
228-
bool(false)
215+
bool(true)

0 commit comments

Comments
 (0)