Skip to content

Commit 4a528d4

Browse files
committed
Add UPGRADING notes for deprecations
1 parent fb0e8c6 commit 4a528d4

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

UPGRADING

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,15 @@ FPM:
259259
========================================
260260

261261
Core:
262-
. The declaration of case-insensitive constants has been deprecate. Passing
262+
. The declaration of case-insensitive constants has been deprecated. Passing
263263
true as the third argument to define() will now generate a deprecation
264264
warning. The use of case-insensitive constants with a case that differs from
265265
the declaration is also deprecated.
266266
(RFC: https://wiki.php.net/rfc/case_insensitive_constant_deprecation)
267+
. Declaring a function called assert() inside a namespace is deprecated.
268+
The assert() function is subject to special handling by the engine, which
269+
may lead to inconsistent behavior when defining a namespaced function with
270+
the same name.
267271

268272
Filter:
269273
. The explicit usage of the constants FILTER_FLAG_SCHEME_REQUIRED and
@@ -274,7 +278,47 @@ GD:
274278
. image2wbmp() has been deprecated.
275279

276280
Intl:
277-
. Usage of the Normalizer::NONE form throws a deprecation warning, if PHP is linked with ICU >= 56.
281+
. Usage of the Normalizer::NONE form throws a deprecation warning, if PHP is
282+
linked with ICU >= 56.
283+
284+
Mbstring:
285+
. The following undocumented mbereg_*() aliases have been deprecated. Use the
286+
corresponding mb_ereg_*() variants instead.
287+
. mbregex_encoding()
288+
. mbereg()
289+
. mberegi()
290+
. mbereg_replace()
291+
. mberegi_replace()
292+
. mbsplit()
293+
. mbereg_match()
294+
. mbereg_search()
295+
. mbereg_search_pos()
296+
. mbereg_search_regs()
297+
. mbereg_search_init()
298+
. mbereg_search_getregs()
299+
. mbereg_search_getpos()
300+
. mbereg_search_setpos()
301+
302+
PDO ODBC:
303+
. The pdo_odbc.db2_instance_name ini setting has been formally deprecated. It
304+
has already been deprecated in the documentation since PHP 5.1.1.
305+
306+
Standard:
307+
. Passing a non-string needle to string search functions is deprecated. In the
308+
future the needle will be interpreted as a string instead of an ASCII codepoint.
309+
Depending on the intended behavior, you should either explicitly cast the
310+
needle to string or perform an explicit call to ord(). The following functions
311+
are affected:
312+
. strpos()
313+
. strrpos()
314+
. stripos()
315+
. strripos()
316+
. strstr()
317+
. strchr()
318+
. strrchr()
319+
. stristr()
320+
. The fgetss() function and the string.strip_tags stream filter have been deprecated.
321+
This also affects the SplFileObject::fgetss() method and gzgetss() function.
278322

279323
========================================
280324
5. Changed Functions

0 commit comments

Comments
 (0)