Skip to content

Commit 453a516

Browse files
committed
[skip-ci] Fixup UPGRADING documents
Some entries were in the wrong section/wrong document.
1 parent dff3219 commit 453a516

File tree

2 files changed

+29
-19
lines changed

2 files changed

+29
-19
lines changed

UPGRADING

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,21 @@ PHP 8.1 UPGRADE NOTES
6464
PHP cross-version compatibility concerns, a `#[ReturnTypeWillChange]`
6565
attribute can be added to silence the deprecation notice.
6666
RFC: https://wiki.php.net/rfc/internal_method_return_types
67-
. Added support for intersection types.
68-
They cannot be combined with union types.
69-
RFC: https://wiki.php.net/rfc/pure-intersection-types
70-
. Added support for the final modifier for class constants.
71-
RFC: https://wiki.php.net/rfc/final_class_const
7267

7368
- Fileinfo:
7469
. The fileinfo functions now accept and return, respectively, finfo objects
75-
instead of resources.
70+
instead of resources. Return value checks using is_resource()
71+
should be replaced with checks for `false`.
7672

7773
- FTP:
7874
. The FTP functions now accept and return, respectively, FTP\Connection objects
79-
instead of resources.
75+
instead of resources. Return value checks using is_resource()
76+
should be replaced with checks for `false`.
8077

8178
- IMAP:
8279
. The IMAP functions now accept and return, respectively, IMAP\Connection objects
83-
instead of resources.
80+
instead of resources. Return value checks using is_resource()
81+
should be replaced with checks for `false`.
8482

8583
- LDAP:
8684
. The LDAP functions now accept and return, respectively, LDAP\Connection objects
@@ -143,9 +141,6 @@ PHP 8.1 UPGRADE NOTES
143141
. The PgSQL functions now accept and return, respectively, \PgSql\Lob
144142
objects instead of "pgsql large object" resources. Return value checks
145143
using is_resource() should be replaced with checks for `false`.
146-
. Not passing the connection argument to PgSQL functions and using the
147-
default connection is deprecated.
148-
RFC: https://wiki.php.net/rfc/deprecations_php_8_1
149144

150145
- Phar:
151146
. To comply with the ArrayAccess interface, Phar::offsetUnset() and
@@ -172,12 +167,8 @@ PHP 8.1 UPGRADE NOTES
172167
reference representation since PHP 7.0.
173168
. debug_zval_dump() will not print "interned" instead of a dummy refcount of
174169
one for interned strings and immutable arrays.
175-
. fputcsv() now accepts a new "eol" argument which allow to define a custom
176-
eol sequence, the default remains the same and is "\n".
177170

178171
- SPL:
179-
. SplFileObject::fputcsv() now accepts a new "eol" argument which allow to
180-
define a custom eol sequence, the default remains the same and is "\n".
181172
. SplFixedArray will now be JSON encoded like an array.
182173

183174
========================================
@@ -210,6 +201,11 @@ PHP 8.1 UPGRADE NOTES
210201
intended for use in conjunction with "upload webkitdirectory".
211202
. It is now allowed to specify named arguments after an argument unpack, e.g.
212203
foo(...$args, named: $arg).
204+
. Added support for intersection types.
205+
They cannot be combined with union types.
206+
RFC: https://wiki.php.net/rfc/pure-intersection-types
207+
. Added support for the final modifier for class constants.
208+
RFC: https://wiki.php.net/rfc/final_class_const
213209

214210
- Curl:
215211
. Added CURLOPT_DOH_URL option.
@@ -242,7 +238,7 @@ PHP 8.1 UPGRADE NOTES
242238
imageavif() functions, if libgd has been built with avif support.
243239

244240
- hash:
245-
. The following functions have changed signatures:
241+
. The following functions have changed signatures, to support an optional `$options` argument:
246242

247243
- function hash(string $algo, string $data, bool $binary = false, array $options = []): string|false {}
248244
- function hash_file(string $algo, string $filename, bool $binary = false, array $options = []): string|false {}
@@ -297,7 +293,7 @@ PHP 8.1 UPGRADE NOTES
297293
. Binding in execute has been added to mysqli prepared statements.
298294
Parameters can now be passed to mysqli_stmt::execute as an array.
299295
RFC: https://wiki.php.net/rfc/mysqli_bind_in_execute
300-
. A new function has been added to mysqli_result called mysqli_fetch_column().
296+
. A new method has been added to mysqli_result called mysqli_fetch_column().
301297
It allows for fetching single scalar values from the result set.
302298
RFC: https://wiki.php.net/rfc/mysqli_fetch_column
303299

@@ -318,6 +314,14 @@ PHP 8.1 UPGRADE NOTES
318314
. Added POSIX_RLIMIT_KQUEUES and POSIX_RLIMIT_NPTS. These rlimits are only
319315
available on FreeBSD.
320316

317+
- Standard:
318+
. fputcsv() now accepts a new "eol" argument which allow to define a custom
319+
eol sequence, the default remains the same and is "\n".
320+
321+
- SPL:
322+
. SplFileObject::fputcsv() now accepts a new "eol" argument which allow to
323+
define a custom eol sequence, the default remains the same and is "\n".
324+
321325
========================================
322326
3. Changes in SAPI modules
323327
========================================
@@ -420,6 +424,11 @@ PHP 8.1 UPGRADE NOTES
420424
. The PDO::FETCH_SERIALIZE mode has been deprecated.
421425
RFC: https://wiki.php.net/rfc/phase_out_serializable
422426

427+
- PgSQL:
428+
. Not passing the connection argument to PgSQL functions and using the
429+
default connection is deprecated.
430+
RFC: https://wiki.php.net/rfc/deprecations_php_8_1
431+
423432
- SOAP:
424433
. The ssl_method option for the SoapClient constructor has been deprecated in
425434
favor of ssl stream context options. The direct equivalent would be
@@ -582,8 +591,6 @@ PHP 8.1 UPGRADE NOTES
582591
12. Windows Support
583592
========================================
584593

585-
. The macro IGNORE_URL_WIN has been removed; it had no effect as of PHP 5.0.0.
586-
587594
========================================
588595
13. Other Changes
589596
========================================

UPGRADING.INTERNALS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ PHP 8.1 INTERNALS UPGRADE NOTES
44
a. Removed Zend APIs
55
b. Zend Stream API
66
c. zend_get_opcode_id()
7+
d. Removed support for "p" printf format specifier
8+
e. ZEND_ATOL() changes
79

810
2. Build system changes
911
a. New compiler flags
@@ -25,6 +27,7 @@ PHP 8.1 INTERNALS UPGRADE NOTES
2527
zend_ce_traversable.
2628
- The ZVAL_NEW_ARR() macro has been removed. Use array_init() or ZVAL_ARR
2729
with zend_new_array() instead.
30+
- The IGNORE_URL_WIN macro has been removed; it had no effect as of PHP 5.0.0.
2831
b. Zend Stream API has been changed to use "zend_string*" instead of "char*"
2932
- zend_file_handle.filename now is zend_string*
3033
- zend_file_handle.free_filename is removed. Now zend_file_handle.filename is always released.

0 commit comments

Comments
 (0)