php-src/UPGRADING

174 lines
5.0 KiB
Plaintext
Raw Normal View History

2024-09-24 23:03:39 +08:00
PHP 8.5 UPGRADE NOTES
1. Backward Incompatible Changes
2. New Features
2014-05-01 18:27:38 +08:00
3. Changes in SAPI modules
4. Deprecated Functionality
5. Changed Functions
6. New Functions
7. New Classes and Interfaces
2015-02-10 15:56:18 +08:00
8. Removed Extensions and SAPIs
2014-05-01 18:27:38 +08:00
9. Other Changes to Extensions
10. New Global Constants
11. Changes to INI File Handling
2014-08-22 19:35:07 +08:00
12. Windows Support
13. Other Changes
14. Performance Improvements
2010-03-25 00:23:50 +08:00
========================================
1. Backward Incompatible Changes
2010-03-25 00:23:50 +08:00
========================================
- BZ2:
. bzcompress() now throws a ValueError when $block_size is not between
1 and 9.
. bzcompress() now throws a ValueError when $work_factor is not between
0 and 250.
- Core:
. It is no longer possible to use "array" and "callable" as class alias names
in class_alias().
- Intl:
. The extension now requires at least ICU 57.1.
- LDAP:
. ldap_get_option() and ldap_set_option() now throw a ValueError when
passing an invalid option.
- SPL:
. ArrayObject no longer accepts enums, as modifying the $name or $value
properties can break engine assumptions.
========================================
2. New Features
========================================
- DOM:
. Added Dom\Element::$outerHTML.
- XSL:
. The $namespace argument of XSLTProcessor::getParameter(),
XSLTProcessor::setParameter() and XSLTProcessor::removeParameter()
now actually works instead of being treated as empty.
This only works if the $name argument does not use Clark notation
and is not a QName because in those cases the namespace is taken
from the namespace href or prefix respectively.
========================================
2014-05-01 18:27:38 +08:00
3. Changes in SAPI modules
========================================
========================================
2014-05-01 18:27:38 +08:00
4. Deprecated Functionality
========================================
- Hash:
The MHASH_* constants have been deprecated. These have been overlooked
when the mhash*() function family has been deprecated per
https://wiki.php.net/rfc/deprecations_php_8_1#mhash_function_family
========================================
2014-05-01 18:27:38 +08:00
5. Changed Functions
========================================
2009-06-24 03:40:31 +08:00
2024-10-14 19:42:01 +08:00
- Zlib:
. The "use_include_path" argument for the
gzfile, gzopen and readgzfile functions had been changed
from int to boolean.
- PDO_PGSQL:
. PDO::pgsqlCopyFromArray also supports inputs as Iterable.
. Pdo\Pgsql::setAttribute and Pdo\Pgsql::prepare supports
PDO::ATTR_PREFETCH sets to 0 which set to lazy fetch mode.
In this mode, statements cannot be run parallely.
- PGSQL:
. pg_copy_from also supports inputs as Iterable.
========================================
2014-05-01 18:27:38 +08:00
6. New Functions
========================================
2022-09-05 02:52:21 +08:00
- Curl:
. curl_multi_get_handles() allows retrieving all CurlHandles current
attached to a CurlMultiHandle. This includes both handles added using
curl_multi_add_handle() and handles accepted by CURLMOPT_PUSHFUNCTION.
- DOM:
. Added Dom\Element::insertAdjacentHTML().
2024-09-30 01:33:47 +08:00
- PGSQL:
. pg_close_stmt offers an alternative way to close a prepared
statement from the DEALLOCATE sql command in that we can reuse
its name afterwards.
- Reflection:
. ReflectionConstant::getFileName() was introduced.
. ReflectionConstant::getExtension() and
ReflectionConstant::getExtensionName() were introduced.
========================================
2014-05-01 18:27:38 +08:00
7. New Classes and Interfaces
========================================
========================================
2015-02-10 15:56:18 +08:00
8. Removed Extensions and SAPIs
========================================
========================================
2014-05-01 18:27:38 +08:00
9. Other Changes to Extensions
========================================
2016-07-03 18:43:30 +08:00
- Readline:
. The return types of readline_add_history(), readline_clear_history(), and
readline_callback_handler_install() have been changed to true, rather
than bool.
========================================
2014-05-01 18:27:38 +08:00
10. New Global Constants
========================================
2010-03-25 00:23:50 +08:00
- Core:
. PHP_BUILD_DATE.
- POSIX:
. POSIX_SC_OPEN_MAX.
- Sockets:
. IPPROTO_ICMP/IPPROTO_ICMPV6.
. TCP_FUNCTION_BLK (FreeBSD only).
========================================
2014-05-01 18:27:38 +08:00
11. Changes to INI File Handling
========================================
2014-08-22 19:35:07 +08:00
========================================
12. Windows Support
========================================
* The configuration variables PHP_VERSION, PHP_MINOR_VERSION, and
PHP_RELEASE_VERSION are now always numbers. Previously, they have been
strings for buildconf builds.
* COM:
. The extension is now build shared by default; previously it defaulted to a
static extension, although the official Windows binaries built a shared
extension.
* FFI:
. It is no longer necessary to specify the library when using FFI::cdef()
and FFI::load(). However, this convenience feature should not be used in
production.
========================================
13. Other Changes
========================================
========================================
14. Performance Improvements
========================================
- XMLWriter:
. Improved performance and reduce memory consumption.