mirror of https://github.com/php/php-src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
135 lines
3.7 KiB
135 lines
3.7 KiB
PHP 7.3 UPGRADE NOTES
|
|
|
|
1. Backward Incompatible Changes
|
|
2. New Features
|
|
3. Changes in SAPI modules
|
|
4. Deprecated Functionality
|
|
5. Changed Functions
|
|
6. New Functions
|
|
7. New Classes and Interfaces
|
|
8. Removed Extensions and SAPIs
|
|
9. Other Changes to Extensions
|
|
10. New Global Constants
|
|
11. Changes to INI File Handling
|
|
12. Windows Support
|
|
13. Other Changes
|
|
|
|
|
|
========================================
|
|
1. Backward Incompatible Changes
|
|
========================================
|
|
|
|
Core:
|
|
. The ext_skel utility has been completely redesigned with new options and
|
|
some old options removed. This is now written in PHP and has no external
|
|
dependencies.
|
|
. Support for BeOS has been dropped.
|
|
|
|
BCMath:
|
|
. All warnings thrown by BCMath functions are now using PHP's error handling.
|
|
Formerly some warnings have directly been written to stderr.
|
|
. bcmul() and bcpow() now return numbers with the requested scale. Formerly,
|
|
the returned numbers may have omitted trailing decimal zeroes.
|
|
|
|
Standard:
|
|
. getimagesize() and related functions now report the mime type of BMP images
|
|
as image/bmp instead of image/x-ms-bmp, since the former has been registered
|
|
with the IANA (see RFC 7903).
|
|
|
|
========================================
|
|
2. New Features
|
|
========================================
|
|
|
|
BCMath:
|
|
. bcscale() can now also be used as getter to retrieve the current scale in use.
|
|
|
|
========================================
|
|
3. Changes in SAPI modules
|
|
========================================
|
|
|
|
========================================
|
|
4. Deprecated Functionality
|
|
========================================
|
|
|
|
========================================
|
|
5. Changed Functions
|
|
========================================
|
|
|
|
JSON:
|
|
. A new flag has been added, JSON_THROW_ON_ERROR, which can be used with
|
|
json_decode() or json_encode() and causes these functions to throw a
|
|
JsonException upon an error, instead of setting the global error state that
|
|
is retrieved with json_last_error(). JSON_PARTIAL_OUTPUT_ON_ERROR takes
|
|
precedence over JSON_THROW_ON_ERROR.
|
|
(RFC: https://wiki.php.net/rfc/json_throw_on_error)
|
|
|
|
Standard:
|
|
. debug_zval_dump() was changed to display recursive arrays and objects
|
|
in the same way as var_dump(). Now, it doesn't display them twice.
|
|
|
|
========================================
|
|
6. New Functions
|
|
========================================
|
|
|
|
Date:
|
|
. Added the DateTime::createFromImmutable() method, which mirrors
|
|
DateTimeImmutable::createFromMutable().
|
|
|
|
========================================
|
|
7. New Classes and Interfaces
|
|
========================================
|
|
|
|
JSON:
|
|
. JsonException
|
|
|
|
========================================
|
|
8. Removed Extensions and SAPIs
|
|
========================================
|
|
|
|
========================================
|
|
9. Other Changes to Extensions
|
|
========================================
|
|
|
|
FTP:
|
|
. Set default transfer mode to binary
|
|
|
|
ODBC:
|
|
. Support for ODBCRouter has been removed.
|
|
. Support for Birdstep has been removed.
|
|
|
|
ZIP:
|
|
. Bunled libzip has been dropped,
|
|
system library is now required.
|
|
|
|
========================================
|
|
10. New Global Constants
|
|
========================================
|
|
|
|
JSON:
|
|
. JSON_THROW_ON_ERROR
|
|
|
|
PGSQL:
|
|
. Requires Postgres 9.3
|
|
- PGSQL_DIAG_SCHEMA_NAME
|
|
- PGSQL_DIAG_TABLE_NAME
|
|
- PGSQL_DIAG_COLUMN_NAME
|
|
- PGSQL_DIAG_DATATYPE_NAME
|
|
- PGSQL_DIAG_CONSTRAINT_NAME
|
|
. Requires Postgres 9.6
|
|
- PGSQL_DIAG_SEVERITY_NONLOCALIZED
|
|
|
|
========================================
|
|
11. Changes to INI File Handling
|
|
========================================
|
|
|
|
- birdstep.max_links
|
|
. This INI directive has been removed.
|
|
|
|
========================================
|
|
12. Windows Support
|
|
========================================
|
|
|
|
========================================
|
|
13. Other Changes
|
|
========================================
|
|
|