Skip to content

Commit 0ecffc8

Browse files
committed
Add UPGRADING notes for deprecations
1 parent 06a0340 commit 0ecffc8

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

UPGRADING

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,35 @@ PHP 7.2 UPGRADE NOTES
102102
4. Deprecated Functionality
103103
========================================
104104

105+
All the deprecated functionality listed in the following will be removed in
106+
PHP 8.0.
107+
108+
- Core:
109+
. The trace_errors ini directive has been deprecated.
110+
. The __autoload() mechanism has been deprecated, use spl_autoload_register()
111+
instead.
112+
. The (unset) cast has been deprecated. This does not affect the unset($var)
113+
language construct.
114+
. The create_function() function has been deprecated, use anonymous functions
115+
instead.
116+
. The each() function has been deprecated, use a foreach loop instead.
117+
105118
- GD:
106-
. png2wbmp() and jpeg2wbmp() have been deprecated, and will be removed as of
107-
PHP 8.0.0.
119+
. png2wbmp() and jpeg2wbmp() have been deprecated.
120+
121+
- GMP:
122+
. The gmp_random() function has been deprecated, use gmp_random_bits() or
123+
gmp_random_range() instead.
124+
125+
- Mbstring:
126+
. The mbstring.func_overload ini directive has been deprecated.
127+
128+
- Standard:
129+
. Calling parse_str() without the result argument has been deprecated.
130+
. Calling assert() with a string argument has been deprecated, use an ordinary
131+
expression instead.
132+
133+
See also: https://wiki.php.net/rfc/deprecations_php_7_2
108134

109135
========================================
110136
5. Changed Functions

0 commit comments

Comments
 (0)