-
Notifications
You must be signed in to change notification settings - Fork 863
Expand file tree
/
Copy pathother-changes.xml
More file actions
628 lines (478 loc) · 18 KB
/
other-changes.xml
File metadata and controls
628 lines (478 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
<?xml version="1.0" encoding="utf-8"?>
<sect1 xml:id="migration85.other-changes">
<title>Other Changes</title>
<sect2 xml:id="migration85.other-changes.core">
<title>Core changes</title>
<sect3 xml:id="migration85.other-changes.core.core">
<title>Core</title>
<simpara>
The high resolution timer (<function>hrtime</function>) on macOS now
uses the recommended
<code>clock_gettime_nsec_np(CLOCK_UPTIME_RAW)</code> API instead of
<code>mach_absolute_time()</code>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.core.cgi-cli">
<title>CGI/CLI</title>
<simpara>
The <option>-z</option> or <option>--zend-extension</option> option
has been removed as it was non-functional.
Use <option>-d zend_extension=[path]</option> instead.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.core.pdo-odbc">
<title>PDO_ODBC</title>
<simpara>
The fetch behaviour for larger columns has been changed. Rather than
fetching 256 byte blocks, PDO_ODBC will try to fetch a larger block size;
currently, this is the page size minus string overhead. Drivers that
return SQL_NO_TOTAL in SQLGetData are also better handled as well.
This should improve compatibility and performance.
<!-- See: GH-10809, GH-10733 -->
</simpara>
</sect3>
</sect2>
<sect2 xml:id="migration85.other-changes.sapi">
<title>Changes in SAPI Modules</title>
<sect3 xml:id="migration85.other-changes.sapi.cli">
<title>CLI</title>
<simpara>
Trying to set a process title that is too long with
<function>cli_set_process_title</function> will now fail instead of
silently truncating the given title.
</simpara>
<simpara>
Added a new <option>--ini=diff</option> option to print INI settings
changed from the builtin default.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.sapi.fpm">
<title>FPM</title>
<simpara>
FPM with httpd ProxyPass optionally decodes the full script path. Added
<!-- <link linkend="ini.fastcgi.script_path_encoded"-->fastcgi.script_path_encoded<!-- </link> -->
INI setting to prevent this new behavior.
</simpara>
<simpara>
FPM access log limit now respects <link linkend="log-limit">log_limit</link> value.
</simpara>
</sect3>
</sect2>
<sect2 xml:id="migration85.other-changes.functions">
<title>Changed Functions</title>
<sect3 xml:id="migration85.other-changes.functions.intl">
<title>Intl</title>
<simpara>
<function>grapheme_extract</function> properly assigns
<parameter>$next</parameter> value when skipping over invalid starting bytes.
Previously there were cases where it would point to the start of the
grapheme boundary instead of the end.
</simpara>
<simpara>
<function>transliterator_get_error_code</function>,
<function>transliterator_get_error_message</function>,
<methodname>TransLiterator::getErrorCode</methodname>,
and <methodname>TransLiterator::getErrorMessage</methodname>
have dropped &false; from the return type union. Returning &false;
was actually never possible.
</simpara>
<simpara>
The following functions now support a <parameter>$locale</parameter> argument:
<function>grapheme_strpos</function>,
<function>grapheme_stripos</function>,
<function>grapheme_strrpos</function>,
<function>grapheme_strripos</function>,
<function>grapheme_substr</function>,
<function>grapheme_strstr</function> and
<function>grapheme_stristr</function>
<!-- RFC: https://wiki.php.net/rfc/grapheme_add_locale_for_case_insensitive -->
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.ldap">
<title>LDAP</title>
<simpara>
<function>ldap_get_option</function> now accepts a &null; connection,
like <function>ldap_set_option</function>, to allow retrieval of global
options.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.libxml">
<title>libxml</title>
<simpara>
<function>libxml_set_external_entity_loader</function> now has a formal
return type of <type>true</type>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.openssl">
<title>OpenSSL</title>
<simpara>
<function>openssl_public_encrypt</function> and
<function>openssl_private_decrypt</function> have a new parameter
<parameter>$digest_algo</parameter> that allows specifying the hash
digest algorithm for OAEP padding.
</simpara>
<simpara>
<function>openssl_sign</function> and <function>openssl_verify</function>
have a new parameter <parameter>$padding</parameter> to allow using more
secure RSA PSS padding.
</simpara>
<simpara>
<function>openssl_cms_encrypt</function> <parameter>$cipher_algo</parameter>
parameter can be a string with the cipher name.
That allows to use more algorithms including AES GCM cipher algorithms for
auth enveloped data.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.pcntl">
<title>PCNTL</title>
<simpara>
<function>pcntl_exec</function> now has a formal return type of
<type>false</type>.
</simpara>
<simpara>
<function>pcntl_waitid</function> takes an additional resource_usage
argument to gather various platform specific metrics about the child process.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.pdo-pgsql">
<title>PDO_PGSQL</title>
<simpara>
<methodname>Pdo\Pgsql::copyFromArray</methodname> now supports <type>iterable</type> inputs.
</simpara>
<simpara>
<methodname>Pdo\Pgsql::setAttribute</methodname> and
<methodname>Pdo\Pgsql::prepare</methodname> support setting
<constant>PDO::ATTR_PREFETCH</constant> to 0 which enters lazy fetch mode.
In this mode, statements cannot be run in parallel.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.pgsql">
<title>PostgreSQL</title>
<simpara>
<function>pg_copy_from</function> now supports <type>iterable</type> inputs.
</simpara>
<simpara>
<function>pg_connect</function> checks if the connection_string argument
contains any null byte.
</simpara>
<simpara>
<function>pg_close_stmt</function> checks if the statement_name argument
contains any null byte.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.posix">
<title>POSIX</title>
<simpara>
<function>posix_ttyname</function> sets last_error to EBADF when encountering
an invalid file descriptor.
</simpara>
<simpara>
<function>posix_isatty</function> raises an <constant>E_WARNING</constant>
message when encountering an invalid file descriptor.
</simpara>
<simpara>
<function>posix_fpathconf</function> checks invalid file descriptors and
sets last_error to EBADF and raises an <constant>E_WARNING</constant> message.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.reflection">
<title>Reflection</title>
<simpara>
The output of <methodname>ReflectionClass::__toString</methodname> for
enums has changed to better indicate that the class is an enum, and that
the enum cases are enum cases rather than normal class constants.
</simpara>
<simpara>
The output of <methodname>ReflectionProperty::__toString</methodname> for
properties with hooks has changed to indicate what hooks the property has,
whether those hooks are final, and whether the property is virtual.
This also affects the output of <methodname>ReflectionClass::__toString</methodname>
when a class contains hooked properties.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.sockets">
<title>Sockets</title>
<simpara>
<function>socket_create</function>/<function>socket_bind</function> can
create <constant>AF_PACKET</constant> family sockets.
</simpara>
<simpara>
<function>socket_getsockname</function> gets the interface index and its
string representation with <constant>AF_PACKET</constant> socket.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.functions.zlib">
<title>Zlib</title>
<simpara>
The <parameter>$use_include_path</parameter> argument for the
<function>gzfile</function>, <function>gzopen</function> and
<function>readgzfile</function> functions has been changed
from <type>int</type> to <type>bool</type>.
</simpara>
<simpara>
<function>gzfile</function>,
<function>gzopen</function> and <function>readgzfile</function> functions
now respect the default stream context.
</simpara>
</sect3>
</sect2>
<sect2 xml:id="migration85.other-changes.extensions">
<title>Other Changes to Extensions</title>
<sect3 xml:id="migration85.other-changes.extensions.curl">
<title>cURL</title>
<simpara>
<function>curl_setopt</function> with
<constant>CURLOPT_FOLLOWLOCATION</constant> option's value
no longer is treated as boolean but integer to handle
<constant>CURLFOLLOW_OBEYCODE</constant> and
<constant>CURLFOLLOW_FIRSTONLY</constant>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.fileinfo">
<title>Fileinfo</title>
<simpara>
Upgraded file from 5.45 to 5.46.
</simpara>
<simpara>
The return type of <function>finfo_close</function> has been changed to
<type>true</type>, rather than <type>bool</type>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.intl">
<title>Intl</title>
<simpara>
Intl's internal error mechanism has been modernized so that it
indicates more accurately which call site caused what error.
Moreover, some ext/date exceptions have been wrapped inside a
<classname>IntlException</classname> now.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.lexbor">
<title>Lexbor</title>
<simpara>
An always enabled lexbor extension is added. It contains the lexbor
library that was separated from <link linkend="book.dom">ext/dom</link>
for being reused among other extensions.
The new extension is not directly exposed to userland.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.opcache">
<title>Opcache</title>
<simpara>
The <link linkend="book.opcache">Opcache extension</link> is now always
built into the PHP binary and is always loaded.
The INI directives <link linkend="ini.opcache.enable">opcache.enable</link>
and <link linkend="ini.opcache.enable-cli">opcache.enable_cli</link> are
still honored.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.pcre">
<title>PCRE</title>
<simpara>
Upgraded pcre2lib from 10.44 to 10.46.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.pdo-sqlite">
<title>PDO_Sqlite</title>
<simpara>
Increased minimum release version support from 3.7.7 to 3.7.17.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.readline">
<title>Readline</title>
<simpara>
The return types of <function>readline_add_history</function>,
<function>readline_clear_history</function>,
and <function>readline_callback_handler_install</function> have been
changed to <type>true</type>, rather than <type>bool</type>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.extensions.reflection">
<title>Reflection</title>
<simpara>
<classname>ReflectionConstant</classname> is no longer final.
</simpara>
</sect3>
</sect2>
<sect2 xml:id="migration85.other-changes.ini">
<title>Changes to INI File Handling</title>
<sect3 xml:id="migration85.other-changes.ini.core">
<title>Core</title>
<simpara>
Added <link
linkend="ini.fatal-error-backtraces">fatal_error_backtraces</link> to
control whether fatal errors should include a backtrace.
<!-- RFC: https://wiki.php.net/rfc/error_backtraces_v2 -->
</simpara>
<simpara>
Added startup-only max_memory_limit INI setting to control the maximum
memory_limit that may be configured at startup or runtime. Exceeding this
value emits a warning, unless set to -1, and sets memory_limit to the
current max_memory_limit instead.
<!-- ML discussion: https://externals.io/message/127108 -->
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.ini.opcache">
<title>Opcache</title>
<simpara>
Added opcache.file_cache_read_only to support a read-only
<link linkend="ini.opcache.file-cache">opcache.file_cache</link> directory,
for use with read-only file systems (e.g. read-only Docker containers).
Best used with <literal>opcache.validate_timestamps=0</literal>,
<literal>opcache.enable_file_override=1</literal>,
and <literal>opcache.file_cache_consistency_checks=0</literal>.
</simpara>
<note>
<simpara>
A cache generated with a different build of PHP, a different file
path, or different settings (including which extensions are loaded), may be
ignored.
</simpara>
</note>
<simpara>
The default value of
<link linkend="ini.opcache.jit-hot-loop">opcache.jit_hot_loop</link> is
now 61 (a prime) to prevent it from being a multiple of loop iteration
counts.
It is recommended that this parameter is set to a prime number.
</simpara>
<simpara>
Changing <link
linkend="ini.opcache.memory-consumption">opcache.memory_consumption</link>
when OPcache SHM is already set up will now correctly report a failure
instead of silently doing nothing and showing misleading values in PHPInfo.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.ini.openssl">
<title>OpenSSL</title>
<simpara>
Added <!-- <link linkend="ini.openssl.libctx"-->openssl.libctx<!-- </link> -->
to select the OpenSSL library context type.
Either custom libctx for each thread can be used or a single global (default)
libctx is used.
</simpara>
</sect3>
</sect2>
<sect2 xml:id="migration85.other-changes.performance">
<title>Performance</title>
<sect3 xml:id="migration85.other-changes.performance.core">
<title>Core</title>
<simpara>
Remove OPcodes for identity comparisons against booleans, particularly
for the <code>match(true)</code> pattern.
</simpara>
<simpara>
Add OPcode specialization for <code>=== []</code> and
<code>!== []</code> comparisons.
</simpara>
<simpara>
Creating exception objects is now much faster.
</simpara>
<simpara>
The parts of the code that used SSE2 have been adapted to use SIMD
with ARM NEON as well.
</simpara>
<simpara>
Introduced the TAILCALL VM, enabled by default when compiling with Clang>=19
on x86_64 or aarch64. The TAILCALL VM is as fast as the HYBRID VM used when
compiling with GCC. This makes PHP binaries built with Clang>=19 as fast as
binaries built with GCC. The performance of the CALL VM, used with other
compilers, has also improved considerably.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.intl">
<title>Intl</title>
<simpara>
Now avoids creating extra string copies when converting strings
for use in the collator.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.mbstring">
<title>MBString</title>
<simpara>
The parts of the code that used SSE2 have been adapted to use SIMD
with ARM NEON as well.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.opcache">
<title>Opcache</title>
<simpara>
Improved performance of fetching TLS variables in JIT'ed code in non-Glibc
builds.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.reflection">
<title>Reflection</title>
<para>
Improved performance of the following methods:
<simplelist>
<member><methodname>ReflectionProperty::getValue</methodname></member>
<member><methodname>ReflectionProperty::getRawValue</methodname></member>
<member><methodname>ReflectionProperty::isInitialized</methodname></member>
<member><methodname>ReflectionProperty::isInitialized</methodname></member>
<member><methodname>ReflectionProperty::setValue</methodname></member>
<member><methodname>ReflectionProperty::setRawValue</methodname></member>
</simplelist>
</para>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.spl">
<title>SPL</title>
<simpara>
Improved performance of dimension accessors and methods of
<classname>SplFixedArray</classname>.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.standard">
<title>Standard</title>
<simpara>
Improved performance of array functions with callbacks
(<function>array_find</function>, <function>array_filter</function>,
<function>array_map</function>, <function>usort</function>, ...).
</simpara>
<simpara>
Improved performance of <function>urlencode</function> and
<function>rawurlencode</function>.
</simpara>
<simpara>
Improved <function>unpack</function> performance with nameless
repetitions by avoiding creating temporary strings and reparsing them.
</simpara>
<simpara>
Improved <function>pack</function> performance.
</simpara>
<simpara>
Minor improvements in <function>array_chunk</function> performance.
</simpara>
</sect3>
<sect3 xml:id="migration85.other-changes.performance.xml">
<title>XML</title>
<simpara>
Improved <classname>XMLReader</classname> property access performance.
</simpara>
<simpara>
Improved <classname>XMLWriter</classname> performance and reduced memory
consumption.
</simpara>
</sect3>
</sect2>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->