xref: /PHP-8.2/NEWS (revision 3ce7bf2a)
1PHP                                                                        NEWS
2|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3?? ??? ????, PHP 8.4.0alpha1
4
5- Core:
6  . Added zend_call_stack_get implementation for NetBSD, DragonFlyBSD,
7    Solaris and Haiku. (David Carlier)
8  . Enabled ifunc checks on FreeBSD from the 12.x releases. (Freaky)
9  . Changed the type of PHP_DEBUG and PHP_ZTS constants to bool. (haszi)
10  . Fixed bug GH-13142 (Undefined variable name is shortened when contains \0).
11    (nielsdos)
12  . Fixed bug GH-13178 (Iterator positions incorrect when converting packed
13    array to hashed). (ilutov)
14  . Fixed zend fiber build for solaris default mode (32 bits). (David Carlier)
15  . Fixed zend call stack size for macOs/arm64. (David Carlier)
16
17- Curl:
18  . Deprecated the CURLOPT_BINARYTRANSFER constant. (divinity76)
19  . Bumped required libcurl version to 7.61.0. (Ayesh)
20
21- Date:
22  . Added DateTime[Immutable]::createFromTimestamp. (Marc Bennewitz)
23  . Added DateTime[Immutable]::[get|set]Microseconds. (Marc Bennewitz)
24
25- DOM:
26  . Added DOMNode::compareDocumentPosition(). (nielsdos)
27  . Implement #53655 (Improve speed of DOMNode::C14N() on large XML documents).
28    (nielsdos)
29  . Fix cloning attribute with namespace disappearing namespace. (nielsdos)
30  . Implement DOM HTML5 parsing and serialization RFC. (nielsdos)
31  . Fix DOMElement->prefix with empty string creates bogus prefix. (nielsdos)
32  . Handle OOM more consistently. (nielsdos)
33  . Implemented "Improve callbacks in ext/dom and ext/xsl" RFC. (nielsdos)
34
35- FPM:
36  . Implement GH-12385 (flush headers without body when calling flush()).
37    (nielsdos)
38  . Added DragonFlyBSD system to the list which set FPM_BACKLOG_DEFAULT
39    to SOMAXCONN. (David Carlier)
40
41- FTP:
42  . Removed the deprecated inet_ntoa call support. (David Carlier)
43
44- GD:
45  . Fixed detection of image formats in system gd library. (Michael Orlitzky)
46
47- IMAP:
48  . Moved to PECL. (Derick Rethans)
49
50- Intl:
51  . Added IntlDateFormatter::PATTERN constant. (David Carlier)
52  . Fixed Numberformatter::__construct when the locale is invalid, now
53    throws an exception. (David Carlier)
54  . Added NumberFormatter::ROUND_TOWARD_ZERO and ::ROUND_AWAY_FROM_ZERO as
55    aliases for ::ROUND_DOWN and ::ROUND_UP. (Jorg Sowa)
56  . Added NumberFormatter::ROUND_HALFODD. (Ayesh Karunaratne)
57
58- MBString:
59  . Added mb_trim, mb_ltrim and mb_rtrim. (Yuya Hamada)
60
61- Opcache:
62  . Added large shared segments support for FreeBSD. (David Carlier)
63  . If JIT is enabled, PHP will now exit with a fatal error on startup in case
64    of JIT startup initialization issues. (danog)
65
66- OpenSSL:
67  . Fixed bug #80269 (OpenSSL sets Subject wrong with extraattribs parameter).
68    (Jakub Zelenka)
69  . Implement request #48520 (openssl_csr_new - allow multiple values in DN).
70    (Jakub Zelenka)
71  . Introduced new serial_hex parameter to openssl_csr_sign. (Jakub Zelenka,
72    Florian Sowade)
73  . Added X509_PURPOSE_OCSP_HELPER and X509_PURPOSE_TIMESTAMP_SIGN constants.
74    (Vincent Jardin)
75
76- Output:
77  . Clear output handler status flags during handler initialization. (haszi)
78
79- PDO:
80  . Fixed setAttribute and getAttribute. (SakiTakamachi)
81  . Implemented PDO driver-specific subclasses RFC. (danack, kocsismate)
82
83- PDO_DBLIB:
84  . Fixed setAttribute and getAttribute. (SakiTakamachi)
85  . Added class PdoDbLib (danack, kocsismate)
86
87- PDO_FIREBIRD:
88  . Fixed setAttribute and getAttribute. (SakiTakamachi)
89  . Feature: Add transaction isolation level and mode settings to pdo_firebird.
90    (SakiTakamachi)
91  . Added class PdoFirebird. (danack, kocsismate)
92
93- PDO_MYSQL:
94  . Fixed setAttribute and getAttribute. (SakiTakamachi)
95  . Added class PdoMysql. (danack, kocsismate)
96
97- PDO_ODBC:
98  . Added class PdoOdbc. (danack, kocsismate)
99
100- PDO_PGSQL:
101  . Fixed GH-12423, DSN credentials being prioritized over the user/password
102    PDO constructor arguments. (SakiTakamachi)
103  . Fixed native float support with pdo_pgsql query results. (Yurunsoft)
104  . Added class PdoPgsql. (danack, kocsismate)
105
106- PDO_SQLITE:
107  . Added class PdoSqlite. (danack, kocsismate)
108
109- PGSQL:
110  . Added the possibility to have no conditions for pg_select. (OmarEmaraDev)
111
112- Phar:
113  . Fixed bug GH-12532 (PharData created from zip has incorrect timestamp).
114    (nielsdos)
115
116- POSIX:
117  . Added POSIX_SC_CHILD_MAX and POSIX_SC_CLK_TCK constants. (Jakub Zelenka)
118
119- PSpell:
120  . Moved to PECL. (Derick Rethans)
121
122- Reflection:
123  . Implement GH-12908 (Show attribute name/class in ReflectionAttribute dump).
124    (nielsdos)
125
126- SimpleXML:
127  . Fixed bug GH-12192 (SimpleXML infinite loop when getName() is called
128    within foreach). (nielsdos)
129  . Fixed bug GH-12208 (SimpleXML infinite loop when a cast is used inside a
130    foreach). (nielsdos)
131  . Fixed bug #55098 (SimpleXML iteration produces infinite loop). (nielsdos)
132  . Fix signature of simplexml_import_dom(). (nielsdos)
133
134- Sockets:
135  . Added multicast group support for ipv4 on FreeBSD. (jonathan@tangential.ca)
136
137- SNMP:
138  . Removed the deprecated inet_ntoa call support. (David Carlier)
139
140- SOAP:
141  . Add support for clark notation for namespaces in class map. (lxShaDoWxl)
142  . Mitigate #51561 (SoapServer with a extented class and using sessions,
143    lost the setPersistence()). (nielsdos)
144  . Fixed bug #49278 (SoapClient::__getLastResponseHeaders returns NULL if
145    wsdl operation !has output). (nielsdos)
146  . Fixed bug #44383 (PHP DateTime not converted to xsd:datetime). (nielsdos)
147
148- Sockets:
149  . Removed the deprecated inet_ntoa call support. (David Carlier)
150  . Added the SO_EXECLUSIVEADDRUSE windows constant. (David Carlier)
151
152- Sodium:
153  . Add support for AEGIS-128L and AEGIS-256 (jedisct1)
154  . Enable AES-GCM on aarch64 with the ARM crypto extensions (jedisct1)
155
156- Standard:
157  . Implement GH-12188 (Indication for the int size in phpinfo()). (timwolla)
158  . Partly fix GH-12143 (Incorrect round() result for 0.49999999999999994).
159    (timwolla)
160  . Fix GH-12252 (round(): Validate the rounding mode). (timwolla)
161  . Increase the default BCrypt cost to 12. (timwolla)
162  . Fixed bug GH-12592 (strcspn() odd behaviour with NUL bytes and empty mask).
163    (nielsdos)
164  . Removed the deprecated inet_ntoa call support. (David Carlier)
165  . Cast large floats that are within int range to int in number_format so
166    the precision is not lost. (Marc Bennewitz)
167  . Add support for 4 new rounding modes to the round() function. (Jorg Sowa)
168  . debug_zval_dump() now indicates whether an array is packed. (Max Semenik)
169  . Fix GH-12143 (Optimize round). (SakiTakamachi)
170
171- XML:
172  . Added XML_OPTION_PARSE_HUGE parser option. (nielsdos)
173
174- XSL:
175  . Implement request #64137 (XSLTProcessor::setParameter() should allow both
176    quotes to be used). (nielsdos)
177  . Implemented "Improve callbacks in ext/dom and ext/xsl" RFC. (nielsdos)
178
179<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
180