mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
108 lines
3.4 KiB
Plaintext
108 lines
3.4 KiB
Plaintext
PHP 8.4 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
|
|
14. Performance Improvements
|
|
|
|
========================================
|
|
1. Backward Incompatible Changes
|
|
========================================
|
|
|
|
- DOM:
|
|
. New methods and constants were added to some DOM classes. If you inherit
|
|
from these and you happen to have a method or property with the same name,
|
|
you might encounter errors if the declaration is incompatible.
|
|
Consult sections 2. New Features and 6. New Functions for a list of
|
|
newly implemented methods and constants.
|
|
|
|
========================================
|
|
2. New Features
|
|
========================================
|
|
|
|
- DOM:
|
|
. Added constant DOMNode::DOCUMENT_POSITION_DISCONNECTED.
|
|
. Added constant DOMNode::DOCUMENT_POSITION_PRECEDING.
|
|
. Added constant DOMNode::DOCUMENT_POSITION_FOLLOWING.
|
|
. Added constant DOMNode::DOCUMENT_POSITION_CONTAINS.
|
|
. Added constant DOMNode::DOCUMENT_POSITION_CONTAINED_BY.
|
|
. Added constant DOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC.
|
|
|
|
========================================
|
|
3. Changes in SAPI modules
|
|
========================================
|
|
|
|
========================================
|
|
4. Deprecated Functionality
|
|
========================================
|
|
|
|
========================================
|
|
5. Changed Functions
|
|
========================================
|
|
|
|
- Standard:
|
|
. The internal implementation for rounding to integers has been rewritten
|
|
to be easier to verify for correctness and to be easier to maintain.
|
|
Some rounding bugs have been fixed as a result of the rewrite. For
|
|
example previously rounding 0.49999999999999994 to the nearest integer
|
|
would have resulted in 1.0 instead of the correct result 0.0. Additional
|
|
inputs might also be affected and result in different outputs compared to
|
|
earlier PHP versions.
|
|
. round() now validates the value of the $mode parameter and throws a ValueError
|
|
for invalid modes. Previously invalid modes would have been interpreted as
|
|
PHP_ROUND_HALF_UP.
|
|
|
|
========================================
|
|
6. New Functions
|
|
========================================
|
|
|
|
- DOM:
|
|
. Added DOMNode::compareDocumentPosition().
|
|
|
|
========================================
|
|
7. New Classes and Interfaces
|
|
========================================
|
|
|
|
========================================
|
|
8. Removed Extensions and SAPIs
|
|
========================================
|
|
|
|
========================================
|
|
9. Other Changes to Extensions
|
|
========================================
|
|
|
|
========================================
|
|
10. New Global Constants
|
|
========================================
|
|
|
|
- Intl:
|
|
. The IntlDateFormatter class exposes now the new PATTERN constant
|
|
reflecting udat api's UDAT_PATTERN.
|
|
|
|
========================================
|
|
11. Changes to INI File Handling
|
|
========================================
|
|
|
|
========================================
|
|
12. Windows Support
|
|
========================================
|
|
|
|
========================================
|
|
13. Other Changes
|
|
========================================
|
|
|
|
========================================
|
|
14. Performance Improvements
|
|
========================================
|
|
|