You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm counting this towards the non-string needle deprecation from
https://wiki.php.net/rfc/deprecations_php_7_3. I wasn't aware that
mb_ereg_replace() is also affected by this issue. It's even more
ridiculous than usual here, because the integer is interpreted as
an ASCII codepoint, even though these are supposed to be multibyte
functions :(
Copy file name to clipboardExpand all lines: ext/mbstring/tests/bug72994.phpt
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ var_dump($var1);
14
14
--EXPECTF--
15
15
Notice: Undefined variable: var in %s on line %d
16
16
17
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
18
+
17
19
Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %sbug72994.php on line %d
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
103
105
string(10) "string_val"
104
106
105
107
-- Iteration 2 --
108
+
109
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
106
110
string(10) "string_val"
107
111
108
112
-- Iteration 3 --
113
+
114
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
109
115
string(10) "string_val"
110
116
111
117
-- Iteration 4 --
112
118
113
-
Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %smb_ereg_replace_variation1.php on line %d
119
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
120
+
121
+
Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %s on line %d
114
122
bool(false)
115
123
116
124
-- Iteration 5 --
125
+
126
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
117
127
string(10) "string_val"
118
128
119
129
-- Iteration 6 --
120
130
121
-
Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %smb_ereg_replace_variation1.php on line %d
131
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
132
+
133
+
Warning: mb_ereg_replace(): mbregex compile err: invalid code point value in %s on line %d
122
134
bool(false)
123
135
124
136
-- Iteration 7 --
137
+
138
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
125
139
string(10) "string_val"
126
140
127
141
-- Iteration 8 --
142
+
143
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
128
144
string(10) "string_val"
129
145
130
146
-- Iteration 9 --
147
+
148
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
131
149
string(10) "string_val"
132
150
133
151
-- Iteration 10 --
152
+
153
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
134
154
string(10) "string_val"
135
155
136
156
-- Iteration 11 --
157
+
158
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
137
159
string(10) "string_val"
138
160
139
161
-- Iteration 12 --
162
+
163
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
140
164
string(10) "string_val"
141
165
142
166
-- Iteration 13 --
167
+
168
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
143
169
string(10) "string_val"
144
170
145
171
-- Iteration 14 --
172
+
173
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
146
174
string(10) "string_val"
147
175
148
176
-- Iteration 15 --
177
+
178
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
149
179
string(10) "string_val"
150
180
151
181
-- Iteration 16 --
@@ -164,11 +194,17 @@ string(10) "string_val"
164
194
string(10) "string_val"
165
195
166
196
-- Iteration 21 --
197
+
198
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
167
199
string(10) "string_val"
168
200
169
201
-- Iteration 22 --
202
+
203
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
170
204
string(10) "string_val"
171
205
172
206
-- Iteration 23 --
207
+
208
+
Deprecated: mb_ereg_replace(): Non-string patterns will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d
0 commit comments