<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>#externals</title><link>https://externals.io</link><description>Opening PHP's #internals to the outside</description><pubDate>Fri, 27 Nov 2026 02:25:22 +0000</pubDate><lastBuildDate>Fri, 27 Nov 2026 02:25:22 +0000</lastBuildDate><item><title>[RFC] Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132870</link><description>&lt;blockquote&gt;
&lt;p&gt;Hello internals,&lt;/p&gt;
&lt;p&gt;I want to start the discussion of the RFC &amp;quot;Opt-in JSON Comments and &lt;br&gt;
Trailing Commas&amp;quot;: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/json_comments_trailing_commas" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/json_comments_trailing_commas&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RFC adds two independent opt-in flags for &lt;code&gt;json_decode()&lt;/code&gt; and &lt;code&gt;json_validate()&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;JSON_ALLOW_COMMENTS accepts // line comments and /* block comments */.&lt;/li&gt;
&lt;li&gt;JSON_ALLOW_TRAILING_COMMAS accepts one comma after the last item of a &lt;br&gt;
non-empty array or object.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Strict JSON stays the default. &lt;code&gt;json_encode()&lt;/code&gt; does not change.&lt;/p&gt;
&lt;p&gt;This RFC follows the pre-RFC thread: &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132236" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the feedback in that thread. The RFC now answers it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The RFC does not add JSON5. It compares the two flags with JSON5, &lt;br&gt;
JSONC and JWCC (Larry, Anton).&lt;/li&gt;
&lt;li&gt;The RFC keeps two flags, not one JSON_ALLOW_JSONC flag. The JSONC &lt;br&gt;
specification is a draft, and it makes trailing commas optional. The &lt;br&gt;
section &amp;quot;Rejected Features&amp;quot; gives all reasons (Tim).&lt;/li&gt;
&lt;li&gt;The RFC includes test results and performance measurements.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The implementation is here: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23336" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RFC has two primary votes, one for each flag. Each vote needs a 2/3 &lt;br&gt;
majority.&lt;/p&gt;
&lt;p&gt;All feedback is welcome.&lt;/p&gt;
&lt;p&gt;Otar&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I am forced to agree with Tim.  This is a very tight RFC, and I have no remaining objections to it.  Nicely done!&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>cfd1c378-bc21-4624-893d-195ed85e8b25@app.fastmail.com</guid><pubDate>Tue, 13 Oct 2026 21:08:29 +0000</pubDate></item><item><title>[RFC] Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132869</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;The RFC keeps two flags, not one JSON_ALLOW_JSONC flag. The JSONC &lt;br&gt;
specification is a draft, and it makes trailing commas optional. The &lt;br&gt;
section &amp;quot;Rejected Features&amp;quot; gives all reasons (Tim).&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm not happy, but the rejected is well-argued :-)&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I've given the RFC a full read and don't have any (other) comments. The &lt;br&gt;
RFC is incredibly well-written, thank you!&lt;/p&gt;
&lt;p&gt;Just don't forget to add the link to the discussion thread at the header &lt;br&gt;
section: &lt;a href="https://news-web.php.net/php.internals/132868" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132868&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>1f1d88a7-d569-4ae8-9449-490cb624cf99@bastelstu.be</guid><pubDate>Tue, 13 Oct 2026 18:49:46 +0000</pubDate></item><item><title>[RFC] Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132868</link><description>&lt;p&gt;Hello internals,&lt;/p&gt;
&lt;p&gt;I want to start the discussion of the RFC &amp;quot;Opt-in JSON Comments and &lt;br&gt;
Trailing Commas&amp;quot;: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/json_comments_trailing_commas"&gt;https://wiki.php.net/rfc/json_comments_trailing_commas&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RFC adds two independent opt-in flags for &lt;code&gt;json_decode()&lt;/code&gt; and &lt;br&gt;
&lt;code&gt;json_validate()&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;JSON_ALLOW_COMMENTS accepts // line comments and /* block comments */.&lt;/li&gt;
&lt;li&gt;JSON_ALLOW_TRAILING_COMMAS accepts one comma after the last item of a &lt;br&gt;
non-empty array or object.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Strict JSON stays the default. &lt;code&gt;json_encode()&lt;/code&gt; does not change.&lt;/p&gt;
&lt;p&gt;This RFC follows the pre-RFC thread: &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132236"&gt;https://news-web.php.net/php.internals/132236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the feedback in that thread. The RFC now answers it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The RFC does not add JSON5. It compares the two flags with JSON5, &lt;br&gt;
JSONC and JWCC (Larry, Anton).&lt;/li&gt;
&lt;li&gt;The RFC keeps two flags, not one JSON_ALLOW_JSONC flag. The JSONC &lt;br&gt;
specification is a draft, and it makes trailing commas optional. The &lt;br&gt;
section &amp;quot;Rejected Features&amp;quot; gives all reasons (Tim).&lt;/li&gt;
&lt;li&gt;The RFC includes test results and performance measurements.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The implementation is here: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23336"&gt;https://github.com/php/php-src/pull/23336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RFC has two primary votes, one for each flag. Each vote needs a 2/3 &lt;br&gt;
majority.&lt;/p&gt;
&lt;p&gt;All feedback is welcome.&lt;/p&gt;
&lt;p&gt;Otar&lt;/p&gt;
</description><guid>ce1a83e6bdf0d26686de704e27663d7476d455f5@hey.com</guid><pubDate>Tue, 13 Oct 2026 18:36:13 +0000</pubDate></item><item><title>RFC karma request: Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132867</link><description>&lt;p&gt;Thank you, Ilija!&lt;/p&gt;
&lt;p&gt;Otar&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi Otar&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I registered the &lt;a href="http://wiki.php.net" rel="nofollow" target="_blank"&gt;wiki.php.net&lt;/a&gt; account &amp;quot;otar&amp;quot;. Please give RFC karma &lt;br&gt;
to this account.&lt;/p&gt;
&lt;p&gt;I want to create the RFC &amp;quot;Opt-in JSON Comments and Trailing Commas&amp;quot; &lt;br&gt;
at this page: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/json_comments_trailing_commas"&gt;https://wiki.php.net/rfc/json_comments_trailing_commas&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It follows my pre-RFC thread: &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132236"&gt;https://news-web.php.net/php.internals/132236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Draft implementation: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23336"&gt;https://github.com/php/php-src/pull/23336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My GitHub profile: &lt;br&gt;
&lt;a href="https://github.com/otar"&gt;https://github.com/otar&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;RFC karma was granted. Good luck!&lt;/p&gt;
&lt;p&gt;Ilija&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>c98cf4fe3a3d8a22aa146dcec065d1a801ddcda6@hey.com</guid><pubDate>Tue, 13 Oct 2026 18:17:19 +0000</pubDate></item><item><title>RFC karma request</title><link>https://externals.io/message/132866</link><description>&lt;p&gt;Hi, &lt;br&gt;
I would like to request RFC karma for my wiki account, frodeborli.&lt;/p&gt;
&lt;p&gt;I intend to publish an RFC called &amp;quot;Scope&amp;quot;, introducing a notion of logical operation identity to PHP, independent of fibers and generators, but preserved across their execution.&lt;/p&gt;
&lt;p&gt;The proposal also makes $_GET, $_POST, $_COOKIE, $_FILES and $_REQUEST scope-local, with the SAPI-provided arrays belonging to the root scope. Existing PHP programs that do not use Scope retain their current behavior.&lt;/p&gt;
&lt;p&gt;A separate vote would make the default locale and timezone scope-local as well. Ordinary shared state, including $_SERVER, $_ENV, class statics and $GLOBALS, remains shared.&lt;/p&gt;
&lt;p&gt;The purpose is to establish the runtime foundations for long-running PHP applications and eventual async execution, without introducing a concurrency or scheduling model into the engine.&lt;/p&gt;
&lt;p&gt;I have implemented a PHP 8.2+ extension and interoperability adapters for AMPHP, ReactPHP, Revolt, phasync and Swoole, with shared conformance tests:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://fiber-interop.github.io/" rel="nofollow" target="_blank"&gt;https://fiber-interop.github.io/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Frode Børli&lt;/p&gt;
</description><guid>AS8PR08MB73391616FB7BCC925FC9D62ED99E2@AS8PR08MB7339.eurprd08.prod.outlook.com</guid><pubDate>Tue, 13 Oct 2026 16:00:15 +0000</pubDate></item><item><title>RFC karma request: Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132865</link><description>&lt;p&gt;Hi Otar&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I registered the &lt;a href="http://wiki.php.net" rel="nofollow" target="_blank"&gt;wiki.php.net&lt;/a&gt; account &amp;quot;otar&amp;quot;. Please give RFC karma to &lt;br&gt;
this account.&lt;/p&gt;
&lt;p&gt;I want to create the RFC &amp;quot;Opt-in JSON Comments and Trailing Commas&amp;quot; at &lt;br&gt;
this page: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/json_comments_trailing_commas" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/json_comments_trailing_commas&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It follows my pre-RFC thread: &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132236" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Draft implementation: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23336" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My GitHub profile: &lt;br&gt;
&lt;a href="https://github.com/otar" rel="nofollow" target="_blank"&gt;https://github.com/otar&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;RFC karma was granted. Good luck!&lt;/p&gt;
&lt;p&gt;Ilija&lt;/p&gt;
</description><guid>b155086a-580a-4466-9733-0559c0fee466@gmail.com</guid><pubDate>Tue, 13 Oct 2026 10:46:30 +0000</pubDate></item><item><title>RFC karma request: Opt-in JSON Comments and Trailing Commas</title><link>https://externals.io/message/132864</link><description>&lt;p&gt;Hello internals,&lt;/p&gt;
&lt;p&gt;I registered the &lt;a href="http://wiki.php.net" rel="nofollow" target="_blank"&gt;wiki.php.net&lt;/a&gt; account &amp;quot;otar&amp;quot;. Please give RFC karma to &lt;br&gt;
this account.&lt;/p&gt;
&lt;p&gt;I want to create the RFC &amp;quot;Opt-in JSON Comments and Trailing Commas&amp;quot; at &lt;br&gt;
this page: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/json_comments_trailing_commas"&gt;https://wiki.php.net/rfc/json_comments_trailing_commas&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It follows my pre-RFC thread: &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132236"&gt;https://news-web.php.net/php.internals/132236&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Draft implementation: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23336"&gt;https://github.com/php/php-src/pull/23336&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My GitHub profile: &lt;br&gt;
&lt;a href="https://github.com/otar"&gt;https://github.com/otar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you, &lt;br&gt;
Otar&lt;/p&gt;
</description><guid>8465138890b174e6b480a03a4c099fe571a2955a@hey.com</guid><pubDate>Tue, 13 Oct 2026 09:49:56 +0000</pubDate></item><item><title>[RFC] CSV Extension (ext/csv)</title><link>https://externals.io/message/132863</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;Thank you for the feedback, and Artem, for the detailed review and &lt;br&gt;
independent verification of the implementation.&lt;/p&gt;
&lt;p&gt;I think the discussion has raised two important questions: whether these &lt;br&gt;
improvements belong in the existing CSV API or a dedicated extension, and &lt;br&gt;
what an API supporting both files and already-open streams should look like.&lt;/p&gt;
&lt;p&gt;Artem, your point about incremental improvements is fair. The RFC's &lt;br&gt;
statement that the existing behaviour “cannot be fixed without breaking &lt;br&gt;
compatibility” is too broad. Several improvements could be introduced &lt;br&gt;
through additional functions or opt-in behaviour while preserving existing &lt;br&gt;
calls. You are also right that enclosing fields containing spaces is &lt;br&gt;
permitted by RFC 4180, and that locale-independent byte parsing has &lt;br&gt;
different implications for encodings such as Shift_JIS.&lt;/p&gt;
&lt;p&gt;At the same time, PHP has taken the approach of introducing a modern API &lt;br&gt;
alongside an established one when their contracts differ substantially. The &lt;br&gt;
new DOM API, including Dom\Document, coexists with the legacy DOMDocument &lt;br&gt;
API, and the URI extension provides a dedicated API alongside &lt;code&gt;parse_url()&lt;/code&gt;. &lt;br&gt;
These are relevant precedents for giving users clearer semantics without &lt;br&gt;
changing the behaviour of existing applications. Of course, those &lt;br&gt;
precedents do not automatically justify another CSV parser. They do suggest &lt;br&gt;
that improving the existing API and introducing a dedicated one are both &lt;br&gt;
reasonable approaches to evaluate. The question is whether the consistency &lt;br&gt;
and usability of the proposed CSV API justify its maintenance cost.&lt;/p&gt;
&lt;p&gt;My motivation is to provide parsing, serialization, validation and file &lt;br&gt;
handling with consistent, explicit defaults. In particular, the file-based &lt;br&gt;
entry points accept a path and manage the underlying stream, covering the &lt;br&gt;
convenience previously provided by SplFileObject's CSV methods. The &lt;br&gt;
existing &lt;code&gt;fgetcsv()&lt;/code&gt;/fputcsv() functions operate on streams supplied by the &lt;br&gt;
caller. Both use cases deserve support.&lt;/p&gt;
&lt;p&gt;Separately, the remaining overlapping-token writer issue reported on the PR &lt;br&gt;
has been addressed in &lt;br&gt;
&lt;a href="https://github.com/php/php-src/commit/b7866156dc7e77304fe3419edceba6f890b113cb" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/commit/b7866156dc7e77304fe3419edceba6f890b113cb&lt;/a&gt;. &lt;br&gt;
Fields are now enclosed when tokens could form across field/separator &lt;br&gt;
boundaries. Distinguishable overlapping dialects remain supported; &lt;br&gt;
ambiguous combinations such as delimiter &lt;code&gt;xy&lt;/code&gt; with enclosure &lt;code&gt;xyx&lt;/code&gt; are &lt;br&gt;
rejected by both readers and writers. Regression tests cover both &lt;br&gt;
behaviours, and all 92 PHPT tests pass in my local verification.&lt;/p&gt;
&lt;p&gt;With those concerns in mind, I would like to discuss three possible &lt;br&gt;
directions:&lt;/p&gt;
&lt;p&gt;A. Improve the existing API in ext/standard, adding capabilities such as &lt;br&gt;
string serialization, multibyte tokens and opt-in strict parsing, with file &lt;br&gt;
and lazy-reading conveniences considered where needed.&lt;/p&gt;
&lt;p&gt;B. Continue with the dedicated ext/csv proposal, retaining its &lt;br&gt;
function-based API and lazy collection, while adding entry points for &lt;br&gt;
existing streams and resolving the naming questions.&lt;/p&gt;
&lt;p&gt;C. Rework the proposal around an object-oriented API in the Csv namespace, &lt;br&gt;
with explicit file and stream factories and writing methods. Stream &lt;br&gt;
ownership, iteration, validation and string conversion would need to be &lt;br&gt;
specified before this became a concrete voting option.&lt;/p&gt;
&lt;p&gt;My preference remains a dedicated API with consistent semantics, but I am &lt;br&gt;
open to revising its shape or pursuing the existing-API route if that is &lt;br&gt;
the direction the project prefers.&lt;/p&gt;
&lt;p&gt;Would a directional vote between these approaches be useful if discussion &lt;br&gt;
does not establish a clear preference? I would first document the &lt;br&gt;
alternatives and their trade-offs, and agree on the voting format. &lt;br&gt;
Selecting a direction would guide a revised proposal; it would not approve &lt;br&gt;
an API whose details have yet to be reviewed.&lt;/p&gt;
&lt;p&gt;The current RFC does not propose deprecating the existing CSV functions. &lt;br&gt;
Any future consolidation would need its own discussion and an established &lt;br&gt;
migration path, rather than assuming that introducing a new API commits PHP &lt;br&gt;
to removing the old one.&lt;/p&gt;
&lt;p&gt;The goal is to establish a maintainable CSV path for PHP users, including &lt;br&gt;
those migrating from the deprecated SplFileObject methods. I would welcome &lt;br&gt;
your thoughts on which direction best serves that goal.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian&lt;/p&gt;
&lt;p&gt;On Sat, Oct 10, 2026 at 12:38 PM Artem Ukrainskiy &lt;a href="mailto:art.ukrainskiy@gmail.com"&gt;art.ukrainskiy@gmail.com&lt;/a&gt; &lt;br&gt;
wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This RFC led me to take a closer look at the built-in CSV functions, and &lt;br&gt;
what I found makes me favor a different path to the same goals.&lt;/p&gt;
&lt;p&gt;The RFC argues that their behavior &amp;quot;cannot be fixed without breaking &lt;br&gt;
compatibility&amp;quot;. I went through the list:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;$escape: already addressed by the PHP 8.4 deprecation; the default &lt;br&gt;
changes to &amp;quot;&amp;quot; in PHP 9.0.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Locale dependence: php/php-src#24207 ( &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24207" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24207&lt;/a&gt;, under review, prompted by this &lt;br&gt;
RFC) removes the per-byte libc lookup for ASCII characters in &lt;br&gt;
ASCII-compatible locales. The remaining isspace() before an opening &lt;br&gt;
enclosure can be replaced with an explicit space/tab check. For non-ASCII &lt;br&gt;
bytes in CJK locales, mbrlen() serves a purpose: a Shift_JIS character can &lt;br&gt;
contain a '|' trail byte without that byte being a delimiter. A &lt;br&gt;
locale-independent byte parser would split it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Single-byte delimiters and enclosures: longer values currently throw &lt;br&gt;
ValueError, so support for multibyte tokens can be added without changing &lt;br&gt;
existing valid calls.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No inverse of &lt;code&gt;str_getcsv()&lt;/code&gt;: a str_putcsv() function would fill that gap &lt;br&gt;
and let SplFileObject::fputcsv() callers use &lt;br&gt;
$file-&amp;gt;fwrite(str_putcsv($row)).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[null] for an empty line and whitespace before an enclosure: these can &lt;br&gt;
be addressed by an opt-in strict mode without changing the default &lt;br&gt;
behavior. Enclosing fields containing spaces on output is permitted by RFC &lt;br&gt;
4180 section 2.5 and is not a compliance defect.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Strict validation, multibyte tokens, string serialization and lazy reading &lt;br&gt;
can all be built on the existing API. Lazy iteration over a stream already &lt;br&gt;
works with a generator around &lt;code&gt;fgetcsv()&lt;/code&gt;; strict row-width validation can be &lt;br&gt;
layered on top. These changes can be developed and reviewed independently, &lt;br&gt;
without replacing the parser or breaking existing calls.&lt;/p&gt;
&lt;p&gt;I have benchmarks and test scripts for the existing implementation and the &lt;br&gt;
proposed extension here: &lt;br&gt;
&lt;a href="https://github.com/ArtUkrainskiy/php-src-bench/tree/main/reports/csv-pr-24199" rel="nofollow" target="_blank"&gt;https://github.com/ArtUkrainskiy/php-src-bench/tree/main/reports/csv-pr-24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Adding ext/csv instead would leave core maintaining two independent CSV &lt;br&gt;
parsers for the foreseeable future. The RFC explicitly leaves the built-ins &lt;br&gt;
unchanged, and the June discussion around the SplFileObject deprecations &lt;br&gt;
showed understandable reluctance to remove existing APIs without an &lt;br&gt;
established migration path (&lt;a href="https://news-web.php.net/php.internals/131503" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/131503&lt;/a&gt;, &lt;br&gt;
and the August follow-up: &lt;a href="https://news-web.php.net/php.internals/132186" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132186&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The branch itself is in good shape. The issues I reported on the PR were &lt;br&gt;
addressed quickly, and the parser is now faster than &lt;code&gt;fgetcsv()&lt;/code&gt; in my &lt;br&gt;
benchmarks. This is not an objection to the implementation or the work that &lt;br&gt;
went into it.&lt;/p&gt;
&lt;p&gt;My concern is the long-term maintenance cost of introducing a second &lt;br&gt;
parser when the existing one can be improved incrementally. I'd rather help &lt;br&gt;
land those improvements in ext/standard.&lt;/p&gt;
&lt;p&gt;пт, 9 окт. 2026 г. в 17:07, Damian Jóźwiak &amp;&lt;a href="mailto:lt;damian.jozwiak.lodz@gmail.com" rel="nofollow" target="_blank"&gt;lt;damian.jozwiak.lodz@gmail.com&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to open the discussion on an RFC proposing a dedicated CSV &lt;br&gt;
extension (ext/csv) for PHP core.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/csv_extension" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/csv_extension&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementation: &lt;a href="https://github.com/php/php-src/pull/24199" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal builds upon Gina Peter Banyard's girgias/csv extension &lt;br&gt;
(BSD-3-Clause), with additional functionality for file and stream handling.&lt;/p&gt;
&lt;p&gt;The motivation includes the deprecation of the SplFileObject CSV methods &lt;br&gt;
in PHP 8.6, which leaves certain use cases without a direct replacement.&lt;/p&gt;
&lt;p&gt;The proposed extension provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Six functions and one class in the Csv\ namespace.&lt;/h2&gt;
&lt;h2&gt;RFC 4180-compatible parsing and serialization by default.&lt;/h2&gt;
&lt;h2&gt;Locale-independent processing without the proprietary escape &lt;br&gt;
mechanism.&lt;/h2&gt;
&lt;h2&gt;Multibyte delimiters, enclosures, and EOL sequences.&lt;/h2&gt;
&lt;h2&gt;Strict and lax collection parsing.&lt;/h2&gt;
&lt;p&gt;Lazy iteration over CSV files and streaming output.&lt;/p&gt;
&lt;p&gt;The implementation includes PHPT tests covering parsing, serialization, &lt;br&gt;
stream handling, resource lifetime, and various edge cases.&lt;/p&gt;
&lt;p&gt;The pull request's CI checks are currently passing across the tested &lt;br&gt;
platforms, including debug, ZTS, and AddressSanitizer configurations.&lt;/p&gt;
&lt;p&gt;The initial API is deliberately kept small. A more comprehensive &lt;br&gt;
object-oriented Reader/Writer API, including capability-oriented &lt;br&gt;
interfaces, is left for potential future discussion.&lt;/p&gt;
&lt;p&gt;I'd particularly appreciate feedback on the public API design, the naming &lt;br&gt;
of LazyLaxCollection, and whether the extension should be always enabled &lt;br&gt;
or optional at build time.&lt;/p&gt;
&lt;p&gt;For transparency, Gina has not reviewed or endorsed this RFC. Parts of &lt;br&gt;
the implementation were developed with LLM assistance; I have reviewed the &lt;br&gt;
code and take full responsibility for the contribution.&lt;/p&gt;
&lt;p&gt;This is an invitation for discussion, not a call for votes.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your feedback.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;-- &lt;br&gt;
Best regards, &lt;br&gt;
Artem Ukrainskiy&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>CA+WT9YaWaKncbG6bb46J5sBVLZoi73gKQQ6AQV908jGO0Xh63w@mail.gmail.com</guid><pubDate>Sun, 11 Oct 2026 11:50:25 +0000</pubDate></item><item><title>[RFC] Polling API Additions</title><link>https://externals.io/message/132862</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I would like to introduce the Polling API Additions RFC:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/poll_api_additions" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/poll_api_additions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is follow up to Polling API RFC.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for your RFC. As I already mentioned off-list I'm very much &lt;br&gt;
looking forward to the next parts of the polling API.&lt;/p&gt;
&lt;p&gt;I've given the RFC a full read now and have the following comments, many &lt;br&gt;
of which are questions intended to spark a discussion, instead of &lt;br&gt;
concrete fully-refined suggestions.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I agree with Ilia's suggestion to split the RFC into multiple scoped &lt;br&gt;
votes, even if everything is discussed at the same time for the “big &lt;br&gt;
picture”. The RFC itself already mentions “Every addition is useful on &lt;br&gt;
its own” in the introduction. This also allows to easily split off the &lt;br&gt;
parts that might need just a little more discussion. The “URI followup” &lt;br&gt;
for PHP 8.6 would be a good example. It started with 6 things, two were &lt;br&gt;
split off and the remaining 4 had a separate (primary) vote each.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is the separate &lt;code&gt;WeakHandle&lt;/code&gt; interface and classes necessary? Would &lt;br&gt;
it also be possible to do something like &lt;code&gt;new  StreamPollHandle(WeakReference::create($stream))&lt;/code&gt;? It would be &lt;br&gt;
unfortunate if it would be necessary to duplicate everything as “strong” &lt;br&gt;
and “weak”.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Can the RFC document the expected &lt;code&gt;callable&lt;/code&gt; signature for &lt;br&gt;
&lt;code&gt;Context::onWatcherRemoved()&lt;/code&gt; (e.g. is the callback &lt;code&gt;: void&lt;/code&gt;, what &lt;br&gt;
parameters are passed to it?).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I'm not sure about the naming and namespacing of the &lt;code&gt;TimerHandle&lt;/code&gt;. &lt;br&gt;
Putting it straight into &lt;code&gt;Io\Poll&lt;/code&gt; would make the namespace very full. &lt;br&gt;
For Random\Engine and the currently discussed Time\Clock we put the &lt;br&gt;
implementations of the interface in a sub-namespace named after the &lt;br&gt;
interface (and dropped the &lt;code&gt;Handle&lt;/code&gt; suffix). In contrast to &lt;br&gt;
&lt;code&gt;StreamPollHandle&lt;/code&gt;, the &lt;code&gt;Handle&lt;/code&gt; suffix on &lt;code&gt;TimerHandle&lt;/code&gt; doesn't carry &lt;br&gt;
any additional meaning and I don't think it helps disambiguation when &lt;br&gt;
imported in an unqualified way. Not sure if &lt;code&gt;Io\Poll\Handle\Timer&lt;/code&gt; is &lt;br&gt;
the correct choice. Perhaps it can also be just &lt;code&gt;Io\Timer&lt;/code&gt; when the &lt;br&gt;
&lt;code&gt;Timer&lt;/code&gt; is usable standalone, e.g. using a &lt;code&gt;Io\Timer::sleep()&lt;/code&gt; method or &lt;br&gt;
similar - or it would be correctly placed in &lt;code&gt;Time\&lt;/code&gt; similarly to &lt;br&gt;
Golang.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Even though I'm not 100% convinced by my suggestion, I wanted to put it &lt;br&gt;
out to allow discussing it. Perhaps someone else on this list has a good &lt;br&gt;
suggestion or reasoning based on my rough idea.&lt;/p&gt;
&lt;ol start="5"&gt;
&lt;li&gt;
&lt;p&gt;The RFC should explain if &lt;code&gt;getTimeout()&lt;/code&gt; returns the constructor &lt;br&gt;
parameter directly - or if it returns the remaining timeout.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Would having a &lt;code&gt;TimerHandle::pause()&lt;/code&gt; or &lt;code&gt;TimerHandle::stop()&lt;/code&gt; or &lt;br&gt;
&lt;code&gt;TimerHandle::reset()&lt;/code&gt; method be useful to allow modifying the timer &lt;br&gt;
without going through the Context?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As an aside: I'm happy that we could immediately find another use for &lt;br&gt;
&lt;code&gt;Duration&lt;/code&gt; with the &lt;code&gt;TimerHandle&lt;/code&gt;. This is a good indication for me that &lt;br&gt;
it was worth it getting it into 8.6 last minute to ensure a nice and &lt;br&gt;
consistent polling API :-)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For &lt;code&gt;TimerHandle&lt;/code&gt;: Should the configured timeout and the periodic &lt;br&gt;
flag be exposed as (readonly) properties instead of methods? Those are &lt;br&gt;
effectively “properties” of the object in the English sense of the word.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Similarly to &lt;code&gt;TimerHandle&lt;/code&gt; also for the &lt;code&gt;SignalHandle&lt;/code&gt;: Would it &lt;br&gt;
theoretically be possible for the &lt;code&gt;SignalHandle&lt;/code&gt; to act both as a &lt;br&gt;
standalone API and be usable with the polling API? Not sure if that &lt;br&gt;
makes sense. Is there perhaps precedent in other programming languages?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For &lt;code&gt;ProcessHandle&lt;/code&gt; I don't think we should have both a regular &lt;br&gt;
constructor and named constructor. This makes discoverability worse, &lt;br&gt;
because the regular constructor doesn't show up in autocompletion for &lt;br&gt;
&lt;code&gt;ProcessHandle::from*&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is not unlikely that we want to introduce a new “Process” API to &lt;br&gt;
improve developer experience. Tying the &lt;code&gt;ProcessHandle&lt;/code&gt; class to the &lt;br&gt;
existing &lt;code&gt;proc_open()&lt;/code&gt; resources would be unfortunate when a new API &lt;br&gt;
with new concepts is then introduced. It will also not show up when &lt;br&gt;
autocompleting &lt;code&gt;proc_*()&lt;/code&gt;. My suggestion would therefore be a &lt;br&gt;
&lt;code&gt;proc_get_poll_handle()&lt;/code&gt; function ot similar that constructs the &lt;br&gt;
&lt;code&gt;ProcessHandle&lt;/code&gt;, while keeping the integration contained in the &lt;br&gt;
`proc_*()' API.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For the &lt;code&gt;NotifyHandle&lt;/code&gt;: Is it possible or does it make sense for it &lt;br&gt;
to support providing additional “metadata” as part of the notification, &lt;br&gt;
such as &lt;code&gt;-&amp;gt;notify(&amp;quot;hey, wake up&amp;quot;)&lt;/code&gt;, similarly to how the &lt;code&gt;ProcessHandle&lt;/code&gt; &lt;br&gt;
provides the exit status.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The “RFC Impact” section is following an old template, and the &lt;br&gt;
ecosystem impact subsection is missing. Could you add some short note &lt;br&gt;
about the expected Impact for e.g. ReactPHP?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In the “RFC Impact” section the RFC says “SignalHandle is limited to &lt;br&gt;
the CLI SAPI in thread-safe builds”, which is ambiguous to me. Is this &lt;br&gt;
“SignalHandle only works in ZTS CLI. It does not work in NTS at all and &lt;br&gt;
does not work in ZTS FPM / FrankenPHP” or is this “SignalHandle works in &lt;br&gt;
all NTS. For ZTS only CLI is supported”? Based on the explanation of the &lt;br&gt;
&lt;code&gt;SignalHandle&lt;/code&gt;, I assume it's the latter?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Seeing the examples: Can you clarify the behavior of &lt;br&gt;
&lt;code&gt;SignalHandle::getDelivered()&lt;/code&gt;. Which previous call is meant? Is it the &lt;br&gt;
previous call to &lt;code&gt;SignalHandle::getDelivered()&lt;/code&gt; or is it the previous &lt;br&gt;
call to &lt;code&gt;Context::wait()&lt;/code&gt;? Would it make sense to make &lt;br&gt;
&lt;code&gt;SignalHandle::getDelivered()&lt;/code&gt; return a generator instead to make it &lt;br&gt;
more explicit that the return value is only meant to be consumed once?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>284f1373886306322a8d5b35efd2e5ae@bastelstu.be</guid><pubDate>Sun, 11 Oct 2026 11:29:28 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132861</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM

ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to illustrate its usefulness for this specific system. Shipping one binary instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), because FPM no longer loads a second copy of the engine right after the CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other systems where boot speed (autoscaling, serverless, etc.) or disk size is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; (thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Perhaps there's another alternative: &lt;a href="http://libzend.so" rel="nofollow" target="_blank"&gt;libzend.so&lt;/a&gt;. It was actually &lt;br&gt;
possible to build this in the past. I assume it was partly removed in &lt;br&gt;
the never-ending quest for more performance, but it is something I &lt;br&gt;
have considered for other reasons as well. One reason is that it &lt;br&gt;
allows (most) extensions to link their symbols to &lt;a href="http://libzend.so" rel="nofollow" target="_blank"&gt;libzend.so&lt;/a&gt; instead &lt;br&gt;
of leaving them undefined for the binary to provide. In any case, the &lt;br&gt;
performance penalty would be something to measure, but I would prefer &lt;br&gt;
this solution if it's viable, personally.&lt;/p&gt;
</description><guid>CAAKU0ummBK1hiiCL2h4pXrx6cbXqsk+EaVdAxheU1vKMb8wRow@mail.gmail.com</guid><pubDate>Sat, 10 Oct 2026 19:07:12 +0000</pubDate></item><item><title>[RFC] CSV Extension (ext/csv)</title><link>https://externals.io/message/132860</link><description>&lt;p&gt;This RFC led me to take a closer look at the built-in CSV functions, and &lt;br&gt;
what I found makes me favor a different path to the same goals.&lt;/p&gt;
&lt;p&gt;The RFC argues that their behavior &amp;quot;cannot be fixed without breaking &lt;br&gt;
compatibility&amp;quot;. I went through the list:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;$escape: already addressed by the PHP 8.4 deprecation; the default &lt;br&gt;
changes to &amp;quot;&amp;quot; in PHP 9.0.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Locale dependence: php/php-src#24207 ( &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24207" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24207&lt;/a&gt;, under review, prompted by this &lt;br&gt;
RFC) removes the per-byte libc lookup for ASCII characters in &lt;br&gt;
ASCII-compatible locales. The remaining isspace() before an opening &lt;br&gt;
enclosure can be replaced with an explicit space/tab check. For non-ASCII &lt;br&gt;
bytes in CJK locales, mbrlen() serves a purpose: a Shift_JIS character can &lt;br&gt;
contain a '|' trail byte without that byte being a delimiter. A &lt;br&gt;
locale-independent byte parser would split it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Single-byte delimiters and enclosures: longer values currently throw &lt;br&gt;
ValueError, so support for multibyte tokens can be added without changing &lt;br&gt;
existing valid calls.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;No inverse of &lt;code&gt;str_getcsv()&lt;/code&gt;: a str_putcsv() function would fill that gap &lt;br&gt;
and let SplFileObject::fputcsv() callers use &lt;br&gt;
$file-&amp;gt;fwrite(str_putcsv($row)).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;[null] for an empty line and whitespace before an enclosure: these can be &lt;br&gt;
addressed by an opt-in strict mode without changing the default behavior. &lt;br&gt;
Enclosing fields containing spaces on output is permitted by RFC 4180 &lt;br&gt;
section 2.5 and is not a compliance defect.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Strict validation, multibyte tokens, string serialization and lazy reading &lt;br&gt;
can all be built on the existing API. Lazy iteration over a stream already &lt;br&gt;
works with a generator around &lt;code&gt;fgetcsv()&lt;/code&gt;; strict row-width validation can be &lt;br&gt;
layered on top. These changes can be developed and reviewed independently, &lt;br&gt;
without replacing the parser or breaking existing calls.&lt;/p&gt;
&lt;p&gt;I have benchmarks and test scripts for the existing implementation and the &lt;br&gt;
proposed extension here: &lt;br&gt;
&lt;a href="https://github.com/ArtUkrainskiy/php-src-bench/tree/main/reports/csv-pr-24199" rel="nofollow" target="_blank"&gt;https://github.com/ArtUkrainskiy/php-src-bench/tree/main/reports/csv-pr-24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Adding ext/csv instead would leave core maintaining two independent CSV &lt;br&gt;
parsers for the foreseeable future. The RFC explicitly leaves the built-ins &lt;br&gt;
unchanged, and the June discussion around the SplFileObject deprecations &lt;br&gt;
showed understandable reluctance to remove existing APIs without an &lt;br&gt;
established migration path (&lt;a href="https://news-web.php.net/php.internals/131503" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/131503&lt;/a&gt;, &lt;br&gt;
and the August follow-up: &lt;a href="https://news-web.php.net/php.internals/132186" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132186&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;The branch itself is in good shape. The issues I reported on the PR were &lt;br&gt;
addressed quickly, and the parser is now faster than &lt;code&gt;fgetcsv()&lt;/code&gt; in my &lt;br&gt;
benchmarks. This is not an objection to the implementation or the work that &lt;br&gt;
went into it.&lt;/p&gt;
&lt;p&gt;My concern is the long-term maintenance cost of introducing a second parser &lt;br&gt;
when the existing one can be improved incrementally. I'd rather help land &lt;br&gt;
those improvements in ext/standard.&lt;/p&gt;
&lt;p&gt;пт, 9 окт. 2026 г. в 17:07, Damian Jóźwiak &lt;a href="mailto:damian.jozwiak.lodz@gmail.com"&gt;damian.jozwiak.lodz@gmail.com&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to open the discussion on an RFC proposing a dedicated CSV &lt;br&gt;
extension (ext/csv) for PHP core.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/csv_extension" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/csv_extension&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementation: &lt;a href="https://github.com/php/php-src/pull/24199" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal builds upon Gina Peter Banyard's girgias/csv extension &lt;br&gt;
(BSD-3-Clause), with additional functionality for file and stream handling.&lt;/p&gt;
&lt;p&gt;The motivation includes the deprecation of the SplFileObject CSV methods &lt;br&gt;
in PHP 8.6, which leaves certain use cases without a direct replacement.&lt;/p&gt;
&lt;p&gt;The proposed extension provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Six functions and one class in the Csv\ namespace.&lt;/h2&gt;
&lt;h2&gt;RFC 4180-compatible parsing and serialization by default.&lt;/h2&gt;
&lt;h2&gt;Locale-independent processing without the proprietary escape mechanism.&lt;/h2&gt;
&lt;h2&gt;Multibyte delimiters, enclosures, and EOL sequences.&lt;/h2&gt;
&lt;h2&gt;Strict and lax collection parsing.&lt;/h2&gt;
&lt;p&gt;Lazy iteration over CSV files and streaming output.&lt;/p&gt;
&lt;p&gt;The implementation includes PHPT tests covering parsing, serialization, &lt;br&gt;
stream handling, resource lifetime, and various edge cases.&lt;/p&gt;
&lt;p&gt;The pull request's CI checks are currently passing across the tested &lt;br&gt;
platforms, including debug, ZTS, and AddressSanitizer configurations.&lt;/p&gt;
&lt;p&gt;The initial API is deliberately kept small. A more comprehensive &lt;br&gt;
object-oriented Reader/Writer API, including capability-oriented &lt;br&gt;
interfaces, is left for potential future discussion.&lt;/p&gt;
&lt;p&gt;I'd particularly appreciate feedback on the public API design, the naming &lt;br&gt;
of LazyLaxCollection, and whether the extension should be always enabled &lt;br&gt;
or optional at build time.&lt;/p&gt;
&lt;p&gt;For transparency, Gina has not reviewed or endorsed this RFC. Parts of the &lt;br&gt;
implementation were developed with LLM assistance; I have reviewed the code &lt;br&gt;
and take full responsibility for the contribution.&lt;/p&gt;
&lt;p&gt;This is an invitation for discussion, not a call for votes.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your feedback.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;-- &lt;br&gt;
Best regards, &lt;br&gt;
Artem Ukrainskiy&lt;/p&gt;
</description><guid>CAPen=wFeoKrtWX=BeEM5AzvLjh7XXArCEoxh+7LFoYwny4KkYg@mail.gmail.com</guid><pubDate>Sat, 10 Oct 2026 10:37:51 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132859</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Right, good point, I agree too, thanks!&lt;/p&gt;
&lt;p&gt;I opened a new PR that goes the other way around: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24192" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24192&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have also updated the RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;php&lt;/code&gt; CLI is unchanged&lt;/li&gt;
&lt;li&gt;&lt;code&gt;php-fpm&lt;/code&gt; &lt;em&gt;always&lt;/em&gt; includes &lt;code&gt;php&lt;/code&gt; (and runs as CLI when run as &lt;code&gt;php&lt;/code&gt; &lt;br&gt;
instead of &lt;code&gt;php-fpm&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;no need for a build option anymore&lt;/li&gt;
&lt;li&gt;the diff is simpler&lt;/li&gt;
&lt;li&gt;FPM aligns with FrankenPHP (both include the CLI)&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;--fpm&lt;/code&gt; CLI option anymore, solves the objections raised &lt;br&gt;
previously in this thread&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That sounds much better indeed.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I disagree that this is better from a discoverability and predictability &lt;br&gt;
point of view and I also disagree with the concerns that the original &lt;br&gt;
proposal would somehow “privilege” FPM.&lt;/p&gt;
&lt;p&gt;As for the first part:&lt;/p&gt;
&lt;p&gt;When running a PHP binary on the command line, my expectation is that &lt;br&gt;
I'm running a CLI application and thus I expect to end up in the CLI &lt;br&gt;
SAPI. Suddenly starting FPM, which potentially binds ports or sockets, &lt;br&gt;
just because I happen to name the binary the wrong name (e.g. when using &lt;br&gt;
a custom &lt;code&gt;p&lt;/code&gt; symlink to run PHP after my distro switched to the &lt;br&gt;
“combined binary” setup or just &lt;code&gt;php-8.7&lt;/code&gt; that the RFC notes as running &lt;br&gt;
FPM) would be very surprising. With the current proposal I also have no &lt;br&gt;
way out, except naming the binary differently. Changing behavior based &lt;br&gt;
on the binary name to do entirely different things is something that is &lt;br&gt;
comparatively rarely used and thus folks are unlikely to be accustomed &lt;br&gt;
to this being a thing (the most prominent example that comes to mind &lt;br&gt;
would be Busybox). An explicit flag / argument would be properly &lt;br&gt;
discoverable (appearing in help outputs) and would also be reliably &lt;br&gt;
scriptable.&lt;/p&gt;
&lt;p&gt;For the second point, and tying into the first: PHP FPM is a / the &lt;br&gt;
recommended solution of running PHP as a FastCGI application. Adding an &lt;br&gt;
&lt;code&gt;--fpm&lt;/code&gt; flag to the PHP binary to run PHP in “FastCGI mode” would match &lt;br&gt;
the &lt;code&gt;-S&lt;/code&gt; flag to run PHP in “HTTP mode” (which switches from the &lt;code&gt;cli&lt;/code&gt; &lt;br&gt;
to the &lt;code&gt;cli-server&lt;/code&gt; SAPI). I understand that the current “HTTP mode” &lt;br&gt;
implementation is meant to be used for development purposes only, but &lt;br&gt;
that is an implementation detail. We could in theory implement a &lt;br&gt;
production grade web server to PHP tomorrow (and potentially add &lt;br&gt;
&lt;code&gt;--http&lt;/code&gt; as the entrypoint for the “HTTP mode”, keeping &lt;code&gt;-S&lt;/code&gt; as an &lt;br&gt;
alias) and then we would have:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; php # CLI mode
 php --fpm # FastCGI mode
 php --http # HTTP mode
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with the &lt;code&gt;php&lt;/code&gt; binary being the singular entrypoint for all use cases &lt;br&gt;
where PHP is running “standalone” rather than embedded into something &lt;br&gt;
else (as with mod_php). Alternatively, we use &lt;code&gt;--mode=fpm&lt;/code&gt; to switch to &lt;br&gt;
FPM mode instead of reserving the top level &lt;code&gt;--fpm&lt;/code&gt; flag.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I agree with Tim here, for three reasons:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ergonomically, using &lt;code&gt;php --fpm &amp;lt;fpm-args&amp;gt;&lt;/code&gt; is clearer than being forced to rename the binary (I only suggested that it's a possibility for build maintainers)&lt;/li&gt;
&lt;li&gt;php-fpm usually lives in /usr/sbin which usually shouldn't be accessed directly by users&lt;/li&gt;
&lt;li&gt;even if we ignore that, &lt;code&gt;php-fpm php-cli &amp;lt;cli-args&amp;gt;&lt;/code&gt; is silly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I don't share Larry's concern here, I don't see FrankenPHP completely replacing FPM any time soon. There has to remain a way to run php without locking ourselves to Go (and realistically Caddy). But even if it did, dropping a --fpm flag is no different than dropping a php-fpm target.&lt;/p&gt;
&lt;p&gt;(Since php --fpm, maybe php --http, or even php --le-monstre ;) are where it would end anyway, so I see no reason to gate it behind a dedicated --mode= flag)&lt;/p&gt;
&lt;p&gt;Kind regards &lt;br&gt;
Marc Henderkes&lt;/p&gt;
</description><guid>GVXP195MB16159B60BC823644B6E2621DD1912@GVXP195MB1615.EURP195.PROD.OUTLOOK.COM</guid><pubDate>Sat, 10 Oct 2026 08:47:09 +0000</pubDate></item><item><title>Deprecate b-prefix for strings</title><link>https://externals.io/message/132858</link><description>&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;All,&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;b&lt;/code&gt; string prefix and the &lt;code&gt;(binary)&lt;/code&gt; cast were both introduced in &lt;br&gt;
PHP 5.2.1 for forward compatibility with PHP 6.&lt;/p&gt;
&lt;p&gt;In 2016, there was an RFC [1] targeting PHP 7.x to deprecate both, &lt;br&gt;
which was declined.&lt;/p&gt;
&lt;p&gt;Since then, the &lt;code&gt;(binary)&lt;/code&gt; type cast has now been deprecated in PHP &lt;br&gt;
8.5.0 [2], but as far as I can see, the &lt;code&gt;b&lt;/code&gt;-prefix for strings is &lt;br&gt;
still supported.&lt;/p&gt;
&lt;p&gt;I can't remember ever coming across this in the wild, so I wonder if &lt;br&gt;
it might be a good idea to deprecate the &lt;code&gt;b&lt;/code&gt;-prefix now as well.&lt;/p&gt;
&lt;p&gt;I'll happily create an RFC for this if the you all think it's a good &lt;br&gt;
idea.&lt;/p&gt;
&lt;p&gt;Opinions ?&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
&lt;p&gt;1: &lt;a href="https://wiki.php.net/rfc/binary_string_deprecation" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/binary_string_deprecation&lt;/a&gt; &lt;br&gt;
2: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Just in case you missed it in the avalanche of proposals being &lt;br&gt;
discussed on the list at this moment.&lt;/p&gt;
&lt;p&gt;So far, this suggestion has had one response, which is not enough to &lt;br&gt;
make it worth the effort for me to write an RFC and find someone to &lt;br&gt;
collaborate with for the C-code.&lt;/p&gt;
&lt;p&gt;Unless there are more people who respond to indicate interest in this &lt;br&gt;
proposal, I will not pursue it.&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks to the people who have responded and to Daniel for offering to &lt;br&gt;
handle the C-code changes. I will write up the proposal properly and do &lt;br&gt;
an impact analysis and will add this to the PHP 8.7 bulk deprecations &lt;br&gt;
RFC in the near future.&lt;/p&gt;
&lt;p&gt;Have a good weekend!&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
</description><guid>6AC968F6.8070504@adviesenzo.nl</guid><pubDate>Fri, 09 Oct 2026 22:21:42 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132857</link><description>&lt;blockquote&gt;
&lt;p&gt;I did not write the article in question. I think these &lt;br&gt;
questions would be better addressed to OWASP.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I didn't ask you any questions, nor do I have any questions I want to ask the OWASP authors.&lt;/p&gt;
&lt;p&gt;You stated that the algorithm Sjoerd proposed including &amp;quot;goes against OWASP recommendations&amp;quot;. I looked at the page you linked to, did some follow-up research of terms it mentioned, and I disagree with your conclusion.&lt;/p&gt;
&lt;p&gt;My conclusion is that the page you linked discusses a possible vulnerability in similar algorithms, and suggests an algorithm that doesn't have that vulnerability. The algorithm proposed in this thread is not identical to that OWASP suggestion, but it has a different feature which addresses the same vulnerability.&lt;/p&gt;
&lt;p&gt;As such, I think the algorithm is worth considering further.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rowan Tommins &lt;br&gt;
[IMSoP]&lt;/p&gt;
</description><guid>D9968885-EA23-4C03-B30C-7BC4A5474451@rwec.co.uk</guid><pubDate>Fri, 09 Oct 2026 16:24:47 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132856</link><description>&lt;p&gt;Hello Rowan Tommins [IMSoP],&lt;/p&gt;
&lt;p&gt;(Mirco Babin)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;OWASP states, see &lt;br&gt;
&lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt" rel="nofollow" target="_blank"&gt;https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Rowan Tommins [IMSoP])&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I looked up the attack discussed there, &amp;quot;password shucking&amp;quot; or &lt;br&gt;
&amp;quot;hash shucking&amp;quot;, and as I understand it, it requires &lt;br&gt;
&lt;em&gt;the same inner hash&lt;/em&gt; to be used somewhere else, that the attacker &lt;br&gt;
can match &lt;em&gt;to that user&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) I did not write the article in question. I think these &lt;br&gt;
questions would be better addressed to OWASP.&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;br&gt;
Mirco Babin&lt;/p&gt;
</description><guid>CAFgk54kcWmXBNnpKSWd07Kn0NCZpgW+cOQ11ESzUt9jV7PFj8Q@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 14:03:11 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132855</link><description>&lt;p&gt;Hello Sjoerd Langkemper,&lt;/p&gt;
&lt;p&gt;(Mirco Babin)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Passlib is not a trusted source for security related issues. &lt;br&gt;
Why is something proposed that goes &lt;em&gt;against OWASP&lt;/em&gt; recommendations? &lt;br&gt;
Is interoperability with other systems considered?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Sjoerd Langkemper)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Thank you for your feedback. Do you have a suggestion for a password &lt;br&gt;
hash that is specified by a recognized organization and has better &lt;br&gt;
interoperability with other systems?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) This question is wrongly addressed to me. I have no &lt;br&gt;
intention of writing a RFC.&lt;/p&gt;
&lt;p&gt;(Sjoerd Langkemper)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I considered PBKDF2; it is widely supported and standardized by NIST, &lt;br&gt;
but it is generally seen as less secure than bcrypt. Would you prefer &lt;br&gt;
this, even if it is less resistant to offline cracking attacks?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) My preference is of no importance. Also I don't have a &lt;br&gt;
preference. Following security standards and interoperability is &lt;br&gt;
what PHP should offer to its users, the programmers using PHP.&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;br&gt;
Mirco Babin&lt;/p&gt;
</description><guid>CAFgk54=4tg8V1Pu+NJGHziC2C4NxcddzMSU=LTHU-McoUpyRoA@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 14:02:48 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132854</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I realised I had left the voting widget out of the RFC, so I’ve now added &lt;br&gt;
it. The API is unchanged.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/io_terminal" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/io_terminal&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry for missing this earlier.&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Pratik&lt;/p&gt;
</description><guid>CA+9BsNcNjpUb=wS4a1BWJ-TLX+7TWnwzwHbZB77EnosBcamN8w@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 12:40:18 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132853</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;(Mirco Babin) There is a misconception. The application does not &lt;br&gt;
choose the abstracted clock truth for the Composer installed &lt;br&gt;
libraries. It only chooses the clock for its internal parts. Each &lt;br&gt;
piece of software, internal application and each different external &lt;br&gt;
library, chooses its own source of abstracted clock truth, like:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Of course. If the library provides no way to inject a clock, then you &lt;br&gt;
can't inject a clock. What I meant to say is that if the libraries you &lt;br&gt;
use allow injecting a clock (e.g. PSR-20 or the new Time\Clock, or &lt;br&gt;
something else of course), then you can use the adapters to translate &lt;br&gt;
between the different interfaces, while having a single “canonical” &lt;br&gt;
clock as a source of truth.&lt;/p&gt;
&lt;p&gt;If the library doesn't allow injecting a clock right now, then the &lt;br&gt;
introduction of the new interface is no worse than the status quo.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;(Mirco Babin) Every effort, however small, however little, that eases &lt;br&gt;
this migration path for applications, should be provided.&lt;/p&gt;
&lt;p&gt;Also because Packagist &lt;a href="https://packagist.org/packages/psr/clock" rel="nofollow" target="_blank"&gt;https://packagist.org/packages/psr/clock&lt;/a&gt; shows &lt;br&gt;
&lt;em&gt;439 458 545&lt;/em&gt; (439 million) installations of the PSR-20 clock. This is &lt;br&gt;
an &lt;em&gt;impure number&lt;/em&gt;, because it also includes CI/test installations, &lt;br&gt;
and it also includes nesbot/carbon and laravel/framework &lt;br&gt;
installations.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I agree to disagree.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm happy to leave it at “agree to disagree”. I nevertheless thank you &lt;br&gt;
for raising your concern here.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Can the RFC be updated? Under rejected features can something be added &lt;br&gt;
like:&lt;/p&gt;
&lt;p&gt;A hybrid clock, both implementing \Time\Clock from this RFC and the &lt;br&gt;
PSR-20 \Psr\Clock\ClockInterface is rejected. Because ...(reasons)...&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have added a short note to the rejected features section. For the full &lt;br&gt;
reasoning readers can read the mailing list discussion (linked at the &lt;br&gt;
top of the RFC). This also avoids accidentally misrepresenting the &lt;br&gt;
nuance provided in the discussion due to a lack of context.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>1a9eb192354a093e93a39c6f19ef9ddb@bastelstu.be</guid><pubDate>Fri, 09 Oct 2026 12:33:48 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132852</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I understand the concern about type safety. However, the real-world &lt;br&gt;
usage &lt;br&gt;
of &lt;code&gt;filter_var()&lt;/code&gt; is worth considering too. Many use cases only require a &lt;br&gt;
filter ID, without any flags. Sourcegraph search: &lt;br&gt;
&lt;a href="https://sourcegraph.com/search?q=context:global+lang:php+filter_var%5C%28&amp;amp;patternType=regexp&amp;amp;sm=0" rel="nofollow" target="_blank"&gt;https://sourcegraph.com/search?q=context:global+lang:php+filter_var%5C%28&amp;amp;patternType=regexp&amp;amp;sm=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If combined bitmasks are uncommon in practice, a Filter\Flag enum could &lt;br&gt;
still improve the API for individual flags. I agree that we should &lt;br&gt;
weigh &lt;br&gt;
this benefit against the loss of type safety when combining flags.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;An enum would slightly improve the API for the &lt;code&gt;filter_var()&lt;/code&gt; use case &lt;br&gt;
without any flags. But for &lt;code&gt;filter_var_array()&lt;/code&gt; it already would no &lt;br&gt;
longer work and for &lt;code&gt;filter_var()&lt;/code&gt; with flags, it would result in a &lt;br&gt;
weird mixture of a strong enum with “free form” options field.&lt;/p&gt;
&lt;p&gt;I believe that introducing enums right now is not doing enough to &lt;br&gt;
meaningfully improve the developer experience. As an example, if we &lt;br&gt;
already had Tagged Unions (&lt;a href="https://wiki.php.net/rfc/tagged_unions" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/tagged_unions&lt;/a&gt;), the &lt;br&gt;
per-filter options could be provided directly with the union case:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; filter_var($foo, Filter\Int(allowOctal: true, allowHex: true));
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Introducing the enum right now likely would block off that path.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>8fd6f830babd7b839a44439e6ec83750@bastelstu.be</guid><pubDate>Fri, 09 Oct 2026 12:22:17 +0000</pubDate></item><item><title>[RFC] [Discussion] Query Parameter Manipulation Support</title><link>https://externals.io/message/132851</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As I mentioned in a previous email of mine ( &lt;br&gt;
&lt;a href="https://externals.io/message/129486#130077" rel="nofollow" target="_blank"&gt;https://externals.io/message/129486#130077&lt;/a&gt;), &lt;br&gt;
I recently separated the query parameter handling sub-proposal from &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/uri_followup" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/uri_followup&lt;/a&gt; into its own RFC because it was &lt;br&gt;
way &lt;br&gt;
too complex. &lt;br&gt;
Therefore I'm officially opening its discussion.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I've given the RFC a fresh read from scratch after your email &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132810" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132810&lt;/a&gt;. I'm replying to the top &lt;br&gt;
of the thread to reduce the nesting, and because I'm not replying to &lt;br&gt;
anyone or anything in particular. Some collected thoughts roughly in &lt;br&gt;
order they appear in the RFC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;I don't think &lt;code&gt;QueryParamParsingOptions::$maxQueryStringLength&lt;/code&gt; is &lt;br&gt;
necessary or useful to have. Checking the input length is easy to do &lt;br&gt;
manually (it's just a &lt;code&gt;strlen()&lt;/code&gt; call) and I don't see a practical way &lt;br&gt;
to abuse the API with large input lengths alone: The API will not “blow &lt;br&gt;
up” inputs into considerably larger data structures, the input strings &lt;br&gt;
are mostly just “copied” over, not too different from e.g. &lt;br&gt;
&lt;code&gt;str_replace()&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;code&gt;$maxParamCount&lt;/code&gt; on the other hand makes more sense to me, but &lt;br&gt;
even for that the number of “entries” will be at most the input length &lt;br&gt;
(for &lt;code&gt;&amp;amp;&amp;amp;&amp;amp;&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If &lt;code&gt;$maxQueryStringLength&lt;/code&gt; goes away, the &lt;code&gt;QueryParamParsingOptions&lt;/code&gt; &lt;br&gt;
would be a single property object. Maybe the param count limit should &lt;br&gt;
become a regular parameter then, since I can't think of any other useful &lt;br&gt;
parse-time options.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For the &lt;code&gt;QueryParamBuildingOptions&lt;/code&gt; I don't think they should be &lt;br&gt;
passed as parameter to the parsing functions (and thus not be stored as &lt;br&gt;
an object property). Instead they should be passed to the &lt;code&gt;-&amp;gt;to*()&lt;/code&gt; &lt;br&gt;
functions just when they are needed. That keeps the QueryParams class’ &lt;br&gt;
state focused on the actual parameters.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Edit after getting further down the RFC: This choice is explained &lt;br&gt;
further below, because it immediately affects the getters. This makes &lt;br&gt;
sense, but I still believe this is a less than ideal API design. But I &lt;br&gt;
don't have better proposals other than “force the user to make a &lt;br&gt;
decision and only allow passing in &lt;code&gt;string&lt;/code&gt;”. For &lt;code&gt;int&lt;/code&gt; the implicit &lt;br&gt;
conversion to string would just work and making an explicit choice for &lt;br&gt;
&lt;code&gt;bool&lt;/code&gt; is easy enough.&lt;/p&gt;
&lt;ol start="5"&gt;
&lt;li&gt;
&lt;p&gt;Is having a separate &lt;code&gt;parseRfc3986()&lt;/code&gt; useful when RFC 3986 doesn't &lt;br&gt;
specify the handling of query parameters and just delegates to RFC 1866 &lt;br&gt;
instead? A big benefit of the URI extension for me is that it clearly &lt;br&gt;
references the relevant standards in its naming and strictly implements &lt;br&gt;
them, making it easy to discover and allowing the use of primary &lt;br&gt;
references to understand what they are supposed to do. The &lt;br&gt;
&lt;code&gt;parseRfc3986()&lt;/code&gt; method would muddy this straight-forward standard’s &lt;br&gt;
compliant implementation, particularly since it is defined to accept &lt;br&gt;
malformed inputs such as &lt;code&gt;#foo=bar&lt;/code&gt;, which I would find unexpected from &lt;br&gt;
a method referencing RFC 3986 in its name.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Uri::getQueryParams() method on the other hand makes sense to me. &lt;br&gt;
It can use RFC 1866 as an implementation detail after performing the &lt;br&gt;
correct percent decoding.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I cannot describe an actual issue, but I find accepting invalid &lt;br&gt;
percent-encoding sequences to be dangerous. It would definitely be &lt;br&gt;
unexpected that &lt;code&gt;%6f=x' would be &lt;/code&gt;o=x&lt;code&gt;, but &lt;/code&gt;%6g=y&lt;code&gt;would be&lt;/code&gt;%6g=y&lt;code&gt; (which would then become&lt;/code&gt;%256g=y`).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The naming of &lt;code&gt;hasValue()&lt;/code&gt; sounds like it would check if there is a &lt;br&gt;
&lt;code&gt;=&lt;/code&gt; sign for the given key somewhere, not that it would check that there &lt;br&gt;
is a specific key-value pair. I'm also not sure if it is necessary. &lt;br&gt;
Duplicated keys are comparatively rare and for the use cases where this &lt;br&gt;
is a thing, &lt;code&gt;in_array()&lt;/code&gt; on the result of &lt;code&gt;getAll()&lt;/code&gt; would just work (or &lt;br&gt;
&lt;code&gt;array_any()&lt;/code&gt; for more complex checks).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;I'm not sure I like the name &lt;code&gt;-&amp;gt;list()&lt;/code&gt;. Technically it's also &lt;br&gt;
redundant with &lt;code&gt;iterator_to_array($queryParams)&lt;/code&gt;, but having a dedicated &lt;br&gt;
method probably makes sense nevertheless.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Would it make sense to rename &lt;code&gt;parseWhatWg()&lt;/code&gt; to &lt;br&gt;
&lt;code&gt;parseUrlSearchParams()&lt;/code&gt; or similar to make it clear that this &lt;br&gt;
constructor implements the URLSearchParams specification. I'm asking due &lt;br&gt;
to the section that mentioned how &lt;code&gt;$whatWgUrl-&amp;gt;getQuery()&lt;/code&gt; is not the &lt;br&gt;
correct value to pass there (due to the questionmark handling). Renaming &lt;br&gt;
this method would also make sense when removing the RFC 3986 parser (as &lt;br&gt;
suggested in (5)).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Bullet point 8 also applies to &lt;code&gt;deleteValue()&lt;/code&gt;. Is there an actual &lt;br&gt;
use case for this method?&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Is having the &lt;code&gt;withArray()&lt;/code&gt; method useful? It does the same as &lt;br&gt;
&lt;code&gt;QueryParams::fromArray()&lt;/code&gt;, no? It feels confusing to have a “replace &lt;br&gt;
everything” method when one could just create something entirely new. &lt;br&gt;
Technically one could even call &lt;code&gt;$queryParams-&amp;gt;fromArray()&lt;/code&gt;, since &lt;br&gt;
calling static methods on instances is legal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;“doesn't start with a “with” suffix” - that should read “prefix”. &lt;br&gt;
Prefix is “start with”, suffix is “end with”.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The “Backward Incompatible Changes” section should mention that &lt;br&gt;
adding a new class is technically backwards incompatible, but an allowed &lt;br&gt;
break according to policy and that the Uri namespace is reserved for &lt;br&gt;
ext/uri since 8.5.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That's it. It looks like a long list of items, but most of them are &lt;br&gt;
minor concerns and suggestion. Overall I'm super happy with how the RFC &lt;br&gt;
turned out and I believe that giving it the proper attention as a &lt;br&gt;
dedicated RFC was the right choice.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>9eab28878c5504785b6302e38da70853@bastelstu.be</guid><pubDate>Fri, 09 Oct 2026 12:05:00 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132850</link><description>&lt;p&gt;Hi Mirco,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;OWASP states, see &lt;br&gt;
&lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt" rel="nofollow" target="_blank"&gt;https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I looked up the attack discussed there, &amp;quot;password shucking&amp;quot; or &amp;quot;hash shucking&amp;quot;, and as I understand it, it requires &lt;em&gt;the same inner hash&lt;/em&gt; to be used somewhere else, that the attacker can match &lt;em&gt;to that user&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;In the proposed algorithm, that means that somewhere else has passwords stored as HMAC-SHA256(salt, password) and has the same password, &lt;em&gt;and the same salt&lt;/em&gt;, for the same user. Unless I'm missing something, that's staggeringly unlikely.&lt;/p&gt;
&lt;p&gt;To put it another way, the salt in the proposal's HMAC is essentially doing the same thing as the pepper in the OWASP suggestion - making it sufficiently unlikely that an attacker can find the exact inner hash they need somewhere else.&lt;/p&gt;
&lt;p&gt;I also see, in the section above that, that OWASP endorses Sjoerd's original proposal:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;... so you should enforce a maximum password length of 72 bytes&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Even an expert opinion is just an opinion, of course, but it does mean we're going in circles a bit.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Rowan Tommins &lt;br&gt;
[IMSoP]&lt;/p&gt;
</description><guid>BB024A0D-E766-4462-A1EF-F33CBF0F76D7@rwec.co.uk</guid><pubDate>Fri, 09 Oct 2026 11:02:03 +0000</pubDate></item><item><title>[RFC] Throw ValueError for invalid characters in number base functions</title><link>https://externals.io/message/132849</link><description>&lt;p&gt;Hello list,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/throw_error_for_invalid_characters_for_number_base" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/throw_error_for_invalid_characters_for_number_base&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Next Friday (16 October) I will open the vote for this RFC, which proposes to throw an exception for invalid input to base_convert, bindec, octdec, and hexdec.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sjoerd Langkemper&lt;/p&gt;
</description><guid>7c242868-27c8-4bd3-8757-4c18e6815dfb@app.fastmail.com</guid><pubDate>Fri, 09 Oct 2026 10:41:10 +0000</pubDate></item><item><title>[RFC] CSV Extension (ext/csv)</title><link>https://externals.io/message/132848</link><description>&lt;p&gt;Hi, &lt;br&gt;
Thanks for the feedback! Both are good points.&lt;/p&gt;
&lt;p&gt;On streams/resources: &lt;br&gt;
I agree that supporting already-open streams would be a valuable addition, &lt;br&gt;
particularly for reading. For writing, it is already possible to stream &lt;br&gt;
rows individually without buffering the entire collection:&lt;/p&gt;
&lt;p&gt;foreach ($rows as $row) { &lt;br&gt;
fwrite($stream, Csv\array_to_row($row)); &lt;br&gt;
}&lt;/p&gt;
&lt;p&gt;However, a dedicated collection_to_stream() would provide a more convenient &lt;br&gt;
API, consistent row-width validation, and symmetry with the existing &lt;br&gt;
file-based function. For reading, the gap is more significant. Splitting a &lt;br&gt;
stream into lines and passing them to row_to_array() is not reliable &lt;br&gt;
because enclosed CSV fields may contain line breaks. The parser used by &lt;br&gt;
createFromFile() already operates on PHP streams internally, so exposing &lt;br&gt;
this functionality for existing stream resources should be relatively &lt;br&gt;
straightforward. I'm considering two additional entry points:&lt;/p&gt;
&lt;p&gt;Csv\collection_to_stream($stream, iterable $collection, ...): void &lt;br&gt;
Csv\LazyLaxCollection::createFromStream($stream, ...): LazyLaxCollection&lt;/p&gt;
&lt;p&gt;I would prefer separate entry points rather than overloading the existing &lt;br&gt;
$file parameter to accept both paths and resources. Since PHP does not &lt;br&gt;
support resource as a declared parameter type, the stream parameter would &lt;br&gt;
be untyped, documented as @param resource, and validated at runtime, with &lt;br&gt;
invalid arguments resulting in a TypeError.&lt;/p&gt;
&lt;p&gt;The intended semantics for createFromStream() would be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Parsing starts at the stream's current position, allowing callers to skip &lt;br&gt;
a BOM or preamble beforehand.&lt;/li&gt;
&lt;li&gt;The extension borrows the stream and never closes it.&lt;/li&gt;
&lt;li&gt;Repeated iteration seeks back to the position recorded when the &lt;br&gt;
collection was created. Non-seekable streams support only a single &lt;br&gt;
iteration.&lt;/li&gt;
&lt;li&gt;If the caller closes the stream during iteration, subsequent reads should &lt;br&gt;
throw an error rather than access freed memory.&lt;/li&gt;
&lt;li&gt;Since the parser reads ahead in chunks, the underlying stream's position &lt;br&gt;
after partial iteration is not guaranteed to match the end of the last &lt;br&gt;
returned row. Mixing reads from the collection with direct reads from the &lt;br&gt;
same stream would therefore not be supported. &lt;br&gt;
Would these semantics work for your use cases, particularly the read-ahead &lt;br&gt;
behavior and separate entry points?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On LazyLaxCollection:&lt;/p&gt;
&lt;p&gt;&amp;quot;Lax&amp;quot; means that rows are not required to contain the same number of &lt;br&gt;
fields. This mirrors the distinction between buffer_to_collection(), which &lt;br&gt;
throws a ValueError when row widths differ, and buffer_to_collection_lax(), &lt;br&gt;
which accepts rows of varying widths. The name comes from the original &lt;br&gt;
girgias/csv implementation by Gina Peter Banyard. To make this behavior &lt;br&gt;
explicit, I've also added a dedicated PHPT test: &lt;br&gt;
ext/csv/tests/LazyCollection/fromBuffer/lax_varying_field_count.phpt. The &lt;br&gt;
test verifies that LazyLaxCollection::createFromBuffer() accepts &lt;br&gt;
consecutive rows containing 3, 1, 2, and 4 fields, while &lt;br&gt;
buffer_to_collection() throws a ValueError for the same input. Naming is &lt;br&gt;
already listed as an open issue in the RFC, along with whether a strict &lt;br&gt;
lazy variant should be included. Your question reinforces that the current &lt;br&gt;
name may not communicate its purpose clearly enough. I'd welcome &lt;br&gt;
suggestions here. For example, LazyCollection with configurable strictness &lt;br&gt;
could be worth considering. I'll update the RFC once we've had a chance to &lt;br&gt;
discuss the API details.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;On Fri, Oct 9, 2026 at 8:22 AM Damian Jóźwiak &amp;lt; &lt;br&gt;
&lt;a href="mailto:damian.jozwiak.lodz@gmail.com" rel="nofollow" target="_blank"&gt;damian.jozwiak.lodz@gmail.com&lt;/a&gt;&amp;gt; wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to open the discussion on an RFC proposing a dedicated CSV &lt;br&gt;
extension (ext/csv) for PHP core.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/csv_extension" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/csv_extension&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementation: &lt;a href="https://github.com/php/php-src/pull/24199" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal builds upon Gina Peter Banyard's girgias/csv extension &lt;br&gt;
(BSD-3-Clause), with additional functionality for file and stream handling.&lt;/p&gt;
&lt;p&gt;The motivation includes the deprecation of the SplFileObject CSV methods &lt;br&gt;
in PHP 8.6, which leaves certain use cases without a direct replacement.&lt;/p&gt;
&lt;p&gt;The proposed extension provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Six functions and one class in the Csv\ namespace.&lt;/h2&gt;
&lt;h2&gt;RFC 4180-compatible parsing and serialization by default.&lt;/h2&gt;
&lt;h2&gt;Locale-independent processing without the proprietary escape &lt;br&gt;
mechanism.&lt;/h2&gt;
&lt;h2&gt;Multibyte delimiters, enclosures, and EOL sequences.&lt;/h2&gt;
&lt;h2&gt;Strict and lax collection parsing.&lt;/h2&gt;
&lt;p&gt;Lazy iteration over CSV files and streaming output.&lt;/p&gt;
&lt;p&gt;The implementation includes PHPT tests covering parsing, serialization, &lt;br&gt;
stream handling, resource lifetime, and various edge cases.&lt;/p&gt;
&lt;p&gt;The pull request's CI checks are currently passing across the tested &lt;br&gt;
platforms, including debug, ZTS, and AddressSanitizer configurations.&lt;/p&gt;
&lt;p&gt;The initial API is deliberately kept small. A more comprehensive &lt;br&gt;
object-oriented Reader/Writer API, including capability-oriented &lt;br&gt;
interfaces, is left for potential future discussion.&lt;/p&gt;
&lt;p&gt;I'd particularly appreciate feedback on the public API design, the naming &lt;br&gt;
of LazyLaxCollection, and whether the extension should be always enabled &lt;br&gt;
or optional at build time.&lt;/p&gt;
&lt;p&gt;For transparency, Gina has not reviewed or endorsed this RFC. Parts of &lt;br&gt;
the implementation were developed with LLM assistance; I have reviewed the &lt;br&gt;
code and take full responsibility for the contribution.&lt;/p&gt;
&lt;p&gt;This is an invitation for discussion, not a call for votes.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your feedback.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I see that there's no support for open streams/resources, would that be &lt;br&gt;
something worth adding? I don't want to have to write things to a file &lt;br&gt;
before I can start processing them if I already have an open stream. Same &lt;br&gt;
goes for reading, I don't want to have to read everything before passing it &lt;br&gt;
somewhere, often having it as a resource is more useful to me.&lt;/p&gt;
&lt;p&gt;About LazyLaxCollection, what does Lax mean here?&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>CA+WT9YZOsFZ2BWRm+aO=tpxjgJAAG8uUPTOMHF1ZJxX1dozizw@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 08:59:48 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132847</link><description>&lt;p&gt;Thanks for the feedback!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Enums are strongly typed values by themselves. Requiring the use of a / &lt;br&gt;
the backing value for some functionality (in this case: Passing multiple &lt;br&gt;
options as a bitmask) is an abuse of enums, nullifies the type safety &lt;br&gt;
and makes them “fancy constants” in practice.&lt;/p&gt;
&lt;p&gt;With regarding to the “formal parts” of the RFC, I'm noting that the &lt;br&gt;
“Voting Choices” section is unchanged from the template. In particular, &lt;br&gt;
the voting widget's title needs to be updated.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I understand the concern about type safety. However, the real-world usage &lt;br&gt;
of &lt;code&gt;filter_var()&lt;/code&gt; is worth considering too. Many use cases only require a &lt;br&gt;
filter ID, without any flags. Sourcegraph search: &lt;br&gt;
&lt;a href="https://sourcegraph.com/search?q=context:global+lang:php+filter_var%5C%28&amp;amp;patternType=regexp&amp;amp;sm=0" rel="nofollow" target="_blank"&gt;https://sourcegraph.com/search?q=context:global+lang:php+filter_var%5C%28&amp;amp;patternType=regexp&amp;amp;sm=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If combined bitmasks are uncommon in practice, a Filter\Flag enum could &lt;br&gt;
still improve the API for individual flags. I agree that we should weigh &lt;br&gt;
this benefit against the loss of type safety when combining flags.&lt;/p&gt;
&lt;p&gt;I’ve updated the “Voting Choices” section. &lt;br&gt;
Best regards &lt;br&gt;
Muhammed Arshid&lt;/p&gt;
</description><guid>CAO3baw=dxL2w-fTpFTV78wEwm29_uRMF0qGuAhpjCSzTaQYX8Q@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 08:21:21 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132846</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The proposal now focuses on adding Filter\Filter and Filter\Flag enums &lt;br&gt;
to &lt;br&gt;
the Filter extension.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/invalid_filter_options" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/invalid_filter_options&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Enums are strongly typed values by themselves. Requiring the use of a / &lt;br&gt;
the backing value for some functionality (in this case: Passing multiple &lt;br&gt;
options as a bitmask) is an abuse of enums, nullifies the type safety &lt;br&gt;
and makes them “fancy constants” in practice.&lt;/p&gt;
&lt;p&gt;With regarding to the “formal parts” of the RFC, I'm noting that the &lt;br&gt;
“Voting Choices” section is unchanged from the template. In particular, &lt;br&gt;
the voting widget's title needs to be updated.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>ccdfab77d42bc566a83f54d7d35a1dcf@bastelstu.be</guid><pubDate>Fri, 09 Oct 2026 07:34:57 +0000</pubDate></item><item><title>[RFC] CSV Extension (ext/csv)</title><link>https://externals.io/message/132845</link><description>&lt;p&gt;On Fri, Oct 9, 2026 at 8:22 AM Damian Jóźwiak &lt;a href="mailto:damian.jozwiak.lodz@gmail.com"&gt;damian.jozwiak.lodz@gmail.com&lt;/a&gt; &lt;br&gt;
wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to open the discussion on an RFC proposing a dedicated CSV &lt;br&gt;
extension (ext/csv) for PHP core.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/csv_extension" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/csv_extension&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementation: &lt;a href="https://github.com/php/php-src/pull/24199" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal builds upon Gina Peter Banyard's girgias/csv extension &lt;br&gt;
(BSD-3-Clause), with additional functionality for file and stream handling.&lt;/p&gt;
&lt;p&gt;The motivation includes the deprecation of the SplFileObject CSV methods &lt;br&gt;
in PHP 8.6, which leaves certain use cases without a direct replacement.&lt;/p&gt;
&lt;p&gt;The proposed extension provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Six functions and one class in the Csv\ namespace.&lt;/h2&gt;
&lt;h2&gt;RFC 4180-compatible parsing and serialization by default.&lt;/h2&gt;
&lt;h2&gt;Locale-independent processing without the proprietary escape mechanism.&lt;/h2&gt;
&lt;h2&gt;Multibyte delimiters, enclosures, and EOL sequences.&lt;/h2&gt;
&lt;h2&gt;Strict and lax collection parsing.&lt;/h2&gt;
&lt;p&gt;Lazy iteration over CSV files and streaming output.&lt;/p&gt;
&lt;p&gt;The implementation includes PHPT tests covering parsing, serialization, &lt;br&gt;
stream handling, resource lifetime, and various edge cases.&lt;/p&gt;
&lt;p&gt;The pull request's CI checks are currently passing across the tested &lt;br&gt;
platforms, including debug, ZTS, and AddressSanitizer configurations.&lt;/p&gt;
&lt;p&gt;The initial API is deliberately kept small. A more comprehensive &lt;br&gt;
object-oriented Reader/Writer API, including capability-oriented &lt;br&gt;
interfaces, is left for potential future discussion.&lt;/p&gt;
&lt;p&gt;I'd particularly appreciate feedback on the public API design, the naming &lt;br&gt;
of LazyLaxCollection, and whether the extension should be always enabled &lt;br&gt;
or optional at build time.&lt;/p&gt;
&lt;p&gt;For transparency, Gina has not reviewed or endorsed this RFC. Parts of the &lt;br&gt;
implementation were developed with LLM assistance; I have reviewed the code &lt;br&gt;
and take full responsibility for the contribution.&lt;/p&gt;
&lt;p&gt;This is an invitation for discussion, not a call for votes.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your feedback.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I see that there's no support for open streams/resources, would that be &lt;br&gt;
something worth adding? I don't want to have to write things to a file &lt;br&gt;
before I can start processing them if I already have an open stream. Same &lt;br&gt;
goes for reading, I don't want to have to read everything before passing it &lt;br&gt;
somewhere, often having it as a resource is more useful to me.&lt;/p&gt;
&lt;p&gt;About LazyLaxCollection, what does Lax mean here?&lt;/p&gt;
</description><guid>CANS-=pfKEzpFKhLyeQhDNyXPftr0XG4Q3B8bz2Y9KZjfHVY5GQ@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 07:03:03 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132844</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;On 7.10.2026 12:45 CEST Tim Düsterhus &lt;a href="mailto:tim@bastelstu.be"&gt;tim@bastelstu.be&lt;/a&gt; wrote:&lt;/p&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I think the following points still need some discussion. Some of &lt;br&gt;
them may overlap with things others have already raised in this thread. &lt;br&gt;
Rather than replying to each of those messages separately, I've &lt;br&gt;
collected &lt;br&gt;
everything in this one mail and mention who brought a point up where it &lt;br&gt;
applies.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for the review. Derick and I already discussed some, but not &lt;br&gt;
all of the points. For now I'll just reply to those that are resolved to &lt;br&gt;
get them out of the way.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Configurable clock resolution&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I'd like a way to configure the resolution, &lt;br&gt;
e.g. a SystemClock that only ever returns whole seconds. Many consumers &lt;br&gt;
(JWT iat/exp, HTTP dates, database columns) never want fractions. &lt;br&gt;
A clock configured that way guarantees whole seconds to every consumer &lt;br&gt;
it is injected into, instead of each consumer having to truncate on its &lt;br&gt;
own. It also makes test expectations simpler, because the values never &lt;br&gt;
carry &lt;br&gt;
fractions.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We believe this is the job of a “Clock decorator”, e.g. &lt;code&gt;CoarseClock&lt;/code&gt; &lt;br&gt;
that takes in some clock and appropriately rounds or truncates the &lt;br&gt;
Instant to the desired precision. Such a decorator would automatically &lt;br&gt;
be compatible with any type of clock (e.g. a &lt;code&gt;FrozenClock&lt;/code&gt; for testing).&lt;/p&gt;
&lt;p&gt;As with the testing clocks, we consider a &lt;code&gt;CoarseClock&lt;/code&gt; out of scope for &lt;br&gt;
this RFC. With a possible future &lt;code&gt;truncateTo()&lt;/code&gt; that I already mentioned &lt;br&gt;
elsewhere in the discussion, a userland implementation would become &lt;br&gt;
trivial for the use cases where a coarser clock is required.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Fine by me to keep it out of scope for this RFC. For a future RFC, though, I'd prefer a built-in CoarseSystemClock over a generic decorator. A decorator always has to read the precise clock first and only then truncates, so it can never be cheaper than the clock it wraps. A built-in system clock configured for second (or millisecond) resolution could read a coarse clock source directly instead, such as CLOCK_REALTIME_COARSE on Linux.&lt;/p&gt;
&lt;p&gt;On Linux arm64 I measured:&lt;/p&gt;
&lt;p&gt;clock_gettime(CLOCK_REALTIME)          13.3 ns &lt;br&gt;
clock_gettime(CLOCK_REALTIME_COARSE)    3.3 ns&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;ol start="9"&gt;
&lt;li&gt;getNanoseconds()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It isn't obvious whether this returns the nanoseconds since epoch or &lt;br&gt;
the &lt;br&gt;
nanoseconds within the current second. getNanoOfSecond() (Java's &lt;br&gt;
NANO_OF_SECOND) would remove that ambiguity.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We believe that with the renaming of the “Unix timestamp” converter to &lt;br&gt;
use the &lt;code&gt;to&lt;/code&gt; prefix and the lack of “Unix” in the name of &lt;br&gt;
&lt;code&gt;getNanoseconds()&lt;/code&gt; the naming is clear enough. It is also easy to see &lt;br&gt;
that the result of &lt;code&gt;getNanoseconds()&lt;/code&gt; can't be the number of nanoseconds &lt;br&gt;
elapsed since the Unix epoch, because the value is guaranteed to be less &lt;br&gt;
than 1_000_000_000 (i.e. less than 1 second). Using &lt;code&gt;nanoseconds&lt;/code&gt; as the &lt;br&gt;
fractional part is consistent with &lt;code&gt;Duration::$nanoseconds&lt;/code&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm not convinced yet&lt;/p&gt;
&lt;p&gt;The value range is only &amp;quot;easy to see&amp;quot; after reading the documentation. The name alone should tell you what you get. Within the same class, the plural unit is used as a unit marker: toUnixTimestampMilliseconds() is &amp;quot;the timestamp in milliseconds&amp;quot;. Read the same way, getNanoseconds() is &amp;quot;&amp;lt;something&amp;gt; in nanoseconds&amp;quot;, and the only &amp;lt;something&amp;gt; an Instant has is its position on the timeline.&lt;/p&gt;
&lt;p&gt;Duration is the wrong reference. A Duration is an amount, so &amp;quot;N nanoseconds&amp;quot; is correct there. An Instant is a point in time, and its sub-second part is a position within the second, not an amount. PEven the current DateTime* API already makes this distinction, using singular names:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; DateTime::getMicrosecond(): int
 DateTime::setMicrosecond(int $microsecond)
 DateTime::setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;while the plural is used for amounts:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; Duration::fromMicroseconds(int $microseconds)
 Duration::fromMilliseconds(int $milliseconds)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;getNanoOfSecond() removes the ambiguity entirely, at the cost of a few characters. If that's too far from the existing naming, getNanosecond() would at least match DateTime::getMicrosecond().&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;For completeness I'd like to note that the epoch of the Instant is &lt;br&gt;
intentionally left unspecified and that the Unix epoch is just one of &lt;br&gt;
several possible epochs.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Agreed, and that's exactly the point I made about &amp;quot;follows POSIX time&amp;quot;: if &lt;br&gt;
the epoch and the representation are unspecified, the class definition &lt;br&gt;
shouldn't state that Instants follow POSIX time. That belongs to the Unix &lt;br&gt;
timestamp conversion methods.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Marc&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>1159150011.964847.1791526833768@app.mailbox.org</guid><pubDate>Fri, 09 Oct 2026 06:20:33 +0000</pubDate></item><item><title>[RFC] CSV Extension (ext/csv)</title><link>https://externals.io/message/132843</link><description>&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to open the discussion on an RFC proposing a dedicated CSV &lt;br&gt;
extension (ext/csv) for PHP core.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/csv_extension" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/csv_extension&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Implementation: &lt;a href="https://github.com/php/php-src/pull/24199" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24199&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal builds upon Gina Peter Banyard's girgias/csv extension &lt;br&gt;
(BSD-3-Clause), with additional functionality for file and stream handling.&lt;/p&gt;
&lt;p&gt;The motivation includes the deprecation of the SplFileObject CSV methods in &lt;br&gt;
PHP 8.6, which leaves certain use cases without a direct replacement.&lt;/p&gt;
&lt;p&gt;The proposed extension provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Six functions and one class in the Csv\ namespace.&lt;/h2&gt;
&lt;h2&gt;RFC 4180-compatible parsing and serialization by default.&lt;/h2&gt;
&lt;h2&gt;Locale-independent processing without the proprietary escape mechanism.&lt;/h2&gt;
&lt;h2&gt;Multibyte delimiters, enclosures, and EOL sequences.&lt;/h2&gt;
&lt;h2&gt;Strict and lax collection parsing.&lt;/h2&gt;
&lt;p&gt;Lazy iteration over CSV files and streaming output.&lt;/p&gt;
&lt;p&gt;The implementation includes PHPT tests covering parsing, serialization, &lt;br&gt;
stream handling, resource lifetime, and various edge cases.&lt;/p&gt;
&lt;p&gt;The pull request's CI checks are currently passing across the tested &lt;br&gt;
platforms, including debug, ZTS, and AddressSanitizer configurations.&lt;/p&gt;
&lt;p&gt;The initial API is deliberately kept small. A more comprehensive &lt;br&gt;
object-oriented Reader/Writer API, including capability-oriented &lt;br&gt;
interfaces, is left for potential future discussion.&lt;/p&gt;
&lt;p&gt;I'd particularly appreciate feedback on the public API design, the naming &lt;br&gt;
of LazyLaxCollection, and whether the extension should be always enabled or &lt;br&gt;
optional at build time.&lt;/p&gt;
&lt;p&gt;For transparency, Gina has not reviewed or endorsed this RFC. Parts of the &lt;br&gt;
implementation were developed with LLM assistance; I have reviewed the code &lt;br&gt;
and take full responsibility for the contribution.&lt;/p&gt;
&lt;p&gt;This is an invitation for discussion, not a call for votes.&lt;/p&gt;
&lt;p&gt;Thanks in advance for your feedback.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
</description><guid>CA+WT9Ybh6ppz72+=7AKCdMhTBMz6=nDQ1427CURquhYye6EJ=g@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 06:19:38 +0000</pubDate></item><item><title>[Meta] This Week In PHP Internals | October 8, 2026</title><link>https://externals.io/message/132842</link><description>&lt;p&gt;Hi Contributors,&lt;/p&gt;
&lt;p&gt;This week's episode is out. Here's the video, plus everywhere else it landed &lt;br&gt;
for visibility.&lt;/p&gt;
&lt;p&gt;Same invitation as always: if I got something wrong, reply in this thread and &lt;br&gt;
I'll make corrections. That includes how I'm pronouncing your names.&lt;/p&gt;
&lt;p&gt;If you'd rather read than watch, the &lt;a href="http://dev.to" rel="nofollow" target="_blank"&gt;dev.to&lt;/a&gt; post carries the full episode as &lt;br&gt;
an article, which also makes it the easiest version to quote when correcting &lt;br&gt;
me: &lt;a href="https://dev.to/projektgopher/this-week-in-php-internals-oct-8-2026-18d0" rel="nofollow" target="_blank"&gt;https://dev.to/projektgopher/this-week-in-php-internals-oct-8-2026-18d0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;youtube &lt;a href="https://youtu.be/HHhoh-7H37A" rel="nofollow" target="_blank"&gt;https://youtu.be/HHhoh-7H37A&lt;/a&gt; &lt;br&gt;
r/php &lt;a href="https://www.reddit.com/r/PHP/comments/1x183js/this_week_in_php_internals_oct_8_2026/" rel="nofollow" target="_blank"&gt;https://www.reddit.com/r/PHP/comments/1x183js/this_week_in_php_internals_oct_8_2026/&lt;/a&gt; &lt;br&gt;
r/symfony &lt;a href="https://www.reddit.com/r/symfony/comments/1x184tw/this_week_in_php_internals_oct_8_2026/" rel="nofollow" target="_blank"&gt;https://www.reddit.com/r/symfony/comments/1x184tw/this_week_in_php_internals_oct_8_2026/&lt;/a&gt; &lt;br&gt;
r/laravel &lt;a href="https://www.reddit.com/r/laravel/comments/1x187jy/this_week_in_php_internals_oct_8_2026/" rel="nofollow" target="_blank"&gt;https://www.reddit.com/r/laravel/comments/1x187jy/this_week_in_php_internals_oct_8_2026/&lt;/a&gt; &lt;br&gt;
&lt;a href="http://dev.to" rel="nofollow" target="_blank"&gt;dev.to&lt;/a&gt; &lt;a href="https://dev.to/projektgopher/this-week-in-php-internals-oct-8-2026-18d0" rel="nofollow" target="_blank"&gt;https://dev.to/projektgopher/this-week-in-php-internals-oct-8-2026-18d0&lt;/a&gt; &lt;br&gt;
mastodon &lt;a href="https://phpc.social/@ProjektGopher/117408466132286649" rel="nofollow" target="_blank"&gt;https://phpc.social/@ProjektGopher/117408466132286649&lt;/a&gt; &lt;br&gt;
threads &lt;a href="https://www.threads.com/@projektgopher/post/DeQY1f-ERsu" rel="nofollow" target="_blank"&gt;https://www.threads.com/@projektgopher/post/DeQY1f-ERsu&lt;/a&gt; &lt;br&gt;
bsky &lt;a href="https://bsky.app/profile/projektgopher.com/post/3mxfumhxc6p2f" rel="nofollow" target="_blank"&gt;https://bsky.app/profile/projektgopher.com/post/3mxfumhxc6p2f&lt;/a&gt; &lt;br&gt;
twitter &lt;a href="https://x.com/ProjektGopher/status/2108370959107596360" rel="nofollow" target="_blank"&gt;https://x.com/ProjektGopher/status/2108370959107596360&lt;/a&gt; &lt;br&gt;
linkedin &lt;a href="https://www.linkedin.com/feed/update/urn:li:activity:7514140013429755904/" rel="nofollow" target="_blank"&gt;https://www.linkedin.com/feed/update/urn:li:activity:7514140013429755904/&lt;/a&gt; &lt;br&gt;
pinkary &lt;a href="https://pinkary.com/@ProjektGopher/questions/01a11e67-e98a-70d1-a607-d46bb2092fb2" rel="nofollow" target="_blank"&gt;https://pinkary.com/@ProjektGopher/questions/01a11e67-e98a-70d1-a607-d46bb2092fb2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers, &lt;br&gt;
Len&lt;/p&gt;
</description><guid>CAEwAiAEKMGbxMt+J8FAO_83A6N89Oiho0SyDa_x8xgGHaeLZ5w@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 02:25:58 +0000</pubDate></item><item><title>PHP 8.5.12RC1 available for testing</title><link>https://externals.io/message/132841</link><description>&lt;p&gt;PHP 8.5.12RC1 has just been released and may be downloaded from &lt;br&gt;
&lt;a href="https://downloads.php.net/~daniels/" rel="nofollow" target="_blank"&gt;https://downloads.php.net/~daniels/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or use the git tag: php-8.5.12RC1&lt;/p&gt;
&lt;p&gt;Windows binaries are available at: &lt;br&gt;
&lt;a href="https://www.php.net/pre-release-builds.php#windows" rel="nofollow" target="_blank"&gt;https://www.php.net/pre-release-builds.php#windows&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please test it carefully, and report any bugs at &lt;br&gt;
&lt;a href="https://github.com/php/php-src/issues" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/issues&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;8.5.12 should be expected in 2 weeks, i.e. on the 22 October 2026.&lt;/p&gt;
&lt;p&gt;Hash values and PGP signatures can be found below or at &lt;br&gt;
&lt;a href="https://gist.github.com/DanielEScherzer/1bbe642c36a66b5ead50244d9054df71" rel="nofollow" target="_blank"&gt;https://gist.github.com/DanielEScherzer/1bbe642c36a66b5ead50244d9054df71&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you, and happy testing!&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Daniel Scherzer, Volker Dusch, and Pierrick Charron&lt;/p&gt;
&lt;p&gt;php-8.5.12RC1.tar.bz2 &lt;br&gt;
SHA256 hash: &lt;br&gt;
64d8ebe6d9b67da88ea16b2f500fe59779f1ac8f1438a34165965f0aa867b38e &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCAAdFiEE2VwDvHAr6VFTRK4zdORLyQZ3AaUFAmrFguwACgkQdORLyQZ3 &lt;br&gt;
AaWSKRAArtu3KZ0duMGJg3i3+WddU+Yvt+e2NSZXUYmFJTkb9xMSXiqiXe/qms4D &lt;br&gt;
Ts2yG6z6SZmA5U9A+56+bW1Y8HMWI9E8fFvNWQRnVVl2gfNhOLBf8tEHLgOQbQVk &lt;br&gt;
ln1398lnYpsCnVpVaktvCyxTZ7mtxjcvG0F1XrdIplHm0+2FX5xBimAEKSr8Lszr &lt;br&gt;
acIgdTirjbaFZh89eOC6pQShKNIaTNofXKlbTaWUKoNMBtS/hCeMJ/een7mpl2St &lt;br&gt;
prktLjAtyuJi84pEziLVg/VKsZoiR8g8wX1feufbGKvGgf/oAvXcJgF7LZA4JQGh &lt;br&gt;
JT22Oem0Os7OUyCgxjoZYQbHuhrL8W6Y1BknreuxBsCXrPT85r+RAT86BF4wkgQs &lt;br&gt;
/00VUhb8PRamJ329pqjcU/LOIRaaGVKg8FONEZd6qn98U2npiTSLIdXj4j7aR9Tq &lt;br&gt;
fkhhFM20Ae2PNcTN3wz8kmDOqKIju01zB8LQtPiqPRZubjNUEl35ZKubKR56hWLW &lt;br&gt;
oEbxPgMhUz71GQ1j6rpzHzPc/pXrBvb6HxzeELKuAXsvgWZ6qGTBtPbi3SnrBFJ2 &lt;br&gt;
m7uDkmNKOCvyXox8hbAbzUCajLuFkVltS5yDUYG1ThYWHV823dhz4DuFjS3hhEV8 &lt;br&gt;
YM1cou3vmyslBh58j+7ZkSM/c0/gNlyLuvOfKaMrRL4KCFCAEpE= &lt;br&gt;
=3rvF &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.5.12RC1.tar.gz &lt;br&gt;
SHA256 hash: &lt;br&gt;
b0156e0075547d9f19b5e5ccf25edc9ae310f068608dde2521f422927ac4d65e &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCAAdFiEE2VwDvHAr6VFTRK4zdORLyQZ3AaUFAmrFgvUACgkQdORLyQZ3 &lt;br&gt;
AaVOEQ/+I5W02RCWgiOD1VBJq+ZkQMr0DgGL7Eh+OdcWJUwJdNOrAGk23BHYvOW5 &lt;br&gt;
Xk+arlvA8vydSjnAo6L59bcuX6wmTSdRTQKmzTCe5+DoRBGrYgZdmjaEGdhmhAeS &lt;br&gt;
IbYu1J6rNDyJXQRKlYQ55Yu3k0ohgOtCDvCQ+QhvLq7LcoUuT9/D8s8+TBOgCtSH &lt;br&gt;
5zS6iAm1R+liivfvWs5FPLnRtVA7pkrD/cyTP2nYg4w3JrNHcIOSUzO2zL+Xto8W &lt;br&gt;
QDOBDtOMNltb6pbz2QjnCfOL5acilo6ykz7BXo+JbA60Xjnle8rY1igNJs4e2P7n &lt;br&gt;
yQBBLbUexYfEKDWjjXnVcxuo+WDbo4QNXxlolYBPtQUj4FLTDTaUIyrWlOGnjJkb &lt;br&gt;
Bsix2C+UPJsQMe2WiamTkFgAfUt5NDK7u136dPkL8ea1Is9rIbc4kZUQmV+rXas4 &lt;br&gt;
wQ9Jnup9tyXA15CEZAE2F90nF/+rZ8E6kaHwAyELbcvB/nVR2Danfaq5WPKa/wvJ &lt;br&gt;
oTqTGkgKybKnZEiUxxa96hebmWnEQVfMLOyB0b+brUHePzDvRxHuxCc9iGlpFL3b &lt;br&gt;
n+7IHHBUTjPWGSmlAU2kkTZuTcBXRv67gboj4s83IvaquqsYBb3/vV/nKJkDOhVX &lt;br&gt;
i8zicJHvbJr8fBZ4JWpv2fz6dv//WQzQ/HBq+8JKuoC4AIZ/dO0= &lt;br&gt;
=acou &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.5.12RC1.tar.xz &lt;br&gt;
SHA256 hash: &lt;br&gt;
29875d03efc8d9b42ad8a6faeda7616ad0771af83737695f70cf59afbae99168 &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCAAdFiEE2VwDvHAr6VFTRK4zdORLyQZ3AaUFAmrFgvUACgkQdORLyQZ3 &lt;br&gt;
AaVE4RAAyewfTkEl+s0IecHvdEr/T7P6+fwu1FnMk+7ptqOaOZuByw7lKmpkTDzR &lt;br&gt;
ol6s+w8GpXOofS2XgCExLzEr6j8J8auCYey70IqR5ZI4oEVKYVTGV/7uj/uLxK8J &lt;br&gt;
cJgmWdQzXXGNj2g37lJVZuWCX9gbudN/LA+6gZAQDEaeIhlL0MHM3gUWh5GTJX80 &lt;br&gt;
y2L/MJvSfa+e3v0saQjkeFSyQB92cMoTo+BHCB7YfPLLG+HdN+bFxYwfHWLqVdok &lt;br&gt;
0942sLXzaSAq2fanKJhFN4azOka4PjDPO/Wq3JyWSqxYoDcLBOlA+ZS3a9tgfUJ0 &lt;br&gt;
GvVw5X3g8s3zT2ptVbZcaLRXFM7NCFV5rtEE0t4Q2E5eCB47CGaV3dSrUPTtnxzQ &lt;br&gt;
ViM9YiqdnX1zIB3BLTwCx+1f+9fL8voI6odOGH+M8+M5dZkojRmVDVpvrTr8t7jS &lt;br&gt;
2PXJFjvFOuPQ+xToxkrYgI+tQroAD5/Yw8EfEbf0j8wVM2Db2U8tlwTF6evTP3bW &lt;br&gt;
MCfGZDidYkfAyKqs6RDcQT+2MSgYa3m32UEzGzIFxu7K9WROxmIRipyvQpopb6FS &lt;br&gt;
Vqs1mEYIwLl8dXCSkwPB14ktl4JWPg1OatXv9irmkX6M6xX42PmH+QXS8zastWIG &lt;br&gt;
T44rg1KU9N6IM+xYBdeA21jndnwR/02zLSLHgKSUlGLHcntQQIk= &lt;br&gt;
=Indp &lt;br&gt;
-----END PGP SIGNATURE&lt;/p&gt;
</description><guid>CALaXqqTLXCF4vtiRPT0McGBwAN4AEK5fpGKchDP7sbFkfdpNDw@mail.gmail.com</guid><pubDate>Fri, 09 Oct 2026 00:59:05 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132840</link><description>&lt;p&gt;Hi Sjoerd,&lt;/p&gt;
&lt;p&gt;On Thu, Oct 8, 2026 at 9:37 PM Sjoerd Langkemper &lt;a href="mailto:sjoerd-php@linuxonly.nl"&gt;sjoerd-php@linuxonly.nl&lt;/a&gt; &lt;br&gt;
wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi Mirco Babin,&lt;/p&gt;
&lt;p&gt;Passlib is not a trusted source for security related issues. &lt;br&gt;
Why is something proposed that goes &lt;em&gt;against OWASP&lt;/em&gt; recommendations? &lt;br&gt;
Is interoperability with other systems considered?&lt;/p&gt;
&lt;p&gt;Thank you for your feedback. Do you have a suggestion for a password hash &lt;br&gt;
that is specified by a recognized organization and has better &lt;br&gt;
interoperability with other systems?&lt;/p&gt;
&lt;p&gt;I considered PBKDF2; it is widely supported and standardized by NIST, but &lt;br&gt;
it is generally seen as less secure than bcrypt. Would you prefer this, &lt;br&gt;
even if it is less resistant to offline cracking attacks?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You seem too eager to deliver on this, having vibe-coded the bcrypt-sha256 &lt;br&gt;
PR just a day after the idea was thrown in, and now asking for other &lt;br&gt;
suggestions after first pushback.&lt;/p&gt;
&lt;p&gt;These aren't good foundations for a major security feature, which will &lt;br&gt;
reflect poorly on it even if you stumble upon the best possible solution.&lt;/p&gt;
&lt;p&gt;I've been working on an alternative for weeks already and hope to be able &lt;br&gt;
to put it up soon. Have a small blocker outside of my hands that may take &lt;br&gt;
another week or two. &lt;br&gt;
Please allow me some time before rushing in with another RFC.&lt;/p&gt;
&lt;p&gt;Cheers, &lt;br&gt;
Andrey.&lt;/p&gt;
</description><guid>CAPhkiZx37B+qeAYzykTiYcUk7FTYcoAQSRix7P7KAmUG-rqYQA@mail.gmail.com</guid><pubDate>Thu, 08 Oct 2026 21:03:13 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132839</link><description>&lt;p&gt;Hi Mirco Babin,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Passlib is not a trusted source for security related issues. &lt;br&gt;
Why is something proposed that goes &lt;em&gt;against OWASP&lt;/em&gt; recommendations? &lt;br&gt;
Is interoperability with other systems considered?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for your feedback. Do you have a suggestion for a password hash that is specified by a recognized organization and has better interoperability with other systems?&lt;/p&gt;
&lt;p&gt;I considered PBKDF2; it is widely supported and standardized by NIST, but it is generally seen as less secure than bcrypt. Would you prefer this, even if it is less resistant to offline cracking attacks?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sjoerd Langkemper&lt;/p&gt;
</description><guid>2832d904-ba75-4f94-81e1-961bc8be07cc@app.fastmail.com</guid><pubDate>Thu, 08 Oct 2026 18:34:31 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132838</link><description>&lt;p&gt;Hello Sjoerd Langkemper,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I propose to add a new hashing algorithm to use in password_hash and &lt;br&gt;
password_verify.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/bcrypt_sha256" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_sha256&lt;/a&gt; &lt;br&gt;
PR: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I have 3 comments.&lt;/p&gt;
&lt;h1&gt;================= &lt;br&gt;
Begin of comments&lt;/h1&gt;
&lt;p&gt;The RFC states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Rather than inventing a new, PHP-specific pre-hashing scheme, this &lt;br&gt;
RFC proposes adopting an existing, well-reviewed and widely deployed &lt;br&gt;
one: Passlib's bcrypt_sha256 hash, in its current “version 2” form &lt;br&gt;
(the default since Passlib 1.7.3).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 1&lt;/h1&gt;
&lt;p&gt;Who invented the &lt;em&gt;bcrypt_sha256 hash&lt;/em&gt; specification? In what &lt;br&gt;
official specification, IETF-RFC, NIST-specification is it described?&lt;/p&gt;
&lt;p&gt;Passlib is not a trusted source for security related issues. Passlib &lt;br&gt;
is a library that only implements things, that might or might not be &lt;br&gt;
backed by an official security specification.&lt;/p&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 2&lt;/h1&gt;
&lt;p&gt;Why is something proposed that goes &lt;em&gt;against OWASP&lt;/em&gt; recommendations?&lt;/p&gt;
&lt;p&gt;OWASP states, see &lt;br&gt;
&lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt" rel="nofollow" target="_blank"&gt;https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pre-hashing-passwords-with-bcrypt&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;To summarize if bcrypt has to be used and the password should to be &lt;br&gt;
pre-hashed you should do &lt;br&gt;
bcrypt(base64(hmac-sha384(data:$password, key:$pepper)), $salt, $cost) &lt;br&gt;
and store the pepper not in the database.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 3&lt;/h1&gt;
&lt;p&gt;Is interoperability with other systems considered?&lt;/p&gt;
&lt;p&gt;For example assume a C# application and a PHP application sharing &lt;br&gt;
the same database for user credentials. Is this going to work out &lt;br&gt;
of the C# box with this invented algorithm? Or has the C# side to do &lt;br&gt;
all kinds of security sensitive programming to implement this &lt;br&gt;
algorithm?&lt;/p&gt;
&lt;p&gt;The same question for Delphi, Javascript and other languages.&lt;/p&gt;
&lt;h1&gt;=============== &lt;br&gt;
End of comments&lt;/h1&gt;
&lt;p&gt;Kind regards, &lt;br&gt;
Mirco Babin&lt;/p&gt;
</description><guid>CAFgk54=HQbinp25AENrFDe23aHP2u=dbFCaTS2w=gXpQKVCvzQ@mail.gmail.com</guid><pubDate>Thu, 08 Oct 2026 18:04:33 +0000</pubDate></item><item><title>PHP 8.4.27RC1 Ready for testing</title><link>https://externals.io/message/132837</link><description>&lt;p&gt;PHP 8.4.27RC1 has just been released and may be downloaded from &lt;br&gt;
&lt;a href="https://downloads.php.net/~calvinb/" rel="nofollow" target="_blank"&gt;https://downloads.php.net/~calvinb/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or use the git tag: php-8.4.27RC1&lt;/p&gt;
&lt;p&gt;Windows binaries are available at: &lt;a href="https://www.php.net/pre-release-builds.php#windows" rel="nofollow" target="_blank"&gt;https://www.php.net/pre-release-builds.php#windows&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please test it carefully, and report any bugs at &lt;a href="https://github.com/php/php-src/issues" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/issues&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;8.4.27 should be expected in 2 weeks, i.e. on the 22nd.&lt;/p&gt;
&lt;p&gt;Hash values and PGP signatures can be found below or at &lt;br&gt;
&lt;a href="https://gist.github.com/NattyNarwhal/dc2252c17f563d71847446530f8f7543" rel="nofollow" target="_blank"&gt;https://gist.github.com/NattyNarwhal/dc2252c17f563d71847446530f8f7543&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you, and happy testing!&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Calvin Buckley, Saki Takamachi, and Eric Mann&lt;/p&gt;
&lt;p&gt;php-8.4.27RC1.tar.bz2 &lt;br&gt;
SHA256 hash: 50e9b8f99df25f9290030dd0a273ff5aeeee324593da5f34c2435f5b24caa4df &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iJEEABYKADkWIQSdf5mgy48FyKaVjWJWqXr3YAo5pgUCasU5dBsUgAAAAAAEAA5t &lt;br&gt;
YW51MiwyLjUrMS4xMiwwLDMACgkQVql692AKOaZKmAD+Ih7C490cf4T9Nrtq2ZF/ &lt;br&gt;
WORwOFGpeM+E+RudizDKUKAA/RSktCUb8qI2baJ9k9VoAN7djj9C31p+XON1WUI0 &lt;br&gt;
tOgJ &lt;br&gt;
=coFb &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.4.27RC1.tar.gz &lt;br&gt;
SHA256 hash: 877bffdf6a65e61b9375e6bdabc1be30fd444887e7c2ca9916573a637a623540 &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iJEEABYKADkWIQSdf5mgy48FyKaVjWJWqXr3YAo5pgUCasU5dBsUgAAAAAAEAA5t &lt;br&gt;
YW51MiwyLjUrMS4xMiwwLDMACgkQVql692AKOaYZgwEApK9zW3P+XGxr1rG2hPIa &lt;br&gt;
ILhy8c0N19u2fH5esNam2GYA/0DwdaBrw9mFaivz4rzTDlhsPNsyms8fVqeexjYk &lt;br&gt;
9c8F &lt;br&gt;
=j0+F &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.4.27RC1.tar.xz &lt;br&gt;
SHA256 hash: 40b5d8682e1789e54347714ba8c0d71817c2b8b377120c3f6c43b749dd39b74e &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iJEEABYKADkWIQSdf5mgy48FyKaVjWJWqXr3YAo5pgUCasU5dBsUgAAAAAAEAA5t &lt;br&gt;
YW51MiwyLjUrMS4xMiwwLDMACgkQVql692AKOaYrTQEAkMQDV7lU+V1mkQKVfCMk &lt;br&gt;
yxHMfYG5vp6wSeLVOMgXU5oBAMYHgB8A2hT+8uJz7qCPlgrmj00DCqG5m2G0Er4L &lt;br&gt;
mEoN &lt;br&gt;
=fQby &lt;br&gt;
-----END PGP SIGNATURE&lt;/p&gt;
</description><guid>6FCB60E8-887E-4C28-8DC2-88C455E2DEC6@cmpct.info</guid><pubDate>Thu, 08 Oct 2026 17:16:57 +0000</pubDate></item><item><title>PHP 8.6.0RC3 is available for testing</title><link>https://externals.io/message/132836</link><description>&lt;p&gt;PHP 8.6.0RC3 has just been released and may be downloaded from &lt;br&gt;
&lt;a href="https://downloads.php.net/~svpernova09/" rel="nofollow" target="_blank"&gt;https://downloads.php.net/~svpernova09/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or use the git tag: php-8.6.0RC3&lt;/p&gt;
&lt;p&gt;This is an early test release and not intended for production use.&lt;/p&gt;
&lt;p&gt;Windows binaries are available at: &lt;br&gt;
&lt;a href="https://www.php.net/pre-release-builds.php#windows" rel="nofollow" target="_blank"&gt;https://www.php.net/pre-release-builds.php#windows&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please test it carefully, and report any bugs at &lt;br&gt;
&lt;a href="https://github.com/php/php-src/issues/new?template=bug_report.yml" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/issues/new?template=bug_report.yml&lt;/a&gt; &lt;br&gt;
on GitHub.&lt;/p&gt;
&lt;p&gt;8.6.0RC4 should be expected in 2 weeks, i.e. on 22 Oct 2026.&lt;/p&gt;
&lt;p&gt;Hash values and PGP signatures can be found below or at &lt;br&gt;
&lt;a href="https://gist.github.com/svpernova09/f10879c681a9b7a74116294f3c48c01e" rel="nofollow" target="_blank"&gt;https://gist.github.com/svpernova09/f10879c681a9b7a74116294f3c48c01e&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank you, and happy testing!&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Matteo Beccati, Joe Ferguson &amp;amp; Daniel Scherzer&lt;/p&gt;
&lt;p&gt;php-8.6.0RC3.tar.bz2 &lt;br&gt;
SHA256 hash: &lt;br&gt;
12d024eba9fa4bf379693c045a544eec2144de2d7de71f31a6ed4496717e0307 &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCgAdFiEEXP8Xtk3BwkT10OrD5DU14usZAQ4FAmrFKeMACgkQ5DU14usZ &lt;br&gt;
AQ569A/+OPuCA9M8jAM8bAHb7I1SGP9+NPPVVkv+idwSby5lrmOFaUhK9grJKGap &lt;br&gt;
Nhy9667UVlrZiif9MAkMO9EbCBQk/8Z26cnZzSe4AHQgvlvOi6UBCJoZkgsvIPte &lt;br&gt;
njVU1LciTlhvfr/X+lWEBqQ7KAajctVdklezsTTB7Wuda4PxHrH2/hNoXLgZ7NaP &lt;br&gt;
YloI31iU1cFNZy/LuRz6SNz81vY1NaVC3BeaaudI7FjzQdHWJ/RmbP/jOphQxx3J &lt;br&gt;
mPLR7/QrOXYIdOWFkDMzdGBCCzs3oE6aQs7l30ombW7YxQfo0o1Gn8HKCaZaH55s &lt;br&gt;
OgOnqlSUCOUiNloPNi2Shvc3YAnsHlB6hGDKZt3E0GRnNzMVChO8JBQ4/2joUrLn &lt;br&gt;
t+C2CTUTJYQhJB5rVgs9HN2nVJ6dI3Q0s/W1eLwCBomyNpfLhs2O1H+tbCojx+Pp &lt;br&gt;
c2J/s3hmfuLBsjV3ZSZWvEXmh/bTWydwtS7lRVRYBsH8IbC1w0fGYKqsuuoVuqWr &lt;br&gt;
ZfqgkXZ8Hef7Z/L/IBiYnexu1/BNrbqPyf98Ll2mcVoIbzE4IpmLXnNxHvNT3YK5 &lt;br&gt;
xeHi3i/HZ97JoV96E5wrsw8nHJ4bwSoj3gJwruOH7DjsWaKovOIZcVlLjS2pH+z3 &lt;br&gt;
vrz2J+5kJzNNbaQfXgrht2lxOxdWr5pozKdOXsJ0pRqxA2mHPf0= &lt;br&gt;
=/vOI &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.6.0RC3.tar.gz &lt;br&gt;
SHA256 hash: &lt;br&gt;
a40085cef8bfb560ed3649cd83879e768ab22fe4cee467aa56b1b795c92e057d &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCgAdFiEEXP8Xtk3BwkT10OrD5DU14usZAQ4FAmrFKeQACgkQ5DU14usZ &lt;br&gt;
AQ6m4A//VGDb9dmyysSTXUgPpwdpDIih1TPWKCnHCrULtKHqdpyCQ95Djmm8mCbn &lt;br&gt;
4Ic2jPPu/boMaM3b0iRq9Ms29iS6tn5b7hBr6MDJNoQSb4ri9/TwKjvpXh56RPdu &lt;br&gt;
4dypjJOyQnfNF9FDkV7OphVlhIVHlY0A7E+Dx3bsBKOuLHqDZvoNA6Y2tdKlhI41 &lt;br&gt;
oUOa+JtrRCjy1bMhd+0jr08XIN3OwwNJVT5bhQnglZkTSNufHAoVysy6ONVrXdbF &lt;br&gt;
wJLM5NLoalNHUVkEFg002YY6DYzqXwymFpQMzjLTQh9mbpj41hJErz/p7TqwcGDy &lt;br&gt;
76aNbZ+0zTf0L5QSU2PLpbahqr0quWM0Vi+AVsdm1/PUBWyiFb13sR8DYGhVMR4x &lt;br&gt;
w7sImU5xbrHAZljqzIMu7PNKcZBTsV2YvM9o69KrtyKMjrOlNd92WO8qPpbfoMD0 &lt;br&gt;
sjRG9yA9CesusEc5smPTSK/vTgb6WmpY2KrB53Ie3absUOk7kEILU9Apa5b094PR &lt;br&gt;
buDcUfMlP6uBLmzjQ1x30bjQrfNGaJOC0AV9iIv7kETKGOcscb6R4rij0TCBweqE &lt;br&gt;
uLqBVxnpKKiZdCr49C+vJ5/hOhkydkHYW1z2EMnTN0Zf6BdDPPJQy4P1PBZXBXG4 &lt;br&gt;
jSx2XQffEyfn56hT6EpRWKNzVlqSJC2Us/u7VKL/eiZnUFpz9Eg= &lt;br&gt;
=m3zI &lt;br&gt;
-----END PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;php-8.6.0RC3.tar.xz &lt;br&gt;
SHA256 hash: &lt;br&gt;
131f87a206bdd90c178d8e44e80243ae0c333c4cee8531f63d1caa9acdd8696a &lt;br&gt;
PGP signature: &lt;br&gt;
-----BEGIN PGP SIGNATURE-----&lt;/p&gt;
&lt;p&gt;iQIzBAABCgAdFiEEXP8Xtk3BwkT10OrD5DU14usZAQ4FAmrFKeQACgkQ5DU14usZ &lt;br&gt;
AQ5Aog//aJIWRegL+/Sg5rcS01M2Qxa05Q6fgK63+Yomru14NsRSFvlu4OCRsWcO &lt;br&gt;
xYuUjCarXeL8GonqHOyN0PWLVj4X287Xdhj0EOVMcpgJhnijtFw9QIY3GEcCt1os &lt;br&gt;
XbNa1u3PbHXMF9+jmvyu3Q3gnAn644wFFDv5y+zj9L2CbydZErpZJB4/RELvGFrs &lt;br&gt;
7m1P5NGS5TmcO/bHqHerT6SiUKi9nogajaJfl7jAOqiFxwq6jJuFm4k1Iqa5czYT &lt;br&gt;
AkrJfbE2fnzZUiaLiJePI6AWGSZrSoNtuNgo1VZiCJCKGwNt96vmZG22X1CvCjLD &lt;br&gt;
+X0u//5qLFyCJU8gDQle6FyPlTaaRTKJLnLV2HDwj1TsDay4qid/Z9gv80ZQFOTZ &lt;br&gt;
3nGGOHzmSiAnwsnOw2xujms3Sbu16ZvSu+akmpCxFHu2Z4QdNciBsRiRLbiHE6Us &lt;br&gt;
1kEIzcizNQxwABOful/F+5TRTTw8/unsaiI8gREnvddm2560ycfm4GETWO5R+fQx &lt;br&gt;
UoLLiLknK1Sbi4UTe1ds0fRspFNySWoTcH1osmyK+hEHlkeA9bSv99+maxrzNRB6 &lt;br&gt;
oBWhspv/QXDhmcUWCUwyp5m/YBZtwdyFprGB7S6bGqnk7jF9JPgGlCO2fjewOFlF &lt;br&gt;
PZXlZsBlLE7MazUDhJqGZIsm5NZ9XC7/Ik+aZIMifq+/sRcadN4= &lt;br&gt;
=sjVI &lt;br&gt;
-----END PGP SIGNATURE&lt;/p&gt;
</description><guid>CABj1BaaYKPde17UArpyAo23MhjZxcs8o5p5cQZdqyCmLC1bxfA@mail.gmail.com</guid><pubDate>Thu, 08 Oct 2026 15:33:13 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132835</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Right, good point, I agree too, thanks!&lt;/p&gt;
&lt;p&gt;I opened a new PR that goes the other way around: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24192" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24192&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have also updated the RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;php&lt;/code&gt; CLI is unchanged&lt;/li&gt;
&lt;li&gt;&lt;code&gt;php-fpm&lt;/code&gt; &lt;em&gt;always&lt;/em&gt; includes &lt;code&gt;php&lt;/code&gt; (and runs as CLI when run as &lt;code&gt;php&lt;/code&gt; &lt;br&gt;
instead of &lt;code&gt;php-fpm&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;no need for a build option anymore&lt;/li&gt;
&lt;li&gt;the diff is simpler&lt;/li&gt;
&lt;li&gt;FPM aligns with FrankenPHP (both include the CLI)&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;--fpm&lt;/code&gt; CLI option anymore, solves the objections raised &lt;br&gt;
previously in this thread&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That sounds much better indeed.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I disagree that this is better from a discoverability and predictability &lt;br&gt;
point of view and I also disagree with the concerns that the original &lt;br&gt;
proposal would somehow “privilege” FPM.&lt;/p&gt;
&lt;p&gt;As for the first part:&lt;/p&gt;
&lt;p&gt;When running a PHP binary on the command line, my expectation is that &lt;br&gt;
I'm running a CLI application and thus I expect to end up in the CLI &lt;br&gt;
SAPI. Suddenly starting FPM, which potentially binds ports or sockets, &lt;br&gt;
just because I happen to name the binary the wrong name (e.g. when using &lt;br&gt;
a custom &lt;code&gt;p&lt;/code&gt; symlink to run PHP after my distro switched to the &lt;br&gt;
“combined binary” setup or just &lt;code&gt;php-8.7&lt;/code&gt; that the RFC notes as running &lt;br&gt;
FPM) would be very surprising. With the current proposal I also have no &lt;br&gt;
way out, except naming the binary differently. Changing behavior based &lt;br&gt;
on the binary name to do entirely different things is something that is &lt;br&gt;
comparatively rarely used and thus folks are unlikely to be accustomed &lt;br&gt;
to this being a thing (the most prominent example that comes to mind &lt;br&gt;
would be Busybox). An explicit flag / argument would be properly &lt;br&gt;
discoverable (appearing in help outputs) and would also be reliably &lt;br&gt;
scriptable.&lt;/p&gt;
&lt;p&gt;For the second point, and tying into the first: PHP FPM is a / the &lt;br&gt;
recommended solution of running PHP as a FastCGI application. Adding an &lt;br&gt;
&lt;code&gt;--fpm&lt;/code&gt; flag to the PHP binary to run PHP in “FastCGI mode” would match &lt;br&gt;
the &lt;code&gt;-S&lt;/code&gt; flag to run PHP in “HTTP mode” (which switches from the &lt;code&gt;cli&lt;/code&gt; &lt;br&gt;
to the &lt;code&gt;cli-server&lt;/code&gt; SAPI). I understand that the current “HTTP mode” &lt;br&gt;
implementation is meant to be used for development purposes only, but &lt;br&gt;
that is an implementation detail. We could in theory implement a &lt;br&gt;
production grade web server to PHP tomorrow (and potentially add &lt;br&gt;
&lt;code&gt;--http&lt;/code&gt; as the entrypoint for the “HTTP mode”, keeping &lt;code&gt;-S&lt;/code&gt; as an &lt;br&gt;
alias) and then we would have:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; php # CLI mode
 php --fpm # FastCGI mode
 php --http # HTTP mode
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with the &lt;code&gt;php&lt;/code&gt; binary being the singular entrypoint for all use cases &lt;br&gt;
where PHP is running “standalone” rather than embedded into something &lt;br&gt;
else (as with mod_php). Alternatively, we use &lt;code&gt;--mode=fpm&lt;/code&gt; to switch to &lt;br&gt;
FPM mode instead of reserving the top level &lt;code&gt;--fpm&lt;/code&gt; flag.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>2f454da60303c5bd25416af8fb15bb60@bastelstu.be</guid><pubDate>Thu, 08 Oct 2026 14:25:14 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132834</link><description>&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;this essentially privileges the FPM SAPI, right at the &lt;br&gt;
time that we're seeing more and more alternate SAPIs.  (FrankenPHP, Swoole, […]&lt;/p&gt;
&lt;p&gt;I just want to make sure we don't inadvertently lock in FPM as The Way &lt;br&gt;
PHP Runs(tm) just at the time that it no longer is.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I share this concern. &lt;br&gt;
The fpm binary should embed the cli if we go this way. Not the other way &lt;br&gt;
around. &lt;br&gt;
Same as frankenphp shipping also the cli, especially since it's been made &lt;br&gt;
easier in PHP 8.6.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I was actually thinking about this and it really makes more sense and also &lt;br&gt;
better in terms of implementation as we will just do what FrankenPHP does.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Right, good point, I agree too, thanks!&lt;/p&gt;
&lt;p&gt;I opened a new PR that goes the other way around: &lt;a href="https://github.com/php/php-src/pull/24192" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24192&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have also updated the RFC: &lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;php&lt;/code&gt; CLI is unchanged&lt;/li&gt;
&lt;li&gt;&lt;code&gt;php-fpm&lt;/code&gt; &lt;em&gt;always&lt;/em&gt; includes &lt;code&gt;php&lt;/code&gt; (and runs as CLI when run as &lt;code&gt;php&lt;/code&gt; instead of &lt;code&gt;php-fpm&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;no need for a build option anymore&lt;/li&gt;
&lt;li&gt;the diff is simpler&lt;/li&gt;
&lt;li&gt;FPM aligns with FrankenPHP (both include the CLI)&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;--fpm&lt;/code&gt; CLI option anymore, solves the objections raised previously in this thread&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That sounds much better indeed.&lt;/p&gt;
</description><guid>422af3a7-ebbc-4b55-aad3-931c7d2c9843@slotai15m08</guid><pubDate>Thu, 08 Oct 2026 13:53:13 +0000</pubDate></item><item><title>[DISCUSSION] ext/intl: single-value skeleton formatter (GH-24165)</title><link>https://externals.io/message/132833</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I would like to add a single-value counterpart, IntlNumberFormatter, &lt;br&gt;
built &lt;br&gt;
from a skeleton:&lt;/p&gt;
&lt;p&gt;echo IntlNumberFormatter::createFromSkeleton( &lt;br&gt;
'measure-unit/speed-kilometer-per-hour unit-width-full-name', &lt;br&gt;
'fr')-&amp;gt;format(5);&lt;/p&gt;
&lt;p&gt;It would cover units and the rest of what skeletons support, and it &lt;br&gt;
would &lt;br&gt;
only be available with a recent enough ICU.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It's unfortunate that we would then have both &lt;code&gt;NumberFormatter&lt;/code&gt; and &lt;br&gt;
&lt;code&gt;IntlNumberFormatter&lt;/code&gt;, but getting something on the non-legacy API and &lt;br&gt;
with a proper &lt;code&gt;Intl&lt;/code&gt; prefix would be a good thing. I'm thus in favor. As &lt;br&gt;
future scope we should probably deprecate &lt;code&gt;NumberFormatter&lt;/code&gt; then.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>fe481d734c5f22c8d38f1b74e7a89560@bastelstu.be</guid><pubDate>Thu, 08 Oct 2026 13:16:27 +0000</pubDate></item><item><title>RFC karma request: CSV extension (ext/csv)</title><link>https://externals.io/message/132832</link><description>&lt;p&gt;Hi Damian&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'd like to request RFC karma for my PHP wiki account, &amp;quot;damian.jozwiak&amp;quot;. &lt;br&gt;
I'm preparing an RFC proposing a dedicated, RFC 4180-compliant CSV &lt;br&gt;
extension (ext/csv) for PHP, providing a modern API for CSV &lt;br&gt;
processing, including file and stream support. &lt;br&gt;
The implementation builds upon Gina P. Banyard's girgias/csv project, &lt;br&gt;
with additional functionality and modifications. &lt;br&gt;
A working implementation is available here: &lt;br&gt;
&lt;a href="https://github.com/damek24/php-src/tree/rfc-csv/ext/csv" rel="nofollow" target="_blank"&gt;https://github.com/damek24/php-src/tree/rfc-csv/ext/csv&lt;/a&gt; &lt;br&gt;
I'd like to publish the proposal on the PHP wiki and open it for &lt;br&gt;
discussion on internals.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;RFC karma was granted. Good luck!&lt;/p&gt;
&lt;p&gt;Ilija&lt;/p&gt;
</description><guid>a2bc8696-ba61-4074-9c4b-9ed9019ca74c@gmail.com</guid><pubDate>Thu, 08 Oct 2026 12:59:39 +0000</pubDate></item><item><title>RFC karma request: CSV extension (ext/csv)</title><link>https://externals.io/message/132831</link><description>&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to request RFC karma for my PHP wiki account, &amp;quot;damian.jozwiak&amp;quot;. &lt;br&gt;
I'm preparing an RFC proposing a dedicated, RFC 4180-compliant CSV &lt;br&gt;
extension (ext/csv) for PHP, providing a modern API for CSV processing, &lt;br&gt;
including file and stream support. &lt;br&gt;
The implementation builds upon Gina P. Banyard's girgias/csv project, with &lt;br&gt;
additional functionality and modifications. &lt;br&gt;
A working implementation is available here: &lt;br&gt;
&lt;a href="https://github.com/damek24/php-src/tree/rfc-csv/ext/csv" rel="nofollow" target="_blank"&gt;https://github.com/damek24/php-src/tree/rfc-csv/ext/csv&lt;/a&gt; &lt;br&gt;
I'd like to publish the proposal on the PHP wiki and open it for discussion &lt;br&gt;
on internals.&lt;/p&gt;
&lt;p&gt;Thanks for your consideration.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Damian Jóźwiak&lt;/p&gt;
</description><guid>CA+WT9YZGQfC=b3=zRhp=pX90K0iUovc4P1TVNj9H712VeTD0pA@mail.gmail.com</guid><pubDate>Thu, 08 Oct 2026 06:09:53 +0000</pubDate></item><item><title>[VOTE] [RFC] IntlRelativeDateTimeFormatter</title><link>https://externals.io/message/132830</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;I am announcing the start of the voting process &lt;br&gt;
of the IntlRelativeDateTimeFormatter RFC.&lt;/p&gt;
&lt;p&gt;The vote ends at 22 Oct 00:00:00 UTC.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/reldateformatter" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/reldateformatter&lt;/a&gt; &lt;br&gt;
Discussion thread: &lt;a href="https://externals.io/message/132187" rel="nofollow" target="_blank"&gt;https://externals.io/message/132187&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks. &lt;br&gt;
--Weilin&lt;/p&gt;
</description><guid>tencent_7F44DE5FB2C8972E745BE22704DFAEB6A508@qq.com</guid><pubDate>Wed, 07 Oct 2026 16:14:03 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132829</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I think the following points still need some discussion. Some of &lt;br&gt;
them may overlap with things others have already raised in this thread. &lt;br&gt;
Rather than replying to each of those messages separately, I've &lt;br&gt;
collected &lt;br&gt;
everything in this one mail and mention who brought a point up where it &lt;br&gt;
applies.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for the review. Derick and I already discussed some, but not &lt;br&gt;
all of the points. For now I'll just reply to those that are resolved to &lt;br&gt;
get them out of the way.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Configurable clock resolution&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I'd like a way to configure the resolution, &lt;br&gt;
e.g. a SystemClock that only ever returns whole seconds. Many consumers &lt;br&gt;
(JWT iat/exp, HTTP dates, database columns) never want fractions. &lt;br&gt;
A clock configured that way guarantees whole seconds to every consumer &lt;br&gt;
it is injected into, instead of each consumer having to truncate on its &lt;br&gt;
own. It also makes test expectations simpler, because the values never &lt;br&gt;
carry &lt;br&gt;
fractions.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We believe this is the job of a “Clock decorator”, e.g. &lt;code&gt;CoarseClock&lt;/code&gt; &lt;br&gt;
that takes in some clock and appropriately rounds or truncates the &lt;br&gt;
Instant to the desired precision. Such a decorator would automatically &lt;br&gt;
be compatible with any type of clock (e.g. a &lt;code&gt;FrozenClock&lt;/code&gt; for testing).&lt;/p&gt;
&lt;p&gt;As with the testing clocks, we consider a &lt;code&gt;CoarseClock&lt;/code&gt; out of scope for &lt;br&gt;
this RFC. With a possible future &lt;code&gt;truncateTo()&lt;/code&gt; that I already mentioned &lt;br&gt;
elsewhere in the discussion, a userland implementation would become &lt;br&gt;
trivial for the use cases where a coarser clock is required.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="7"&gt;
&lt;li&gt;get vs to&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RFC explicitly states that the Unix timestamp is not the internal &lt;br&gt;
representation. getUnixTimestamp() is therefore a conversion, and by &lt;br&gt;
the RFC's own convention (toIso8601DateTimeString(), &lt;br&gt;
DateTime::toInstant()) it should be toUnixTimestamp(). Duration exposes &lt;br&gt;
its components as properties, so with get*() we'd end up with a third &lt;br&gt;
style within the same family.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Good catch, we renamed the methods to use the &lt;code&gt;to&lt;/code&gt; prefix.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="9"&gt;
&lt;li&gt;getNanoseconds()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It isn't obvious whether this returns the nanoseconds since epoch or &lt;br&gt;
the &lt;br&gt;
nanoseconds within the current second. getNanoOfSecond() (Java's &lt;br&gt;
NANO_OF_SECOND) would remove that ambiguity.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We believe that with the renaming of the “Unix timestamp” converter to &lt;br&gt;
use the &lt;code&gt;to&lt;/code&gt; prefix and the lack of “Unix” in the name of &lt;br&gt;
&lt;code&gt;getNanoseconds()&lt;/code&gt; the naming is clear enough. It is also easy to see &lt;br&gt;
that the result of &lt;code&gt;getNanoseconds()&lt;/code&gt; can't be the number of nanoseconds &lt;br&gt;
elapsed since the Unix epoch, because the value is guaranteed to be less &lt;br&gt;
than 1_000_000_000 (i.e. less than 1 second). Using &lt;code&gt;nanoseconds&lt;/code&gt; as the &lt;br&gt;
fractional part is consistent with &lt;code&gt;Duration::$nanoseconds&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;For completeness I'd like to note that the epoch of the Instant is &lt;br&gt;
intentionally left unspecified and that the Unix epoch is just one of &lt;br&gt;
several possible epochs.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>0f7410cb586af49a679db4cb784e74f9@bastelstu.be</guid><pubDate>Wed, 07 Oct 2026 10:45:24 +0000</pubDate></item><item><title>[RFC] Concurrency Support in the PHP Engine</title><link>https://externals.io/message/132828</link><description>&lt;p&gt;Just a couple of weeks ago, I had no hope that async could make it &lt;br&gt;
into the language core. But now we have both halves: Scheduler + IO &lt;br&gt;
Hooks. &lt;br&gt;
Getting both RFCs into shape is absolutely achievable. Having them &lt;br&gt;
ready for a vote before next summer is more than realistic. &lt;br&gt;
So let’s make it happen together!&lt;/p&gt;
&lt;p&gt;Best regards, Ed&lt;/p&gt;
</description><guid>CAMW7n8B5-Q=fqJLNHg4EWxz-rTe8qDQ+T+yCvm2U7UgfQ1g9ZA@mail.gmail.com</guid><pubDate>Wed, 07 Oct 2026 10:33:01 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132827</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'm just now getting around to reading over the RFC, and I've read most &lt;br&gt;
messages but not all of them. So, I apologize if I'm reopening any old &lt;br&gt;
discussions here.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The only duplication was the JSON serialization that had also been &lt;br&gt;
mentioned by Ilia (who I'm Ccing here).&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;After spending much of the last 4-5 years working on a database that &lt;br&gt;
needs to deal with relativity, I'd recommend dropping the physics &lt;br&gt;
framing in the introduction. Time doesn't move at the same speed for &lt;br&gt;
everyone, even on Earth, and you don't specify a frame of reference for &lt;br&gt;
the instant. It would also make it easier to explain &lt;code&gt;until&lt;/code&gt; as &lt;br&gt;
&amp;quot;computes the difference between two represented time values. It does &lt;br&gt;
not establish how much physical time elapsed between the events that &lt;br&gt;
produced those values.&amp;quot;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for the physics discussion in Discord. To loop in the list: Rob &lt;br&gt;
is correct here, I'll check what I can do to satisfy the physics experts &lt;br&gt;
without leading other folks down the “I need a timezone” track.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This also raises a question about uncertainty. I appreciate that the &lt;br&gt;
RFC distinguishes the nanosecond precision of the representation from &lt;br&gt;
the resolution of the underlying clock. However, &lt;code&gt;Clock::now()&lt;/code&gt; returns &lt;br&gt;
only an &lt;code&gt;Instant&lt;/code&gt;, with no way through that contract to convey the &lt;br&gt;
source resolution or any available uncertainty information. I've had &lt;br&gt;
servers lose access to their hardware clock due to hardware &lt;br&gt;
malfunctions, so this is not just a theoretical concern. Where that &lt;br&gt;
information is available, it should be preserved alongside the reading. &lt;br&gt;
Where it is unknown, it should remain explicitly unknown. Printing nine &lt;br&gt;
fractional digits cannot supply that information.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Uncertainty is likely not of interest to the average user or something &lt;br&gt;
they understand: They just trust that their operating system provides &lt;br&gt;
them with the correct time. For applications where this matters adding a &lt;br&gt;
custom extension with a “ClockWithUncertainty” clock that returns the &lt;br&gt;
Instant + a Duration would be the right choice. The current design is in &lt;br&gt;
line with what virtually all the other programming languages do for &lt;br&gt;
their standard library. Marc also suggested exposing &lt;code&gt;clock_getres()&lt;/code&gt; on &lt;br&gt;
the &lt;code&gt;SystemClock&lt;/code&gt;, I'll reply there. In any case, I don't think this is &lt;br&gt;
something that belongs on the &lt;code&gt;Clock&lt;/code&gt; interface, since it increases the &lt;br&gt;
API complexity for little benefit.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I think there are some things worth addressing in the current RFC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;Instant&lt;/code&gt; should throw when serialized to JSON. I understand the &lt;br&gt;
argument is that applications should choose their own representation, &lt;br&gt;
but the choice should be enforced rather than silently doing the wrong &lt;br&gt;
thing. Or provide an opaque serialization that can restore the &lt;br&gt;
&lt;code&gt;Instant&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;I discussed this with Derick and it's our position that:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;As you mentioned and as I said in &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/132764" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132764&lt;/a&gt; that there is no single &lt;br&gt;
canonical representation for JSON and that users need to make a choice &lt;br&gt;
themselves.&lt;/li&gt;
&lt;li&gt;That implementing &lt;code&gt;JsonSerializable&lt;/code&gt; just to always throw an &lt;br&gt;
exception would be misleading, because from the API surface it very much &lt;br&gt;
looks like JSON serialization would be supported.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That &lt;code&gt;json_encode()&lt;/code&gt; includes a useless default serialization for &lt;br&gt;
arbitrary objects instead of requiring an opt-in is something that &lt;br&gt;
should be fixed in ext/json and not worked around for every (value) &lt;br&gt;
object we implement. Since there is no “json decode to object”, an &lt;br&gt;
opaque serialization that can restore the &lt;code&gt;Instant&lt;/code&gt; is not really a &lt;br&gt;
thing. If users need to manually call methods, they can just go via &lt;br&gt;
ISO-8601.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="2"&gt;
&lt;li&gt;&lt;code&gt;DateTimeInterface&lt;/code&gt; is missing the &lt;code&gt;toInstant()&lt;/code&gt; method, is that by &lt;br&gt;
design?&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;No. I just forgot that the interface exists. Now added.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="3"&gt;
&lt;li&gt;The backward-compatibility section still says this RFC only &lt;br&gt;
introduces three new namespaced symbols. It should also cover the new &lt;br&gt;
methods on &lt;code&gt;DateTime&lt;/code&gt; and &lt;code&gt;DateTimeImmutable&lt;/code&gt;, including potential &lt;br&gt;
conflicts with existing subclass methods named &lt;code&gt;toInstant()&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;Did some preliminary adjustments there. Might tune the phrasing later.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>cdb413e1ac305b8db1b2cd93b04e2a8c@bastelstu.be</guid><pubDate>Wed, 07 Oct 2026 10:27:45 +0000</pubDate></item><item><title>[RFC] Concurrency Support in the PHP Engine</title><link>https://externals.io/message/132826</link><description>&lt;p&gt;Hello everyone&lt;/p&gt;
&lt;p&gt;I’ve started integrating the codebase with the Scheduler API + Poll &lt;br&gt;
API (&lt;a href="https://discourse.thephp.foundation/t/php-dev-rfc-polling-api-additions/6158" rel="nofollow" target="_blank"&gt;https://discourse.thephp.foundation/t/php-dev-rfc-polling-api-additions/6158&lt;/a&gt;) &lt;br&gt;
to test these RFCs for bugs. &lt;br&gt;
The implementation is still fairly rough, but I think the situation &lt;br&gt;
will change significantly over the next 2–3 months. &lt;br&gt;
I’ll post an update here later with the results.&lt;/p&gt;
&lt;p&gt;P.S. Heh, the bugs I’ve found so far were in completely different &lt;br&gt;
modules as well. :)&lt;/p&gt;
&lt;p&gt;чт, 23 июл. 2026 г. в 11:58, Edmond Dantes &lt;a href="mailto:edmond.ht@gmail.com"&gt;edmond.ht@gmail.com&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I would like to open the discussion of a new RFC:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/async_scheduler_abi" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/async_scheduler_abi&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The proposal gives the engine a coroutine representation and makes the &lt;br&gt;
component that drives coroutines, the scheduler, pluggable by an &lt;br&gt;
extension. It adds no classes, no functions, no constants and no &lt;br&gt;
syntax: the engine compiles in no PHP symbols at all. With no scheduler &lt;br&gt;
registered, PHP behaves exactly as it does today.&lt;/p&gt;
&lt;p&gt;This is not the True Async RFC. It is the minimal engine core extracted &lt;br&gt;
from that work: the activation contract, the notifications the engine &lt;br&gt;
raises, adoption of fibers onto the scheduler, and per-coroutine &lt;br&gt;
storage. Any user-facing API (spawn(), await(), channels) stays in &lt;br&gt;
extension space; True Async is one possible provider on top, not the &lt;br&gt;
subject of this proposal.&lt;/p&gt;
&lt;p&gt;The implementation exists, and I am the one contributing it:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/php/php-src/pull/22561" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/22561&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The PR carries the engine changes plus an in-tree reference scheduler &lt;br&gt;
(ext/test_scheduler, disabled by default) that fills every slot from an &lt;br&gt;
ordinary extension; the upstream test suites run unchanged and &lt;br&gt;
schedulerless in the same binary. A bridge extension that registers a &lt;br&gt;
scheduler written in plain PHP exists out of tree, as runtime proof &lt;br&gt;
that the seam is sufficient.&lt;/p&gt;
&lt;p&gt;Points likely of interest for existing code: a scheduler can adopt &lt;br&gt;
fibers started by ReactPHP, Revolt or AMPHP, per fiber and declinable; &lt;br&gt;
the proposal ships the per-coroutine storage that would later let &lt;br&gt;
&lt;code&gt;ob_start()&lt;/code&gt; and friends become coroutine-safe; there are no goroutines &lt;br&gt;
and no parallelism, everything runs in one OS thread.&lt;/p&gt;
&lt;p&gt;Feedback is welcome.&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Edmond&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>CAMW7n8Cvos+ZSMFP_eZZu-TtCox5dYBGn=BQ5+dYWB3JPFU=+A@mail.gmail.com</guid><pubDate>Wed, 07 Oct 2026 10:17:33 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132825</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 5&lt;/h1&gt;
&lt;p&gt;The RFC introduces a SystemClock class:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php

final readonly class SystemClock implements \Time\Clock
{
    public function __construct() {}

    /**
     * The current instant, at the resolution offered by the platform
     * clock,
     * which is generally coarser than nanoseconds.
     *
     * Returned values are not guaranteed to be monotonically
     * increasing across calls.
     */
    public function `now()`: \Time\Instant {}
}

?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Why is SystemClock not a Singleton? Can there be multiple different &lt;br&gt;
system clocks in practice? I believe a System Clock, with the emphasis &lt;br&gt;
on &amp;quot;System&amp;quot; is a System Wide clock. This clock is not bound to PHP, &lt;br&gt;
but to all processes running on the system, including Apache, &lt;br&gt;
shell-scripts, NGINX and others.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Conceptually there is only one &lt;code&gt;SystemClock&lt;/code&gt; and internally each &lt;br&gt;
&lt;code&gt;SystemClock&lt;/code&gt; object accesses the same clock source provided by the &lt;br&gt;
operating system. But you are making a good point here: Replacing the &lt;br&gt;
constructor with a static &lt;code&gt;::get()&lt;/code&gt; method or similar would make that &lt;br&gt;
explicit and would also allow for reducing memory usage when &lt;br&gt;
&lt;code&gt;SystemClock&lt;/code&gt; objects are obtained at different places in the code &lt;br&gt;
(instead of being pulled from a dependency injection container). I'll &lt;br&gt;
put this on my list to discuss with Derick (and am happy to receive &lt;br&gt;
naming suggestions for such a static getter).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We have now made the  &lt;code&gt;SystemClock&lt;/code&gt; a singleton with a &lt;br&gt;
&lt;code&gt;SystemClock::get()&lt;/code&gt; factory / getter. The constructor is private now.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>2db47237c1e7b41be4e95f44d2ad6e0f@bastelstu.be</guid><pubDate>Wed, 07 Oct 2026 10:04:14 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132824</link><description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I’ve updated the RFC based on the discussion and the implementation in PR &lt;br&gt;
#24111.&lt;/p&gt;
&lt;p&gt;The proposal now focuses on adding Filter\Filter and Filter\Flag enums to &lt;br&gt;
the Filter extension.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/invalid_filter_options" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/invalid_filter_options&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I’d appreciate your feedback on the updated proposal.&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Muhammed Arshid&lt;/p&gt;
</description><guid>CAO3bawnYr+tLFicZP9mObqPhjy97Z_sFwcyZTiWN6vmYrfr1OQ@mail.gmail.com</guid><pubDate>Wed, 07 Oct 2026 04:16:50 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132823</link><description>&lt;p&gt;Hi Jakub,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I wonder if we should have some stream abstraction.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thanks for taking a look. I see the benefit of having something shared &lt;br&gt;
across Io, especially if it can support sources beyond streams.&lt;/p&gt;
&lt;p&gt;With fromStreams(), one thing I would want to preserve is the supplied &lt;br&gt;
stream's buffering and input behavior, including support for &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;. &lt;br&gt;
We also need access to the native terminal capabilities for mode changes &lt;br&gt;
and Windows console input.&lt;/p&gt;
&lt;p&gt;For this RFC, I would lean towards keeping fromStdio() and fromStreams(). &lt;br&gt;
If a suitable shared abstraction becomes available, we could add another &lt;br&gt;
factory for it while keeping these entry points. The ownership and &lt;br&gt;
buffering rules would still need to be worked through.&lt;/p&gt;
&lt;p&gt;Did you have a particular abstraction in mind? I would be interested in &lt;br&gt;
understanding whether it would improve the current API, or whether keeping &lt;br&gt;
these factories leaves us enough room to integrate it later.&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Pratik&lt;/p&gt;
</description><guid>CA+9BsNcko6GfcbNrFMvAVjRcf78xcC5enUSTEgypKi3UHSH1Wg@mail.gmail.com</guid><pubDate>Wed, 07 Oct 2026 03:48:08 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132822</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;On Sun, Sep 27, 2026 at 7:21 PM Pratik Bhujel &lt;a href="mailto:prateekbhujelpb@gmail.com"&gt;prateekbhujelpb@gmail.com&lt;/a&gt; &lt;br&gt;
wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I would like to formally propose the Io\Terminal API for PHP 8.7:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/io_terminal" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/io_terminal&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In general it's a nice RFC.&lt;/p&gt;
&lt;p&gt;I wonder if we should have some stream abstraction. So far, streams are not &lt;br&gt;
directly in Io as we are dealing with underlying fds that are abstracted &lt;br&gt;
through Poll\Handle implementations which is also used by IO hooks for &lt;br&gt;
direct rw. It has got advantages that it can support more than just &lt;br&gt;
streams. In this case I'm not sure more than streams is needed but I feel &lt;br&gt;
it would still be nicer to have some sort of abstraction there. I wouldn't &lt;br&gt;
see it as a blocker, more just something to consider and think about.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jakub&lt;/p&gt;
</description><guid>CAEKnhAEyHYkJeF5UbV5g8LgMBxk2Y6rKh985COp=qGKvy9cgMA@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 20:44:41 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132821</link><description>&lt;p&gt;On Tue, Oct 6, 2026 at 7:59 PM Nicolas Grekas &lt;a href="mailto:nicolas.grekas+php@gmail.com"&gt;nicolas.grekas+php@gmail.com&lt;/a&gt; &lt;br&gt;
wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Le mar. 6 oct. 2026, 18:30, Larry Garfield &lt;a href="mailto:larry@garfieldtech.com"&gt;larry@garfieldtech.com&lt;/a&gt; a &lt;br&gt;
écrit :&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM &lt;br&gt;
SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when &lt;br&gt;
its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name &lt;br&gt;
starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything &lt;br&gt;
else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is &lt;br&gt;
still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM

ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. &lt;br&gt;
I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to &lt;br&gt;
illustrate its usefulness for this specific system. Shipping one binary &lt;br&gt;
instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving &lt;br&gt;
more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), &lt;br&gt;
because FPM no longer loads a second copy of the engine right after the &lt;br&gt;
CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other &lt;br&gt;
systems where boot speed (autoscaling, serverless, etc.) or disk size &lt;br&gt;
is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single &lt;br&gt;
binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc &lt;br&gt;
suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;br&gt;
&lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and &lt;br&gt;
service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; &lt;br&gt;
(thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can see the value here, and I am not opposed in concept.  My one &lt;br&gt;
question is that this essentially privileges the FPM SAPI, right at the &lt;br&gt;
time that we're seeing more and more alternate SAPIs.  (FrankenPHP, Swoole, &lt;br&gt;
various async tools that just run on the CLI, etc.). Would there be any &lt;br&gt;
negative impact for them?  If at some point in the future another SAPI (eg, &lt;br&gt;
FrankenPHP or something similar to it) became a first-class web-serving &lt;br&gt;
SAPI in php-src, would we then need to package multiple variants? &lt;br&gt;
(FPM-CLI, Franken-CLI, etc.).&lt;/p&gt;
&lt;p&gt;I just want to make sure we don't inadvertently lock in FPM as The Way &lt;br&gt;
PHP Runs(tm) just at the time that it no longer is.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I share this concern. &lt;br&gt;
The fpm binary should embed the cli if we go this way. Not the other way &lt;br&gt;
around. &lt;br&gt;
Same as frankenphp shipping also the cli, especially since it's been made &lt;br&gt;
easier in PHP 8.6.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I was actually thinking about this and it really makes more sense and also &lt;br&gt;
better in terms of implementation as we will just do what FrankenPHP does.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Jakub&lt;/p&gt;
</description><guid>CAEKnhAGyF0BAQ-ykziZT7DG8XS4Vs-80QTRDtRE9oOfo-k9RmA@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 19:15:22 +0000</pubDate></item><item><title>[DISCUSSION] ext/intl: single-value skeleton formatter (GH-24165)</title><link>https://externals.io/message/132820</link><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;GH-24165 asks for unit formatting in intl (e.g. &amp;quot;5 km/h&amp;quot;, &amp;quot;5 kilometers per &lt;br&gt;
hour&amp;quot;). NumberFormatter can't do it as it sits on the legacy ICU API, and &lt;br&gt;
switching it to icu::number would break patterns, attributes and RBNF &lt;br&gt;
styles.&lt;/p&gt;
&lt;p&gt;Since 8.6 it is doable with IntlNumberRangeFormatter by passing the same &lt;br&gt;
value twice, but that's a hack.&lt;/p&gt;
&lt;p&gt;I would like to add a single-value counterpart, IntlNumberFormatter, built &lt;br&gt;
from a skeleton:&lt;/p&gt;
&lt;p&gt;echo IntlNumberFormatter::createFromSkeleton( &lt;br&gt;
'measure-unit/speed-kilometer-per-hour unit-width-full-name', &lt;br&gt;
'fr')-&amp;gt;format(5);&lt;/p&gt;
&lt;p&gt;It would cover units and the rest of what skeletons support, and it would &lt;br&gt;
only be available with a recent enough ICU.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;
</description><guid>CA+XhMqwYU+z+qAP9jsCTd=Tu7i6oYja-+0TwGU4ptHTMDWie8Q@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 18:39:59 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132819</link><description>&lt;p&gt;Le mar. 6 oct. 2026, 18:30, Larry Garfield &lt;a href="mailto:larry@garfieldtech.com"&gt;larry@garfieldtech.com&lt;/a&gt; a &lt;br&gt;
écrit :&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM &lt;br&gt;
SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when &lt;br&gt;
its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name &lt;br&gt;
starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything &lt;br&gt;
else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is &lt;br&gt;
still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM

ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. &lt;br&gt;
I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to &lt;br&gt;
illustrate its usefulness for this specific system. Shipping one binary &lt;br&gt;
instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving &lt;br&gt;
more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), &lt;br&gt;
because FPM no longer loads a second copy of the engine right after the &lt;br&gt;
CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other &lt;br&gt;
systems where boot speed (autoscaling, serverless, etc.) or disk size &lt;br&gt;
is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single &lt;br&gt;
binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc &lt;br&gt;
suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;br&gt;
&lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and &lt;br&gt;
service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; &lt;br&gt;
(thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can see the value here, and I am not opposed in concept.  My one &lt;br&gt;
question is that this essentially privileges the FPM SAPI, right at the &lt;br&gt;
time that we're seeing more and more alternate SAPIs.  (FrankenPHP, Swoole, &lt;br&gt;
various async tools that just run on the CLI, etc.). Would there be any &lt;br&gt;
negative impact for them?  If at some point in the future another SAPI (eg, &lt;br&gt;
FrankenPHP or something similar to it) became a first-class web-serving &lt;br&gt;
SAPI in php-src, would we then need to package multiple variants? &lt;br&gt;
(FPM-CLI, Franken-CLI, etc.).&lt;/p&gt;
&lt;p&gt;I just want to make sure we don't inadvertently lock in FPM as The Way PHP &lt;br&gt;
Runs(tm) just at the time that it no longer is.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I share this concern. &lt;br&gt;
The fpm binary should embed the cli if we go this way. Not the other way &lt;br&gt;
around. &lt;br&gt;
Same as frankenphp shipping also the cli, especially since it's been made &lt;br&gt;
easier in PHP 8.6.&lt;/p&gt;
&lt;p&gt;Nicolas&lt;/p&gt;
</description><guid>CAOWwgpmhXzGVbR_7U9=Q3YrdRyeRRoFJ4PA0Haeu-PCvAVyu5Q@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 17:55:57 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132818</link><description>&lt;blockquote&gt;
&lt;p&gt;I will reiterate that removing these defaults was a mistake. The &lt;br&gt;
intention of the filter extension was to pre-clean &lt;strong&gt;all&lt;/strong&gt; data coming &lt;br&gt;
into the superglobals through these filters, and then access the raw &lt;br&gt;
(but checked/filtered) data through the extensions filter_get() and &lt;br&gt;
friends methods.&lt;/p&gt;
&lt;p&gt;Removing these defaults cripled the extension.&lt;/p&gt;
&lt;p&gt;If anything, that deprecation ought to be undone, before the extension &lt;br&gt;
gets refreshed.&lt;/p&gt;
&lt;p&gt;cheers, &lt;br&gt;
Derick&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yeah, with the deprecation of the superglobal filter INI options, &lt;br&gt;
ext/filter is left with an awkward filter_input function that's not much &lt;br&gt;
useful than filter_var. If the deprecation is kept and furthered to a &lt;br&gt;
removal, then I don't know if it makes much sense to still have that &lt;br&gt;
function anymore (or more likely, simplify its implementation since it &lt;br&gt;
can't do superglobal filtering - since there are quite a few users of it &lt;br&gt;
after all, ~258k per a quick GH code search).&lt;/p&gt;
&lt;p&gt;Regardless, there's still merit in cleaning up flags and using enums &lt;br&gt;
regardless what path is taken.&lt;/p&gt;
</description><guid>591C48E2-84FB-4A2A-8C9D-E9015E32DBD0@cmpct.info</guid><pubDate>Tue, 06 Oct 2026 17:22:44 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132817</link><description>&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 4&lt;/h1&gt;
&lt;p&gt;The \Time\Clock interface conflicts with PSR-20 Clock interface, see &lt;br&gt;
&lt;a href="https://www.php-fig.org/psr/psr-20/" rel="nofollow" target="_blank"&gt;https://www.php-fig.org/psr/psr-20/&lt;/a&gt; . A &lt;br&gt;
class can never implement both &lt;br&gt;
interfaces at the same time. This will hinder adoption.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;... snipped ...&lt;/p&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The expectation is that you would use one of the two adapters to &lt;br&gt;
translate between the PSR-20 clock and PHP’s native clock, depending &lt;br&gt;
on which one is the source of truth in your application.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) There is a misconception. The application does not &lt;br&gt;
choose the abstracted clock truth for the Composer installed &lt;br&gt;
libraries. It only chooses the clock for its internal parts. Each &lt;br&gt;
piece of software, internal application and each different external &lt;br&gt;
library, chooses its own source of abstracted clock truth, like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;\time()&lt;/li&gt;
&lt;li&gt;new DateTimeImmutable()&lt;/li&gt;
&lt;li&gt;PSR-20 \Psr\Clock\ClockInterface-&amp;gt;now()&lt;/li&gt;
&lt;li&gt;PSR-11 ContainerInterface-&amp;gt;get(\Psr\Clock\ClockInterface::class)&lt;/li&gt;
&lt;li&gt;laravel/framework exposes a \now() function.&lt;/li&gt;
&lt;li&gt;MySql 'SELECT SYSDATE();'&lt;/li&gt;
&lt;li&gt;MySql 'SELECT &lt;code&gt;NOW()&lt;/code&gt;;' (can be frozen with SET TIMESTAMP).&lt;/li&gt;
&lt;li&gt;\Carbon\CarbonImmutable::now()&lt;/li&gt;
&lt;li&gt;\Time\SystemClock::get()-&amp;gt;now()&lt;/li&gt;
&lt;li&gt;\Time\Clock-&amp;gt;now()&lt;/li&gt;
&lt;li&gt;PSR-11 ContainerInterface-&amp;gt;get(\Time\Clock::class) &lt;br&gt;
etcetera.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But in the end, every &amp;quot;abstracted clock truth&amp;quot; uses one singleton, one &lt;br&gt;
source of truth, namely the singleton system clock.&lt;/p&gt;
&lt;p&gt;(Mirco Babin)&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;But because the \Time\Clock-&amp;gt;now() conflicts, as I have demonstrated, &lt;br&gt;
with the \Psr\Clock\ClockInterface-&amp;gt;now(), this one-time solution is &lt;br&gt;
not possible. Now assume this PSR-20-application is a big one, &lt;br&gt;
thousands of classes, millions line of code. This will become a &lt;br&gt;
PSR-20-application maintenance disaster.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As Larry noted, changing from PSR-20 to the new date and time API &lt;br&gt;
would be a breaking change. This kind of migration would also not &lt;br&gt;
be limited to just the change in clocks. The Time\Instant, and the &lt;br&gt;
modeling of the new date and time API in general are not a drop-in &lt;br&gt;
replacement for the existing DateTimeImmutable API. A library that &lt;br&gt;
migrates from PSR-20 to the native clock will want to consistently &lt;br&gt;
use the date and time API to benefit from it. This will affect &lt;br&gt;
internal calculations and possibly returned values (e.g. returning &lt;br&gt;
an Instant where previously a DateTimeImmutable was returned). Just &lt;br&gt;
replacing the clock and keeping everything else the same brings &lt;br&gt;
little benefit. Changing the clock you pass in is the smallest part &lt;br&gt;
of the migration effort.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) Every effort, however small, however little, that eases &lt;br&gt;
this migration path for applications, should be provided.&lt;/p&gt;
&lt;p&gt;Also because Packagist &lt;a href="https://packagist.org/packages/psr/clock" rel="nofollow" target="_blank"&gt;https://packagist.org/packages/psr/clock&lt;/a&gt; shows &lt;br&gt;
&lt;em&gt;439 458 545&lt;/em&gt; (439 million) installations of the PSR-20 clock. This is &lt;br&gt;
an &lt;em&gt;impure number&lt;/em&gt;, because it also includes CI/test installations, &lt;br&gt;
and it also includes nesbot/carbon and laravel/framework &lt;br&gt;
installations.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I agree to disagree.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Can the RFC be updated? Under rejected features can something be added &lt;br&gt;
like:&lt;/p&gt;
&lt;p&gt;A hybrid clock, both implementing \Time\Clock from this RFC and the &lt;br&gt;
PSR-20 \Psr\Clock\ClockInterface is rejected. Because ...(reasons)...&lt;/p&gt;
&lt;h1&gt;=============== &lt;br&gt;
End of comments&lt;/h1&gt;
&lt;p&gt;I have no further comments.&lt;/p&gt;
&lt;p&gt;Thank you Tim Düsterhus for considering my comments. &lt;br&gt;
And good luck with the RFC.&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;br&gt;
Mirco Babin&lt;/p&gt;
</description><guid>CAFgk54nKFkTrf44Ndgaritz-xJM2qVyoz-pqtBe1PMQRJmZVBQ@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 16:56:40 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132816</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM &lt;br&gt;
SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when &lt;br&gt;
its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name &lt;br&gt;
starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything &lt;br&gt;
else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is &lt;br&gt;
still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM
 
ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. &lt;br&gt;
I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to &lt;br&gt;
illustrate its usefulness for this specific system. Shipping one binary &lt;br&gt;
instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving &lt;br&gt;
more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), &lt;br&gt;
because FPM no longer loads a second copy of the engine right after the &lt;br&gt;
CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other &lt;br&gt;
systems where boot speed (autoscaling, serverless, etc.) or disk size &lt;br&gt;
is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single &lt;br&gt;
binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc &lt;br&gt;
suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;br&gt;
&lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and &lt;br&gt;
service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; &lt;br&gt;
(thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I can see the value here, and I am not opposed in concept.  My one question is that this essentially privileges the FPM SAPI, right at the time that we're seeing more and more alternate SAPIs.  (FrankenPHP, Swoole, various async tools that just run on the CLI, etc.). Would there be any negative impact for them?  If at some point in the future another SAPI (eg, FrankenPHP or something similar to it) became a first-class web-serving SAPI in php-src, would we then need to package multiple variants?  (FPM-CLI, Franken-CLI, etc.).&lt;/p&gt;
&lt;p&gt;I just want to make sure we don't inadvertently lock in FPM as The Way PHP Runs(tm) just at the time that it no longer is.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>a5607f9c-2904-420d-b169-0095882e77e3@app.fastmail.com</guid><pubDate>Tue, 06 Oct 2026 16:27:02 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132815</link><description>&lt;blockquote&gt;
&lt;ol start="7"&gt;
&lt;li&gt;get vs to&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RFC explicitly states that the Unix timestamp is not the internal &lt;br&gt;
representation. getUnixTimestamp() is therefore a conversion, and by &lt;br&gt;
the RFC's own convention (toIso8601DateTimeString(), &lt;br&gt;
DateTime::toInstant()) it should be toUnixTimestamp(). Duration exposes &lt;br&gt;
its components as properties, so with get*() we'd end up with a third &lt;br&gt;
style within the same family.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I agree with this.  $foo-&amp;gt;toBar() is a very common &amp;quot;type conversion&amp;quot; pattern, and it makes sense to use here as well.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="8"&gt;
&lt;li&gt;getUnixTimestamp() / getUnixTimestampMilliseconds()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Only the milliseconds variant names its unit, and microseconds (used all &lt;br&gt;
over PHP: &lt;code&gt;microtime()&lt;/code&gt;, DateTime) and nanoseconds are missing entirely. A &lt;br&gt;
single pair taking the unit as an argument would cover all of them and &lt;br&gt;
stay symmetric:&lt;/p&gt;
&lt;p&gt;public static function fromUnixTimestamp(int $timestamp, TimeUnit &lt;br&gt;
$unit = TimeUnit::Second): self; &lt;br&gt;
public function toUnixTimestamp(TimeUnit $unit = TimeUnit::Second): &lt;br&gt;
int;&lt;/p&gt;
&lt;p&gt;TimeUnit would be an enum of Second, Millisecond, Microsecond and &lt;br&gt;
Nanosecond, rounding towards negative infinity as already specified. The &lt;br&gt;
current fromUnixTimestampSeconds($seconds, $nanoseconds) could remain alongside.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I would agree here as well.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="13"&gt;
&lt;li&gt;A dedicated parser/formatter instead&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I'd prefer parsing and formatting to live in a dedicated parser/formatter &lt;br&gt;
API (future scope) rather than on Instant, where it would sit next to the &lt;br&gt;
other ISO-8601 profiles and custom patterns. If the pair stays on Instant, &lt;br&gt;
the name should say what it really is (a fixed RFC 3339-like profile), and &lt;br&gt;
the grammar should be part of what we vote on.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I understand the tidiness/purity argument here, and I am generally sympathetic to it.  However, that always needs to be balanced against usability.  Any incoming date/time information to the PHP process is likely to be either an ISO-8601 string or a unix timestamp int.  If we want people to convert those into Instants for doing manipulation and comparison on (which I presume is the case), then that needs to be ergonomically easy to do.  Having to go through multiple parser/converter objects (which some purist is likely to insist be injected from a container rather than instantiated directly; I have been known to be that purist) to get there is not ergonomic.  So if that logic is split off, we would need to be very careful to ensure the result is ergonomically simple and readily copy-pasteable.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol start="14"&gt;
&lt;li&gt;until() vs Duration::between()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Was Duration::between(Instant $a, Instant $b) considered? Calculating a &lt;br&gt;
duration feels like Duration's responsibility to me.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This also seems reasonable, as a named constructor of Duration.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>869af4db-3d86-45ad-afad-072f9721a689@app.fastmail.com</guid><pubDate>Tue, 06 Oct 2026 16:16:55 +0000</pubDate></item><item><title>Deprecate b-prefix for strings</title><link>https://externals.io/message/132814</link><description>&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;I wonder if it might be a good idea to deprecate the &lt;code&gt;b&lt;/code&gt;-prefix now as well.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Previous discussion threads on this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://news-web.php.net/php.internals/98131" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/98131&lt;/a&gt; &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/96743" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/96743&lt;/a&gt; &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/97881" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/97881&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don't really have a strong opinion on this. It seems nobody uses this &lt;br&gt;
anymore, but there also does not seem a big advantage to removing it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sjoerd&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Likewise, I'd probably vote in favor if it came up, but it's not something I am likely to put many other brain cells on.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>65903be7-5959-45de-bb9a-50f89c9ea0fa@app.fastmail.com</guid><pubDate>Tue, 06 Oct 2026 16:00:36 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132813</link><description>&lt;blockquote&gt;
&lt;p&gt;I will reiterate that removing these defaults was a mistake. The &lt;br&gt;
intention of the filter extension was to pre-clean &lt;strong&gt;all&lt;/strong&gt; data coming &lt;br&gt;
into the superglobals through these filters, and then access the raw &lt;br&gt;
(but checked/filtered) data through the extensions filter_get() and &lt;br&gt;
friends methods.&lt;/p&gt;
&lt;p&gt;Removing these defaults cripled the extension.&lt;/p&gt;
&lt;p&gt;If anything, that deprecation ought to be undone, before the extension &lt;br&gt;
gets refreshed.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for explaining this. I understand your concern, and I appreciate &lt;br&gt;
the historical context.&lt;/p&gt;
&lt;p&gt;My intention with the proposed enums in &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24111" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24111&lt;/a&gt; was only to modernize the API and &lt;br&gt;
make filter usage more explicit, rather than to further weaken the &lt;br&gt;
extension’s original purpose.&lt;/p&gt;
&lt;p&gt;I’ll take a closer look at the history and rationale behind the removal of &lt;br&gt;
the defaults before proceeding. If the deprecation should be reconsidered &lt;br&gt;
as part of refreshing the filter extension, I agree that this is worth &lt;br&gt;
discussing first.&lt;/p&gt;
</description><guid>CAO3bawkoMMWAH=G10X=5NNfJWkKjuDhq6FNJeDWGj6t1BfL+jQ@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 15:15:47 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132812</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If there is a real need, I see two simpler options:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'm not sure there is a &lt;em&gt;real need&lt;/em&gt;, but it's a theoretical breaking &lt;br&gt;
change with no way to work around from what I can tell. A hypothetical &lt;br&gt;
use case could be “spawn customer-specific FPM pools from a PHP-based &lt;br&gt;
control panel”, for example for some playground.&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;php-fpm&lt;/code&gt; could ignore &lt;code&gt;--fpm&lt;/code&gt; so that &lt;code&gt;PHP_BINARY --fpm ...&lt;/code&gt; always &lt;br&gt;
work&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;That suggestion makes sense to me and would resolve the above: &lt;code&gt;php-fpm&lt;/code&gt; &lt;br&gt;
would just mean &lt;code&gt;php --fpm&lt;/code&gt; and &lt;code&gt;php --fpm --fpm&lt;/code&gt; would then just be a &lt;br&gt;
duplicate &lt;code&gt;--fpm&lt;/code&gt; flag. Ordering matters with regard to &lt;code&gt;--fpm&lt;/code&gt;, but &lt;br&gt;
that seems obvious enough to explain.&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;The RFC also notes that the standalone PHP FPM binary will remain an &lt;br&gt;
option. Is there any reason to keep support for that, except for &lt;br&gt;
backward compatibility?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No. I'd find this preferable to drop &lt;code&gt;php-fpm&lt;/code&gt; in a separate step/RFC &lt;br&gt;
since that's a fairly big breaking change for packagers.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Should the “this” in “this preferable” mean “it” instead? The “this” in &lt;br&gt;
your phrasing could refer to my suggestion, which doesn't make sense to &lt;br&gt;
me.&lt;/p&gt;
&lt;p&gt;In any case, packagers already need to deal with all kinds of packaging &lt;br&gt;
changes (e.g. OPcache becoming non-optional in PHP 8.5). I'm not sure &lt;br&gt;
adding one additional symlink and/or replacing &lt;code&gt;php-fpm&lt;/code&gt; by &lt;code&gt;php --fpm&lt;/code&gt; &lt;br&gt;
in the service definition is any more complicated than that. Doing it &lt;br&gt;
all in a single step would also mean that there is no weird intermediate &lt;br&gt;
state where when providing support we would also need to differentiate &lt;br&gt;
between “FPM” and “FPM as part of CLI”.&lt;/p&gt;
&lt;p&gt;Best regard &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>646cab71764bc91d7345ded423169038@bastelstu.be</guid><pubDate>Tue, 06 Oct 2026 14:31:32 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132811</link><description>&lt;p&gt;Hi Matthieu,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to illustrate its usefulness for this specific system. Shipping one binary instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), because FPM no longer loads a second copy of the engine right after the CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other systems where boot speed (autoscaling, serverless, etc.) or disk size is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;I like the direction of the proposal and believe it will be a positive change.&lt;/p&gt;
&lt;p&gt;In Debian/Ubuntu, shipping SAPIs as separate packages (&lt;code&gt;php-cli&lt;/code&gt;, &lt;br&gt;
&lt;code&gt;php-fpm&lt;/code&gt;, &lt;code&gt;libapache2-mod-php8.6&lt;/code&gt;, etc) is the norm, and to not break &lt;br&gt;
the packages, I would imagine symlinking would be necessary one way or &lt;br&gt;
the other. Alternately, php-fpm could be a shim that calls CLI with &lt;br&gt;
&lt;code&gt;--fpm&lt;/code&gt; flag, and it depends on &lt;code&gt;php-cli&lt;/code&gt; package.&lt;/p&gt;
&lt;p&gt;I'm also concerned about CLI and FPM parameters. For example, CLI has &lt;br&gt;
&lt;code&gt;-F&lt;/code&gt; argument is to execute a file, but FPM's &lt;code&gt;-F&lt;/code&gt; flag is an alias to &lt;br&gt;
&lt;code&gt;--nodaemonize&lt;/code&gt;. Changing what they do based on the binary/symlink &lt;br&gt;
name or another flag (such as &lt;code&gt;--fpm&lt;/code&gt;) is not really a good idea.&lt;/p&gt;
&lt;p&gt;Thank you, &lt;br&gt;
Ayesh.&lt;/p&gt;
</description><guid>CANLbj-rZTibCMjvYEMyrUOHP+em9HFYHBMexDcJZQO1w_5b_Hw@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 14:23:25 +0000</pubDate></item><item><title>[RFC] [Discussion] Query Parameter Manipulation Support</title><link>https://externals.io/message/132810</link><description>&lt;p&gt;Hi Ignace,&lt;/p&gt;
&lt;p&gt;Finally, I had the capacity to work on this proposal again, after the PHP &lt;br&gt;
8.6 release is now close to the finish line.&lt;/p&gt;
&lt;p&gt;I made a lot of changes to the QueryParams RFC, covering a lot of edge &lt;br&gt;
cases, and explicitly documenting many so far undefined behavior. Here is a &lt;br&gt;
short &amp;quot;changelog&amp;quot;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Immutability: QueryParams is now documented to be readonly (previously it &lt;br&gt;
was TBD)&lt;/li&gt;
&lt;li&gt;Null handling: As proposed by Ignace, QueryParamNullPolicy replaces the &lt;br&gt;
boolean option with three choices: SkipTuple, KeyOnly (the default), and &lt;br&gt;
EmptyString&lt;/li&gt;
&lt;li&gt;Limits and errors: Parsing limits apply only during parsing, while the &lt;br&gt;
nesting limit belongs exclusively to toArray(). Exception behavior is now &lt;br&gt;
specified&lt;/li&gt;
&lt;li&gt;Type conversions: Type conversion rules are documented much more &lt;br&gt;
thoroughly than before&lt;/li&gt;
&lt;li&gt;Array API: Previously open questions are decided and documented, &lt;br&gt;
including nested lists, duplicate keys, conflicting structures, and &lt;br&gt;
malformed bracket notation&lt;/li&gt;
&lt;li&gt;URI/URL integration: The Uri/Url classes will have getQueryParams() and &lt;br&gt;
withQueryParams() methods to make usage and interoperability easier&lt;/li&gt;
&lt;li&gt;Parsing details: The RFC now specifies the handling of empty fields, &lt;br&gt;
missing values, malformed percent-encoding, and invalid UTF-8 etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please give the RFC a thorough read, because I'd like to bring this &lt;br&gt;
proposal to a vote as soon as possible (but not sooner ^^), of course still &lt;br&gt;
giving interested folks a chance &lt;br&gt;
to provide feedback. I'm specifically looking forward to naming &lt;br&gt;
improvements, if there's anything to improve.&lt;/p&gt;
&lt;p&gt;Regards, &lt;br&gt;
Máté&lt;/p&gt;
</description><guid>CAH5C8xV4O5P+mfnYcwNA-F8qwpN-xVv+7kC1oSTrKqab+CS4RQ@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 13:37:52 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132809</link><description>&lt;p&gt;I like this idea. Aesthetically, it makes PHP look more like mainstream languages such as Ruby or Python, in my opinion.&lt;/p&gt;
&lt;p&gt;Something interesting is that on Linux when configuring a PHP web app with Nginx, every request goes from the server to the php-fpm service (i.e: &lt;code&gt;php8.4-fpm.socket&lt;/code&gt; on Debian). I'm actually on openSUSE Leap 16.0, and the socket/service execution step looks like the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ExecStart=/usr/sbin/php-fpm --nodaemonize --fpm-config /etc/php8/fpm/php-fpm.conf
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So yeah, if the PHP-FPM looks like PHP-CLI, then migrating to a single binary would be ok, as the dynamic &lt;a href="http://libphp.so" rel="nofollow" target="_blank"&gt;libphp.so&lt;/a&gt; library is not an option based on your RFC (co.&lt;/p&gt;
&lt;p&gt;However, I have a concern about the OS package maintainers from major Linux package repositories (dpkg, rpm and others). I think, in the case that this becomes the default behavior, they would need to be aware that PHP-FPM is now on a symlink of PHP-CLI (else what happens when you download PHP-FPM?). Because they would need to take the required steps to rebundle PHP (configure the symlink of PHP-FPM to php-cli or deprecate it). Something similar to mysql now being a symlink of now MariaDB by default would take in place.&lt;/p&gt;
&lt;p&gt;Not forgetting that all of those operating systems would have to configure the PHP-CLI package to include the necessary service manager (systemd) script previously available on PHP-FPM. Because there are also a lot of IT infrastructures that depend on it (think about Docker containers, for instance). Also, how would it clash with users of OSes without systemd (openrc, runit)?.&lt;/p&gt;
&lt;p&gt;For the rest, the idea is cool. My concern is around the maintainers of these packages. I think the safest action would be to have it first as a new optional &lt;code&gt;./configure&lt;/code&gt; flag and then progressively pass it to a default behavior. Because this would maybe enable use cases like serverless PHP (the &lt;a href="https://bref.sh" rel="nofollow" target="_blank"&gt;https://bref.sh&lt;/a&gt; project) to be able to have that option by default from a specific Docker image of PHP with that config.&lt;/p&gt;
&lt;p&gt;And well, I think that having a shared library &lt;code&gt;&lt;a href="http://libphp.so" rel="nofollow" target="_blank"&gt;libphp.so&lt;/a&gt;&lt;/code&gt; would actually be a way easier solution to fix it. I have a question about that approach: Isn't it possible to do it by default without any PHP modification?&lt;/p&gt;
&lt;p&gt;Kind Regards, &lt;br&gt;
David Maye.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;El 06/10/2026 12:32 Matthieu Napoli &lt;a href="mailto:matthieu@mnapoli.fr"&gt;matthieu@mnapoli.fr&lt;/a&gt; escribió:&lt;/p&gt;
&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM
 
ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to illustrate its usefulness for this specific system. Shipping one binary instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), because FPM no longer loads a second copy of the engine right after the CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other systems where boot speed (autoscaling, serverless, etc.) or disk size is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; (thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>828205728.334502.1791289542807@hostalia.webmail.es</guid><pubDate>Tue, 06 Oct 2026 12:25:42 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132808</link><description>&lt;blockquote&gt;
&lt;p&gt;This means scripts running in a FPM web context and relying on &lt;br&gt;
&lt;code&gt;PHP_BINARY&lt;/code&gt; cannot spawn fresh FPM instances (for whatever reason), &lt;br&gt;
without adding a &lt;code&gt;--fpm&lt;/code&gt; flag themselves.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Right, though starting a new FPM master from a script running &lt;em&gt;inside&lt;/em&gt; FPM already seems rare to me, and such code would need to know the FPM setup (config file, etc.).&lt;/p&gt;
&lt;p&gt;The opposite case is more common though (scripts in FPM that use &lt;code&gt;PHP_BINARY&lt;/code&gt; to run CLI commands. The RFC would make that simpler.&lt;/p&gt;
&lt;p&gt;If there is a real need, I see two simpler options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;php-fpm&lt;/code&gt; could ignore &lt;code&gt;--fpm&lt;/code&gt; so that &lt;code&gt;PHP_BINARY --fpm ...&lt;/code&gt; always work&lt;/li&gt;
&lt;li&gt;if embedding FPM is the default, then &lt;code&gt;PHP_BINARY --fpm ...&lt;/code&gt; should work in most cases then&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;The RFC also notes that the standalone PHP FPM binary will remain an option. Is there any reason to keep support for that, except for backward compatibility?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No. I'd find this preferable to drop &lt;code&gt;php-fpm&lt;/code&gt; in a separate step/RFC since that's a fairly big breaking change for packagers.&lt;/p&gt;
&lt;p&gt;Matthieu&lt;/p&gt;
</description><guid>b2832487-367c-4575-abb8-544dc9734a26@slotai15m08</guid><pubDate>Tue, 06 Oct 2026 12:21:41 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132807</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for the RFC. The proposal makes sense to me and from what I &lt;br&gt;
understand there are basically no drawbacks to combining the two &lt;br&gt;
binaries into one. I only have one concern regarding:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;PHP_BINARY&lt;/code&gt; in FPM mode is the path of the combined php executable, &lt;br&gt;
where it is the path of php-fpm today (a symlink is resolved to its &lt;br&gt;
target). Unlike php-fpm, that executable can also run CLI scripts.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This means scripts running in a FPM web context and relying on &lt;br&gt;
&lt;code&gt;PHP_BINARY&lt;/code&gt; cannot spawn fresh FPM instances (for whatever reason), &lt;br&gt;
without adding a &lt;code&gt;--fpm&lt;/code&gt; flag themselves. However I don't think it is &lt;br&gt;
possible to determine from PHP itself if the binary is a combined binary &lt;br&gt;
or not. Should we have some &lt;code&gt;PHP_FPM_IN_CLI&lt;/code&gt; constant or similar that &lt;br&gt;
allows scripts to make that distinction.&lt;/p&gt;
&lt;p&gt;The RFC also notes that the standalone PHP FPM binary will remain an &lt;br&gt;
option. Is there any reason to keep support for that, except for &lt;br&gt;
backward compatibility? I think we should strongly encourage folks to &lt;br&gt;
ship PHP as a “single binary” CLI+FPM distribution. Or just CLI where &lt;br&gt;
FPM is not required and the extra dependencies should go away. But just &lt;br&gt;
FPM doesn't feel like a reasonable use case.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>44eaede65aced442a40450b2b63714f2@bastelstu.be</guid><pubDate>Tue, 06 Oct 2026 12:06:48 +0000</pubDate></item><item><title>[RFC] Single binary for CLI and FPM</title><link>https://externals.io/message/132806</link><description>&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I'd like to start the discussion on a new RFC: &lt;a href="https://wiki.php.net/rfc/single-binary-cli-fpm" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/single-binary-cli-fpm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It proposes a new &lt;code&gt;--enable-cli-fpm&lt;/code&gt; build option that links the FPM SAPI into the &lt;code&gt;php&lt;/code&gt; executable. A combined &lt;code&gt;php&lt;/code&gt; binary runs FPM when its first argument is &lt;code&gt;--fpm&lt;/code&gt;, or when it is invoked under a name starting with &lt;code&gt;php-fpm&lt;/code&gt; (e.g. a &lt;code&gt;php-fpm&lt;/code&gt; symlink to &lt;code&gt;php&lt;/code&gt;). Everything else is the CLI, unchanged. The standalone &lt;code&gt;php-fpm&lt;/code&gt; executable is still built.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;php script.php                               # CLI, as today
php --fpm --nodaemonize -y /etc/php-fpm.conf # FPM
 
ln -s php php-fpm
./php-fpm --nodaemonize -y /etc/php-fpm.conf # FPM, through a symlink
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The motivation is that the two executables share almost all their code. I did some measurements with &lt;a href="https://bref.sh"&gt;Bref&lt;/a&gt; on AWS Lambda to illustrate its usefulness for this specific system. Shipping one binary instead of two:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;removes one of the two ~26 MB executables from the runtime (leaving more room under the 250 MB limit for application code)&lt;/li&gt;
&lt;li&gt;cuts the cold start of a minimal FPM application by 70 ms (-25%), because FPM no longer loads a second copy of the engine right after the CLI loaded it&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It makes a difference on AWS Lambda, it might also help on other systems where boot speed (autoscaling, serverless, etc.) or disk size is important.&lt;/p&gt;
&lt;p&gt;And from a simplicity perspective I like the idea of having a single binary with FPM &amp;quot;built-in&amp;quot;.&lt;/p&gt;
&lt;p&gt;There's a secondary vote on enabling the option by default, as Marc suggested when I requested RFC karma.&lt;/p&gt;
&lt;p&gt;I'd especially welcome feedback from packagers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Would you consider shipping &lt;code&gt;php-fpm&lt;/code&gt; as a symlink to a combined &lt;code&gt;php&lt;/code&gt; binary, with the FPM package keeping only the configuration and service files?&lt;/li&gt;
&lt;li&gt;Should this stay opt-in, or be enabled by default?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The implementation is at &lt;a href="https://github.com/php/php-src/pull/23558" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23558&lt;/a&gt; (thanks Jakub and Marc for the reviews so far).&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Matthieu Napoli&lt;/p&gt;
</description><guid>bb9941df-1fa2-426e-a7ed-e626cfdabc4c@slotai15m08</guid><pubDate>Tue, 06 Oct 2026 10:32:16 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132805</link><description>&lt;blockquote&gt;
&lt;p&gt;On 22.9.2026 16:20 CEST Tim Düsterhus &lt;a href="mailto:tim@bastelstu.be"&gt;tim@bastelstu.be&lt;/a&gt; wrote:&lt;/p&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;following Time\Duration in PHP 8.6, Derick and I created an RFC for &lt;br&gt;
Time\Instant and Time\Clock as the next part of the new date and time &lt;br&gt;
API:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Tim, Derick,&lt;/p&gt;
&lt;p&gt;thanks for the RFC and the work you have put into this. &lt;br&gt;
I like the direction.&lt;/p&gt;
&lt;p&gt;I think the following points still need some discussion. Some of &lt;br&gt;
them may overlap with things others have already raised in this thread. Rather than replying to each of those messages separately, I've collected &lt;br&gt;
everything in this one mail and mention who brought a point up where it &lt;br&gt;
applies.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Naming of Clock::now()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The method returns an Instant, but the RFC already plans future classes that combine an instant with a timezone (a ZonedDateTime-like class). Callers &lt;br&gt;
will want to get those from a clock directly as well, without going the long way around: $clock-&amp;gt;now()-&amp;gt;toZonedDateTime($zone). Once a clock can return more than one type, &lt;code&gt;now()&lt;/code&gt; no longer says what you get.&lt;/p&gt;
&lt;p&gt;Naming the method after the process of reading a clock and after what is &lt;br&gt;
read, e.g. $clock-&amp;gt;takeInstant(), which leaves room for $clock-&amp;gt;takeZonedDateTime($zone) later. java.time.Clock and &lt;a href="http://Temporal.Now" rel="nofollow" target="_blank"&gt;Temporal.Now&lt;/a&gt; &lt;br&gt;
also name their methods after the result type. As a side effect, this also &lt;br&gt;
resolves the conflict with PSR-20's ClockInterface::now() that Mirco raised, a single class could implement both interfaces.&lt;/p&gt;
&lt;p&gt;One constraint thought, PHP interfaces can't have default implementations. Adding methods to Time\Clock later would break every userland clock. So either the interface should get its full shape now, or further result types should come in through factories on the target types &lt;br&gt;
(see 2).&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Instant::fromClock(Clock $clock)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You rejected Instant::now() because it would tie Instant to the SystemClock. With a required Clock parameter that objection goes away. It is exactly what Java does. Later classes can then follow the same pattern &lt;br&gt;
(ZonedDateTime::fromClock($clock, $zone)) without the Clock interface ever &lt;br&gt;
growing.&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Clock resolution&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The docblock says &amp;quot;at the resolution offered by the underlying clock&amp;quot;, but &lt;br&gt;
nothing in the API exposes that resolution (Rob raised the same point). I &lt;br&gt;
measured what the platforms report via clock_getres() and what they actually deliver:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;                         clock_getres()   smallest observed step
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;macOS arm64, REALTIME      1 us             1 us &lt;br&gt;
Linux arm64, REALTIME      1 ns             42 ns (24 MHz counter) &lt;br&gt;
Linux, REALTIME_COARSE     1 ms             -&lt;/p&gt;
&lt;p&gt;So clock_getres() is honest on some systems and only nominal on others. I'd still like SystemClock to expose it, documented as the nominal resolution of the source. That is better than no information at all.&lt;/p&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Configurable clock resolution&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I'd like a way to configure the resolution, &lt;br&gt;
e.g. a SystemClock that only ever returns whole seconds. Many consumers (JWT iat/exp, HTTP dates, database columns) never want fractions. &lt;br&gt;
A clock configured that way guarantees whole seconds to every consumer it is injected into, instead of each consumer having to truncate on its own. It also makes test expectations simpler, because the values never carry &lt;br&gt;
fractions.&lt;/p&gt;
&lt;ol start="5"&gt;
&lt;li&gt;Taking a Unix timestamp directly from a clock&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Unix timestamps are used everywhere, not only in PHP, so &amp;quot;current time as a Unix timestamp&amp;quot; is a very common operation. Today that's &lt;code&gt;time()&lt;/code&gt;, which can't be mocked. With this RFC the mockable replacement is &lt;br&gt;
$clock-&amp;gt;now()-&amp;gt;getUnixTimestamp(), which always goes through an Instant &lt;br&gt;
object. I'd like a way to take the Unix timestamp directly from the clock.&lt;/p&gt;
&lt;ol start="6"&gt;
&lt;li&gt;&amp;quot;Follows POSIX time&amp;quot; vs. &amp;quot;unspecified representation&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RFC states that Instants &amp;quot;follow POSIX time&amp;quot;. At the same time it says &lt;br&gt;
that &amp;quot;the internal representation of Time\Instant is intentionally left &lt;br&gt;
unspecified and there are deliberately no public properties. In particular &lt;br&gt;
the 'Unix timestamp' is not the primary representation.&amp;quot;&lt;/p&gt;
&lt;p&gt;I think an unspecified internal representation is the right way forward. But it doesn't match the class being specified as POSIX time. POSIX time is not just one of many ways to look at an instant. It is a specific time &lt;br&gt;
scale: seconds counted since 1970-01-01T00:00:00Z. If Instant follows POSIX time, then the Unix timestamp (plus a fraction of a second) is effectively the model of the class.&lt;/p&gt;
&lt;p&gt;So I'd suggest not defining Instant itself in terms of POSIX time. POSIX &lt;br&gt;
time is relevant where Unix timestamps come in or go out, so it belongs in &lt;br&gt;
the documentation of the Unix timestamp constructor and getter, not in the &lt;br&gt;
definition of the class.&lt;/p&gt;
&lt;ol start="7"&gt;
&lt;li&gt;get vs to&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RFC explicitly states that the Unix timestamp is not the internal &lt;br&gt;
representation. getUnixTimestamp() is therefore a conversion, and by the RFC's own convention (toIso8601DateTimeString(), DateTime::toInstant()) it should be toUnixTimestamp(). Duration exposes its components as properties, so with get*() we'd end up with a third style within the same family.&lt;/p&gt;
&lt;ol start="8"&gt;
&lt;li&gt;getUnixTimestamp() / getUnixTimestampMilliseconds()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Only the milliseconds variant names its unit, and microseconds (used all &lt;br&gt;
over PHP: &lt;code&gt;microtime()&lt;/code&gt;, DateTime) and nanoseconds are missing entirely. A &lt;br&gt;
single pair taking the unit as an argument would cover all of them and stay symmetric:&lt;/p&gt;
&lt;p&gt;public static function fromUnixTimestamp(int $timestamp, TimeUnit $unit = TimeUnit::Second): self; &lt;br&gt;
public function toUnixTimestamp(TimeUnit $unit = TimeUnit::Second): int;&lt;/p&gt;
&lt;p&gt;TimeUnit would be an enum of Second, Millisecond, Microsecond and &lt;br&gt;
Nanosecond, rounding towards negative infinity as already specified. The &lt;br&gt;
current fromUnixTimestampSeconds($seconds, $nanoseconds) could remain alongside.&lt;/p&gt;
&lt;ol start="9"&gt;
&lt;li&gt;getNanoseconds()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It isn't obvious whether this returns the nanoseconds since epoch or the &lt;br&gt;
nanoseconds within the current second. getNanoOfSecond() (Java's &lt;br&gt;
NANO_OF_SECOND) would remove that ambiguity.&lt;/p&gt;
&lt;ol start="10"&gt;
&lt;li&gt;Concepts the ISO-8601 pair brings into Instant&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;An Instant is described as a timezone-less point in time. The ISO-8601 &lt;br&gt;
constructor and getter bring in several concepts that Instant otherwise &lt;br&gt;
deliberately avoids:&lt;/p&gt;
&lt;p&gt;a) parsing and formatting of date-time strings; &lt;br&gt;
b) UTC as the reference (&amp;quot;Z&amp;quot; means a zero offset from UTC; since RFC 9557 it formally means &amp;quot;UTC known, local offset unknown&amp;quot;); &lt;br&gt;
c) a calendar: ISO 8601 uses the proleptic Gregorian calendar with year &lt;br&gt;
0000; &lt;br&gt;
d) an opinionated input and output format&lt;/p&gt;
&lt;ol start="11"&gt;
&lt;li&gt;The accepted input grammar&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The RFC says the parser is strict but &amp;quot;may not support all legal formats&amp;quot;, &lt;br&gt;
and that accepted formats can be extended &amp;quot;by a simple pull request&amp;quot;. That &lt;br&gt;
means the vote doesn't decide the accepted grammar. Widening it later is &lt;br&gt;
also not BC-neutral for code that uses the parser as a validator. I'd like &lt;br&gt;
the RFC to specify the grammar explicitly and to state the outcome for the &lt;br&gt;
cases Ilia listed: comma decimal sign, lowercase t/z, space separator, &lt;br&gt;
-00:00, 24:00:00, 23:59:60, more than 9 fractional digits.&lt;/p&gt;
&lt;p&gt;A related point: &lt;br&gt;
the docblock requires &amp;quot;a zone offset&amp;quot; while the prose requires &amp;quot;a timezone&amp;quot;. Is an RFC 9557 suffix such as [Europe/Berlin] accepted, rejected or ignored?&lt;/p&gt;
&lt;ol start="12"&gt;
&lt;li&gt;The output format&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The getter always emits Z, has a fractional part whose width depends on the value (omitted when zero, otherwise 9 digits), and uses signed expanded years outside 0000-9999.&lt;/p&gt;
&lt;p&gt;You mentioned that the getter implements the RFC 3339 subset of ISO-8601. &lt;br&gt;
That is not quite true: RFC 3339 only allows 4-digit years 0000-9999, so the output isn't RFC 3339 for expanded years.&lt;/p&gt;
&lt;p&gt;I also tested how well the possible outputs work as input for the existing &lt;br&gt;
DateTime API (PHP 8.5):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;new DateTimeImmutable($s) accepts all of them, but truncates the 9 &lt;br&gt;
fractional digits to 6 without notice.&lt;/li&gt;
&lt;li&gt;With createFromFormat() no single format string works. &lt;code&gt;DATE_ATOM&lt;/code&gt; only &lt;br&gt;
matches whole seconds with 4-digit years. DATE_RFC3339_EXTENDED (.v, &lt;br&gt;
3 digits) never matches. 'Y-m-d\TH:i:s.uP' fails on 9 digits because &lt;br&gt;
'u' takes at most 6, so you need a hack like 'Y-m-d\TH:i:s.u???P'. &lt;br&gt;
Expanded years need 'X' instead of 'Y'.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Because the fractional part is only present for some values, any strict &lt;br&gt;
consumer needs at least two format strings and has to choose between them, &lt;br&gt;
which is the trap Ilia described. An output that always includes the &lt;br&gt;
fractional part would at least make 'X-m-d\TH:i:s.u???P' work for every &lt;br&gt;
value.&lt;/p&gt;
&lt;ol start="13"&gt;
&lt;li&gt;A dedicated parser/formatter instead&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I'd prefer parsing and formatting to live in a dedicated parser/formatter &lt;br&gt;
API (future scope) rather than on Instant, where it would sit next to the &lt;br&gt;
other ISO-8601 profiles and custom patterns. If the pair stays on Instant, &lt;br&gt;
the name should say what it really is (a fixed RFC 3339-like profile), and &lt;br&gt;
the grammar should be part of what we vote on.&lt;/p&gt;
&lt;ol start="14"&gt;
&lt;li&gt;until() vs Duration::between()&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Was Duration::between(Instant $a, Instant $b) considered? Calculating a &lt;br&gt;
duration feels like Duration's responsibility to me.&lt;/p&gt;
&lt;ol start="15"&gt;
&lt;li&gt;Smaller things&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;On 32-bit, Duration only covers about 68 years, so until() is more &lt;br&gt;
limited there than the examples suggest. That's worth a sentence.&lt;/li&gt;
&lt;li&gt;Duration uses sign-magnitude for its (seconds, nanoseconds) pair, while fromUnixTimestamp(-1, 500_000_000) uses floor semantics (-0.5s). Both are defensible, but the RFC should say why they differ.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Marc&lt;/p&gt;
</description><guid>686875538.749959.1791278269719@app.mailbox.org</guid><pubDate>Tue, 06 Oct 2026 09:17:49 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132804</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Sorry for the delay. I took some time to think through the testing and &lt;br&gt;
ownership points and verify the changes on both platforms.&lt;/p&gt;
&lt;p&gt;I have updated the RFC and implementation to v0.4:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/io_terminal" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/io_terminal&lt;/a&gt; &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/23941" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/23941&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ilia wrote:&lt;/p&gt;
&lt;p&gt;I agree with Tim and Bob: drop both interfaces and rename SystemTerminal to &lt;br&gt;
Terminal.&lt;/p&gt;
&lt;p&gt;This is now implemented. Terminal and ModeToken are final native classes, &lt;br&gt;
with one Terminal implementation and the existing fromStdio() and &lt;br&gt;
fromStreams() factories.&lt;/p&gt;
&lt;p&gt;Larry, the scripted-stream approach now works for key and secret reads as &lt;br&gt;
well as line reads. readKey() decodes ordinary byte streams on both &lt;br&gt;
platforms, readSecret() accepts scripted input, and enableRawMode() returns &lt;br&gt;
a no-op lease for non-terminal streams. This gives application input tests &lt;br&gt;
a straightforward PHP-stream approach without adding interfaces to core. &lt;br&gt;
Native dimensions, resize events and mode failures still need terminal &lt;br&gt;
integration tests.&lt;/p&gt;
&lt;p&gt;Tim, your point about keeping Windows test infrastructure separate from the &lt;br&gt;
long-term API design helped clarify this. I also investigated &lt;br&gt;
create_new_console on Windows 11 ARM64. With standard input redirected to a &lt;br&gt;
pipe, the child still reads that pipe; creating a console does not make &lt;br&gt;
those bytes native console key events. Opening CONIN$/CONOUT$ gives access &lt;br&gt;
to console handles, but writing bytes with &lt;code&gt;fwrite()&lt;/code&gt; does not inject input &lt;br&gt;
records. The native console checks therefore used WriteConsoleInputW() &lt;br&gt;
through a test harness. That distinction no longer dictates the public API: &lt;br&gt;
ordinary streams support application input tests on Windows too.&lt;/p&gt;
&lt;p&gt;Ilia's other points are addressed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Raw-mode acquisition preserves POSIX output settings, including OPOST. &lt;br&gt;
The RFC now specifies the observable input behavior.&lt;/li&gt;
&lt;li&gt;Leases record the acquiring process. A forked child's cleanup does not &lt;br&gt;
restore the parent's terminal mode; explicit restoration of an inherited &lt;br&gt;
parent token is rejected.&lt;/li&gt;
&lt;li&gt;Terminal no longer retains the latest token. restoreMode() requires a &lt;br&gt;
token and returns void. Normal completion means the lease was released; &lt;br&gt;
failures throw. An explicit final restoration failure leaves the token &lt;br&gt;
active for a retry.&lt;/li&gt;
&lt;li&gt;Key::Insert and Key::ShiftTab are included.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Nicolas's shared logical-terminal lease model is retained: the first &lt;br&gt;
acquisition saves the mode, overlapping leases can be released in any &lt;br&gt;
order, and the final release restores the saved state. Cross-wrapper &lt;br&gt;
restoration for the same terminal also remains supported.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;readLine()&lt;/code&gt; keeps its limited scope, without a portable editor or timeout &lt;br&gt;
parameter. It does not override an outstanding native raw-mode lease. The &lt;br&gt;
output stream remains useful for geometry and resize detection; application &lt;br&gt;
output continues through normal stream APIs.&lt;/p&gt;
&lt;p&gt;Local testing covered macOS and Windows 11 ARM64, including native Windows &lt;br&gt;
console input, Unicode and mode restoration. The PR also includes &lt;br&gt;
regressions for input transitions, split CRLF handling and timeout behavior.&lt;/p&gt;
&lt;p&gt;Thanks to everyone for working through this. I would like to move this &lt;br&gt;
revision toward voting after allowing time to review these changes. Please &lt;br&gt;
flag any remaining concerns with the public contract or implementation.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Pratik&lt;/p&gt;
</description><guid>CA+9BsNe6hiTUUhLXZu80p2bDPMes3DvbWMoanHjxTYzTKQCaBg@mail.gmail.com</guid><pubDate>Tue, 06 Oct 2026 08:27:15 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132803</link><description>&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;rounds&lt;/code&gt; and &lt;code&gt;cost&lt;/code&gt; are the same thing. The format calls it &lt;code&gt;rounds&lt;/code&gt;, &lt;br&gt;
but the PHP API calls it &lt;code&gt;cost&lt;/code&gt;. Keeping &lt;code&gt;cost&lt;/code&gt; on the PHP API makes &lt;br&gt;
sense to me for consistency with &lt;code&gt;PASSWORD_BCRYPT&lt;/code&gt;, even if it is &lt;br&gt;
inconsistent with the hash string. &lt;br&gt;
Thank you for the explanation. This inconsistency made me believe there &lt;br&gt;
may be several rounds of sha256 too&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>0a721eaf-05f9-4947-8a29-339078c891e5@sandfox.me</guid><pubDate>Tue, 06 Oct 2026 08:13:00 +0000</pubDate></item><item><title>Deprecate b-prefix for strings</title><link>https://externals.io/message/132802</link><description>&lt;blockquote&gt;
&lt;p&gt;I wonder if it might be a good idea to deprecate the &lt;code&gt;b&lt;/code&gt;-prefix now as well.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Previous discussion threads on this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://news-web.php.net/php.internals/98131" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/98131&lt;/a&gt; &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/96743" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/96743&lt;/a&gt; &lt;br&gt;
&lt;a href="https://news-web.php.net/php.internals/97881" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/97881&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don't really have a strong opinion on this. It seems nobody uses this anymore, but there also does not seem a big advantage to removing it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sjoerd&lt;/p&gt;
</description><guid>6a946597-f07a-4f93-97de-8825dabae935@app.fastmail.com</guid><pubDate>Tue, 06 Oct 2026 08:04:49 +0000</pubDate></item><item><title>Deprecate b-prefix for strings</title><link>https://externals.io/message/132801</link><description>&lt;p&gt;Hi Juliette,&lt;/p&gt;
&lt;p&gt;I'm happy to work on the C code, and have added this as an entry to the 8.7 &lt;br&gt;
deprecations RFC at &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/deprecations_php_8_7#deprecate_the_b_prefix_for_binary_strings" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/deprecations_php_8_7#deprecate_the_b_prefix_for_binary_strings&lt;/a&gt;. &lt;br&gt;
If you have edit access and want to add the reasoning, please feel free - I &lt;br&gt;
didn't copy from your original message because the wiki is licensed under &lt;br&gt;
the &amp;quot;CC Attribution-Noncommercial-Share Alike 4.0 International&amp;quot; license &lt;br&gt;
and I can't agree to that for text that I didn't write. If you can't or &lt;br&gt;
don't want to update the RFC page, I'll expand on the reasoning at some &lt;br&gt;
point between now and when that RFC is officially under discussion next &lt;br&gt;
year.&lt;/p&gt;
&lt;p&gt;-Daniel&lt;/p&gt;
&lt;p&gt;On Mon, Oct 5, 2026 at 2:39 PM Juliette Reinders Folmer &amp;lt; &lt;br&gt;
&lt;a href="mailto:php-internals_nospam@adviesenzo.nl" rel="nofollow" target="_blank"&gt;php-internals_nospam@adviesenzo.nl&lt;/a&gt;&amp;gt; wrote:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;All,&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;b&lt;/code&gt; string prefix and the &lt;code&gt;(binary)&lt;/code&gt; cast were both introduced in PHP &lt;br&gt;
5.2.1 for forward compatibility with PHP 6.&lt;/p&gt;
&lt;p&gt;In 2016, there was an RFC [1] targeting PHP 7.x to deprecate both, which &lt;br&gt;
was declined.&lt;/p&gt;
&lt;p&gt;Since then, the &lt;code&gt;(binary)&lt;/code&gt; type cast has now been deprecated in PHP 8.5.0 &lt;br&gt;
[2], but as far as I can see, the &lt;code&gt;b&lt;/code&gt;-prefix for strings is still supported.&lt;/p&gt;
&lt;p&gt;I can't remember ever coming across this in the wild, so I wonder if it &lt;br&gt;
might be a good idea to deprecate the &lt;code&gt;b&lt;/code&gt;-prefix now as well.&lt;/p&gt;
&lt;p&gt;I'll happily create an RFC for this if the you all think it's a good idea.&lt;/p&gt;
&lt;p&gt;Opinions ?&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
&lt;p&gt;1: &lt;a href="https://wiki.php.net/rfc/binary_string_deprecation" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/binary_string_deprecation&lt;/a&gt; &lt;br&gt;
2: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Just in case you missed it in the avalanche of proposals being discussed &lt;br&gt;
on the list at this moment.&lt;/p&gt;
&lt;p&gt;So far, this suggestion has had one response, which is not enough to make &lt;br&gt;
it worth the effort for me to write an RFC and find someone to collaborate &lt;br&gt;
with for the C-code.&lt;/p&gt;
&lt;p&gt;Unless there are more people who respond to indicate interest in this &lt;br&gt;
proposal, I will not pursue it.&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
&lt;/blockquote&gt;
</description><guid>CALaXqqTK=jLCEranVvbrmxVX5WrydjZ9KdPqup-hj-LfOMMZyw@mail.gmail.com</guid><pubDate>Mon, 05 Oct 2026 21:44:07 +0000</pubDate></item><item><title>Deprecate b-prefix for strings</title><link>https://externals.io/message/132800</link><description>&lt;blockquote&gt;
&lt;p&gt;All,&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;b&lt;/code&gt; string prefix and the &lt;code&gt;(binary)&lt;/code&gt; cast were both introduced in &lt;br&gt;
PHP 5.2.1 for forward compatibility with PHP 6.&lt;/p&gt;
&lt;p&gt;In 2016, there was an RFC [1] targeting PHP 7.x to deprecate both, &lt;br&gt;
which was declined.&lt;/p&gt;
&lt;p&gt;Since then, the &lt;code&gt;(binary)&lt;/code&gt; type cast has now been deprecated in PHP &lt;br&gt;
8.5.0 [2], but as far as I can see, the &lt;code&gt;b&lt;/code&gt;-prefix for strings is &lt;br&gt;
still supported.&lt;/p&gt;
&lt;p&gt;I can't remember ever coming across this in the wild, so I wonder if &lt;br&gt;
it might be a good idea to deprecate the &lt;code&gt;b&lt;/code&gt;-prefix now as well.&lt;/p&gt;
&lt;p&gt;I'll happily create an RFC for this if the you all think it's a good idea.&lt;/p&gt;
&lt;p&gt;Opinions ?&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
&lt;p&gt;1: &lt;a href="https://wiki.php.net/rfc/binary_string_deprecation" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/binary_string_deprecation&lt;/a&gt; &lt;br&gt;
2: &lt;br&gt;
&lt;a href="https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_non-standard_cast_names&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Just in case you missed it in the avalanche of proposals being discussed &lt;br&gt;
on the list at this moment.&lt;/p&gt;
&lt;p&gt;So far, this suggestion has had one response, which is not enough to &lt;br&gt;
make it worth the effort for me to write an RFC and find someone to &lt;br&gt;
collaborate with for the C-code.&lt;/p&gt;
&lt;p&gt;Unless there are more people who respond to indicate interest in this &lt;br&gt;
proposal, I will not pursue it.&lt;/p&gt;
&lt;p&gt;Smile, &lt;br&gt;
Juliette&lt;/p&gt;
</description><guid>6AC41524.2070903@adviesenzo.nl</guid><pubDate>Mon, 05 Oct 2026 21:22:44 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132799</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;following Time\Duration in PHP 8.6, Derick and I created an RFC for &lt;br&gt;
Time\Instant and Time\Clock as the next part of the new date and time &lt;br&gt;
API:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This time we have several months until the next feature freeze, so &lt;br&gt;
there’s place to discuss additional functionality that we missed. &lt;br&gt;
Nevertheless we would like to keep the RFC focused so that every &lt;br&gt;
decision gets the attention it deserves and some bits are already listed &lt;br&gt;
as “Future Scope” to that effect.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hi Tim,&lt;/p&gt;
&lt;p&gt;I'm just now getting around to reading over the RFC, and I've read most messages but not all of them. So, I apologize if I'm reopening any old discussions here.&lt;/p&gt;
&lt;p&gt;After spending much of the last 4-5 years working on a database that needs to deal with relativity, I'd recommend dropping the physics framing in the introduction. Time doesn't move at the same speed for everyone, even on Earth, and you don't specify a frame of reference for the instant. It would also make it easier to explain &lt;code&gt;until&lt;/code&gt; as &amp;quot;computes the difference between two represented time values. It does not establish how much physical time elapsed between the events that produced those values.&amp;quot;&lt;/p&gt;
&lt;p&gt;This also raises a question about uncertainty. I appreciate that the RFC distinguishes the nanosecond precision of the representation from the resolution of the underlying clock. However, &lt;code&gt;Clock::now()&lt;/code&gt; returns only an &lt;code&gt;Instant&lt;/code&gt;, with no way through that contract to convey the source resolution or any available uncertainty information. I've had servers lose access to their hardware clock due to hardware malfunctions, so this is not just a theoretical concern. Where that information is available, it should be preserved alongside the reading. Where it is unknown, it should remain explicitly unknown. Printing nine fractional digits cannot supply that information.&lt;/p&gt;
&lt;p&gt;That being said, other than the introduction throwing me into a &amp;quot;things programmers wrongly believe about time&amp;quot; rage, this is really well written.&lt;/p&gt;
&lt;p&gt;I think there are some things worth addressing in the current RFC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;Instant&lt;/code&gt; should throw when serialized to JSON. I understand the argument is that applications should choose their own representation, but the choice should be enforced rather than silently doing the wrong thing. Or provide an opaque serialization that can restore the &lt;code&gt;Instant&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;DateTimeInterface&lt;/code&gt; is missing the &lt;code&gt;toInstant()&lt;/code&gt; method, is that by design?&lt;/li&gt;
&lt;li&gt;The backward-compatibility section still says this RFC only introduces three new namespaced symbols. It should also cover the new methods on &lt;code&gt;DateTime&lt;/code&gt; and &lt;code&gt;DateTimeImmutable&lt;/code&gt;, including potential conflicts with existing subclass methods named &lt;code&gt;toInstant()&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;— Rob&lt;/p&gt;
</description><guid>22804366-02b3-4575-b880-7c56a67f5dd9@app.fastmail.com</guid><pubDate>Mon, 05 Oct 2026 15:29:42 +0000</pubDate></item><item><title>[RFC] IntlRelativeDateTimeFormatter</title><link>https://externals.io/message/132798</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;As planned, the voting process of the &amp;quot;IntlRelativeDateTimeFormatter&amp;quot; &lt;br&gt;
RFC will be start at Oct 8. This is an intent-to-vote email to make sure &lt;br&gt;
you are informed that the two-week cool-down period is over and we &lt;br&gt;
are now about to move to the voting stage.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/reldateformatter" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/reldateformatter&lt;/a&gt; &lt;br&gt;
Discussion thread: &lt;a href="https://externals.io/message/132187" rel="nofollow" target="_blank"&gt;https://externals.io/message/132187&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;--Weilin Du&lt;/p&gt;
</description><guid>tencent_0485CB0C3A12712A027DD7DD52026F58D907@qq.com</guid><pubDate>Mon, 05 Oct 2026 15:22:37 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132797</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;For the “always enabled” extensions it doesn't really matter &lt;em&gt;where&lt;/em&gt; &lt;br&gt;
the code is located and the (observable) end result for the user is &lt;br&gt;
the same (except for &lt;code&gt;ReflectionExtension&lt;/code&gt;). Time\Duration went into &lt;br&gt;
ext/date for simplicity, since timelib is already properly wired into &lt;br&gt;
ext/date.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It matters how code is organised. Patterns, assumptions, cognitive &lt;br&gt;
load, these, that. I think that's important. A &amp;quot;doesn't really matter &lt;br&gt;
&lt;em&gt;where&lt;/em&gt;&amp;quot; approach is what brings code where core is.&lt;/p&gt;
&lt;p&gt;I would find it more natural to look at the namespace &lt;code&gt;Time&lt;/code&gt;, and find &lt;br&gt;
an &lt;code&gt;ext/time&lt;/code&gt;. Me getting confused in my last mail shows it nicely. My &lt;br&gt;
mail was in draft since you opened the discussion, today I found time &lt;br&gt;
to answer and whoops mixed up the polling follow up commit with where &lt;br&gt;
things actually live. :)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For the vast majority of PHP developers the exact extension where the &lt;br&gt;
code lives is not relevant - they likely don't even know that PHP’s &lt;br&gt;
always-enabled standard library is split into multiple extensions, since &lt;br&gt;
no action is required for it to be available. Accordingly the RFC also &lt;br&gt;
leaves this unspecified as an implementation detail.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If &amp;quot;doesn't really matter &lt;em&gt;where&lt;/em&gt;&amp;quot; stands, then it cannot hurt to &lt;br&gt;
separate it. So: why &lt;em&gt;not&lt;/em&gt; doing it?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;ext/date was the pragmatic choice to get things into PHP 8.6. Splitting &lt;br&gt;
it out would likely also require a separate ext/timelib extension &lt;br&gt;
(similar to ext/lexbor) that provides the underlying library for &lt;br&gt;
internal use. Otherwise we would just move some files - that are already &lt;br&gt;
entirely standalone - into a separate directory, but not actually do &lt;br&gt;
anything meaningful to separate ext/time from ext/date.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>40db56da1169ffdd97e13c1320eb8601@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 15:10:06 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132796</link><description>&lt;p&gt;Hey Tim,&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Why would this not become an always bundled &lt;code&gt;ext/time&lt;/code&gt;?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For the “always enabled” extensions it doesn't really matter &lt;em&gt;where&lt;/em&gt; &lt;br&gt;
the code is located and the (observable) end result for the user is &lt;br&gt;
the same (except for &lt;code&gt;ReflectionExtension&lt;/code&gt;). Time\Duration went into &lt;br&gt;
ext/date for simplicity, since timelib is already properly wired into &lt;br&gt;
ext/date.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It matters how code is organised. Patterns, assumptions, cognitive load, &lt;br&gt;
these, that. I think that's important. A &amp;quot;doesn't really matter &lt;em&gt;where&lt;/em&gt;&amp;quot; &lt;br&gt;
approach is what brings code where core is.&lt;/p&gt;
&lt;p&gt;I would find it more natural to look at the namespace &lt;code&gt;Time&lt;/code&gt;, and find &lt;br&gt;
an &lt;code&gt;ext/time&lt;/code&gt;. Me getting confused in my last mail shows it nicely. My &lt;br&gt;
mail was in draft since you opened the discussion, today I found time to &lt;br&gt;
answer and whoops mixed up the polling follow up commit with where &lt;br&gt;
things actually live. :)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;That is accurate.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If &amp;quot;doesn't really matter &lt;em&gt;where&lt;/em&gt;&amp;quot; stands, then it cannot hurt to &lt;br&gt;
separate it. So: why &lt;em&gt;not&lt;/em&gt; doing it?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Cheers &lt;br&gt;
Nick&lt;/p&gt;
</description><guid>9ab4b7eb-d0da-4cf5-b56b-155fd9f83f92@nicksdot.dev</guid><pubDate>Mon, 05 Oct 2026 14:53:43 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132795</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;following Time\Duration in PHP 8.6, Derick and I created an RFC for &lt;br&gt;
Time\Instant and Time\Clock as the next part of the new date and time &lt;br&gt;
API:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Why would this not become an always bundled &lt;code&gt;ext/time&lt;/code&gt;?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For the “always enabled” extensions it doesn't really matter &lt;em&gt;where&lt;/em&gt; the &lt;br&gt;
code is located and the (observable) end result for the user is the same &lt;br&gt;
(except for &lt;code&gt;ReflectionExtension&lt;/code&gt;). Time\Duration went into ext/date for &lt;br&gt;
simplicity, since timelib is already properly wired into ext/date.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Since this proposed new date/time API will be the successor of the old &lt;br&gt;
date/time API, why not also physically &amp;amp; cleanly separate the new from &lt;br&gt;
the old stuff? &lt;code&gt;ext/standard&lt;/code&gt; is such a kitchen sink already that I &lt;br&gt;
wonder why modern successors would not live in a more &amp;quot;sensible&amp;quot; &lt;br&gt;
structure. Imagine a (far) future where we could chose to compile PHP &lt;br&gt;
with or without legacy stuff -- clean separation would make this &lt;br&gt;
easier.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It's ext/date, not ext/standard where the API lives. For Time\Duration &lt;br&gt;
we already split off the implementation into a separate and effectively &lt;br&gt;
standalone &lt;code&gt;php_time.h&lt;/code&gt; header with &lt;code&gt;php_time.c&lt;/code&gt; and &lt;code&gt;time_duration.c&lt;/code&gt; &lt;br&gt;
source files, instead of the &lt;code&gt;php_date.[ch]&lt;/code&gt; kitchen sink.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;As far as my understanding of the policy goes, nothing would forbid &lt;br&gt;
making this an extension (see ext/uri)?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;That is accurate.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>f17b5ea8f2f34326c3fd2930cfde6c6c@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 14:05:57 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132794</link><description>&lt;p&gt;Hey Tim,&lt;/p&gt;
&lt;p&gt;thanks for the RFC.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;following Time\Duration in PHP 8.6, Derick and I created an RFC for &lt;br&gt;
Time\Instant and Time\Clock as the next part of the new date and time &lt;br&gt;
API:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Why would this not become an always bundled &lt;code&gt;ext/time&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;You called it 'greenfield design', and said 'deliberately don't want to &lt;br&gt;
“infect” the new API with ideas from the legacy API'. Yet it lives next &lt;br&gt;
to this old code. It was also mentioned that JavaScript's &lt;code&gt;Temporal&lt;/code&gt; is &lt;br&gt;
roughly where the journey goes, which is quite some scope yet to come.&lt;/p&gt;
&lt;p&gt;Since this proposed new date/time API will be the successor of the old &lt;br&gt;
date/time API, why not also physically &amp;amp; cleanly separate the new from &lt;br&gt;
the old stuff? &lt;code&gt;ext/standard&lt;/code&gt; is such a kitchen sink already that I &lt;br&gt;
wonder why modern successors would not live in a more &amp;quot;sensible&amp;quot; &lt;br&gt;
structure. Imagine a (far) future where we could chose to compile PHP &lt;br&gt;
with or without legacy stuff -- clean separation would make this easier.&lt;/p&gt;
&lt;p&gt;As far as my understanding of the policy goes, nothing would forbid &lt;br&gt;
making this an extension (see ext/uri)?&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Cheers &lt;br&gt;
Nick&lt;/p&gt;
</description><guid>d50ade1d-4187-4bae-8fc1-6703ec4a5950@nicksdot.dev</guid><pubDate>Mon, 05 Oct 2026 13:57:28 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132793</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I propose to add a new hashing algorithm to use in password_hash and &lt;br&gt;
password_verify.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/bcrypt_sha256" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_sha256&lt;/a&gt; &amp;lt;&lt;a href="https://wiki.php.net/rfc/" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/&lt;/a&gt; &lt;br&gt;
bcrypt_sha256&amp;gt; &lt;br&gt;
PR: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt; &amp;lt;&lt;a href="https://github.com/php/" rel="nofollow" target="_blank"&gt;https://github.com/php/&lt;/a&gt; &lt;br&gt;
php-src/pull/24073&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It appears to me like it needs a rounds config and a &lt;br&gt;
PASSWORD_BCRYPT_SHA256_DEFAULT_ROUNDS constant, so we can have&lt;/p&gt;
&lt;p&gt;// be extra secure &lt;br&gt;
password_hash($password, PASSWORD_BCRYPT_SHA256, [ &lt;br&gt;
&amp;quot;cost&amp;quot; =&amp;gt; PASSWORD_BCRYPT_SHA256_DEFAULT_COST + 2, &lt;br&gt;
&amp;quot;rounds&amp;quot; =&amp;gt; PASSWORD_BCRYPT_SHA256_DEFAULT_ROUNDS + 2, &lt;br&gt;
];&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;code&gt;rounds&lt;/code&gt; and &lt;code&gt;cost&lt;/code&gt; are the same thing. The format calls it &lt;code&gt;rounds&lt;/code&gt;, &lt;br&gt;
but the PHP API calls it &lt;code&gt;cost&lt;/code&gt;. Keeping &lt;code&gt;cost&lt;/code&gt; on the PHP API makes &lt;br&gt;
sense to me for consistency with &lt;code&gt;PASSWORD_BCRYPT&lt;/code&gt;, even if it is &lt;br&gt;
inconsistent with the hash string.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>72e0befab776cde367e7fa07c904d14e@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 13:38:36 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132792</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Can an extra explanation be added in the introduction near the &lt;br&gt;
aforementioned RFC paragraph? Something like:&lt;/p&gt;
&lt;p&gt;A \Time\Instant can be viewed as a replacement for the Unix-Epoch-int. &lt;br&gt;
With the difference that the base-date might not be 1970-01-01. And &lt;br&gt;
with the difference that the \Time\Instant can have more precision in &lt;br&gt;
the form of milliscondes, microseconds, nanoseconds. The base-date &lt;br&gt;
and extra precision are an implementation detail and not described &lt;br&gt;
further. This also means the full timerange of the \Time\Instant is at &lt;br&gt;
least that of the Unix-Epoch-int, but can be extended in the future.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I'll put adding a clarification on my list for the next RFC update.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;[…] &lt;br&gt;
At some point in the future time, one of the 4 libraries switches &lt;br&gt;
to \Time\SystemClock. Let's assume it is Beta that adapts. How is this &lt;br&gt;
code then going to look?&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
//
// Modified theoretical PSR-20-application
//

function AFunctionOfTheApplication()
{
    // $clock might also come from a Dependency Injection container.
    // Or be injected via parameters or via constructor injection.
    // It doesn't really matter.
    $clock = new MyApp_Clock();

    // The $clock is injected into external libraries. These
    // libraries are not under the control of the application.
    // Also the libraries do not use the Dependency Injection
    // container of the application. Otherwise the DI container
    // would have beeen provided as parameter instead of the
    // \Psr\Clock\ClockInterface.
    $result1 = Library_Alfa_Do_Something($clock);

    // Or use the provided Psr20ToNative adapter.
    $clockInstant = new \Time\SystemClock();
    $result2 = Library_Beta_Do_Something($clockInstant);

    $result3 = Library_Gamma_Do_Something($clock);

    $result4 = Library_Theta_Do_Something($clock);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I hope the pattern becomes clear. After the \Time\Clock fact &lt;br&gt;
the PSR-20-application will be split in 2 clocks. Carefully selecting &lt;br&gt;
the right clock for the right call. And the careful selection has to &lt;br&gt;
take place on every update of any external library. Because the &lt;br&gt;
external library might have switched to \Time\Clock at any moment. &lt;br&gt;
This is a maintenance disaster.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The expectation is that you would use one of the two adapters to &lt;br&gt;
translate between the PSR-20 clock and PHP’s native clock, depending on &lt;br&gt;
which one is the source of truth in your application. The resulting code &lt;br&gt;
would look like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; function AFunctionOfTheApplication()
 {
     $clock = new MyApp_Clock();

     // The PSR-20 clock is the canonical one for this application,
     // create the native adapter.
     $nativeClock = new Psr20ToNative($clock);

     $result1 = Library_Alfa_Do_Something($clock);

     $result2 = Library_Beta_Do_Something($nativeClock);

     $result3 = Library_Gamma_Do_Something($clock);

     $result4 = Library_Theta_Do_Something($clock);
 }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is one extra line to initialize the &lt;code&gt;$nativeClock&lt;/code&gt; adapter and one &lt;br&gt;
changed line to pass the native clock to Beta instead of the PSR-20 &lt;br&gt;
clock.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;But because the \Time\Clock-&amp;gt;now() conflicts, as I have &lt;br&gt;
demonstrated, with the \Psr\Clock\ClockInterface-&amp;gt;now(), this &lt;br&gt;
one-time solution is not possible. Now assume this PSR-20-application &lt;br&gt;
is a big one, thousands of classes, millions line of code. This will &lt;br&gt;
become a PSR-20-application maintenance disaster.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As Larry noted, changing from PSR-20 to the new date and time API would &lt;br&gt;
be a breaking change. This kind of migration would also not be limited &lt;br&gt;
to just the change in clocks. The &lt;code&gt;Time\Instant&lt;/code&gt;, and the modeling of &lt;br&gt;
the new date and time API in general are not a drop-in replacement for &lt;br&gt;
the existing &lt;code&gt;DateTimeImmutable&lt;/code&gt; API. A library that migrates from &lt;br&gt;
PSR-20 to the native clock will want to consistently use the date and &lt;br&gt;
time API to benefit from it. This will affect internal calculations and &lt;br&gt;
possibly returned values (e.g. returning an &lt;code&gt;Instant&lt;/code&gt; where previously a &lt;br&gt;
&lt;code&gt;DateTimeImmutable&lt;/code&gt; was returned). Just replacing the clock and keeping &lt;br&gt;
everything else the same brings little benefit. Changing the clock you &lt;br&gt;
pass in is the smallest part of the migration effort.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>7c01bcb8252210e0962b4f14e975080c@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 13:36:29 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132791</link><description>&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Get rid of SAPI-side input filters for the superglobals; they &lt;br&gt;
complicate code that works with them a bit. The INI option that &lt;br&gt;
controls them is already deprecated, so, an RFC to get rid of them &lt;br&gt;
completely?&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;I will reiterate that removing these defaults was a mistake. The &lt;br&gt;
intention of the filter extension was to pre-clean &lt;strong&gt;all&lt;/strong&gt; data coming &lt;br&gt;
into the superglobals through these filters, and then access the raw &lt;br&gt;
(but checked/filtered) data through the extensions filter_get() and &lt;br&gt;
friends methods.&lt;/p&gt;
&lt;p&gt;Removing these defaults cripled the extension.&lt;/p&gt;
&lt;p&gt;If anything, that deprecation ought to be undone, before the extension &lt;br&gt;
gets refreshed.&lt;/p&gt;
&lt;p&gt;cheers, &lt;br&gt;
Derick&lt;/p&gt;
&lt;p&gt;-- &lt;br&gt;
&lt;a href="https://derickrethans.nl" rel="nofollow" target="_blank"&gt;https://derickrethans.nl&lt;/a&gt; | &lt;a href="https://xdebug.org" rel="nofollow" target="_blank"&gt;https://xdebug.org&lt;/a&gt; | &lt;a href="https://xdebug.cloud" rel="nofollow" target="_blank"&gt;https://xdebug.cloud&lt;/a&gt; &lt;br&gt;
Author of Xdebug. Like it? Consider supporting me: &lt;a href="https://xdebug.org/support" rel="nofollow" target="_blank"&gt;https://xdebug.org/support&lt;/a&gt; &lt;br&gt;
mastodon: @&lt;a href="mailto:derickr@phpc.social" rel="nofollow" target="_blank"&gt;derickr@phpc.social&lt;/a&gt; @&lt;a href="mailto:xdebug@phpc.social" rel="nofollow" target="_blank"&gt;xdebug@phpc.social&lt;/a&gt;&lt;/p&gt;
</description><guid>061d6992-e0a6-18da-7f6c-66aad54d82f2@php.net</guid><pubDate>Mon, 05 Oct 2026 13:31:27 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132790</link><description>&lt;p&gt;Hi Sjoerd!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I propose to add a new hashing algorithm to use in password_hash and &lt;br&gt;
password_verify.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/bcrypt_sha256" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_sha256&lt;/a&gt; &amp;lt;&lt;a href="https://wiki.php.net/rfc/" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/&lt;/a&gt; &lt;br&gt;
bcrypt_sha256&amp;gt; &lt;br&gt;
PR: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt; &amp;lt;&lt;a href="https://github.com/php/" rel="nofollow" target="_blank"&gt;https://github.com/php/&lt;/a&gt; &lt;br&gt;
php-src/pull/24073&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It appears to me like it needs a rounds config and a &lt;br&gt;
PASSWORD_BCRYPT_SHA256_DEFAULT_ROUNDS constant, so we can have&lt;/p&gt;
&lt;p&gt;// be extra secure &lt;br&gt;
password_hash($password, PASSWORD_BCRYPT_SHA256, [ &lt;br&gt;
&amp;quot;cost&amp;quot; =&amp;gt; PASSWORD_BCRYPT_SHA256_DEFAULT_COST + 2, &lt;br&gt;
&amp;quot;rounds&amp;quot; =&amp;gt; PASSWORD_BCRYPT_SHA256_DEFAULT_ROUNDS + 2, &lt;br&gt;
];&lt;/p&gt;
&lt;p&gt;Otherwise I love the proposal&lt;/p&gt;
&lt;p&gt;p.s. Resent. I forgot I should reply to the list, sorry&lt;/p&gt;
&lt;p&gt;-- &lt;br&gt;
Anton&lt;/p&gt;
</description><guid>52d86ad8-ac1a-49be-8c99-c3ec10a73fdb@sandfox.me</guid><pubDate>Mon, 05 Oct 2026 13:25:53 +0000</pubDate></item><item><title>[VOTE] End PEAR Project Endorsement</title><link>https://externals.io/message/132789</link><description>&lt;p&gt;Hey internals,&lt;/p&gt;
&lt;p&gt;I just opened voting on the &amp;quot;End PEAR Project Endorsement&amp;quot; RFC.&lt;/p&gt;
&lt;p&gt;Wiki Page: &lt;a href="https://wiki.php.net/rfc/end_pear_endorsement" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/end_pear_endorsement&lt;/a&gt; &lt;br&gt;
Discussion Thread: &lt;a href="https://news-web.php.net/php.internals/132358" rel="nofollow" target="_blank"&gt;https://news-web.php.net/php.internals/132358&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The RFC has one primary vote requiring a 2/3 majority to accept the &lt;br&gt;
proposal.&lt;/p&gt;
&lt;p&gt;Voting closes 2026-10-19 13:15:00 UTC.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Cheers &lt;br&gt;
Nick&lt;/p&gt;
</description><guid>62ce5704-66f4-49e1-b765-e5530573422e@nicksdot.dev</guid><pubDate>Mon, 05 Oct 2026 13:18:09 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132788</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I propose to add a new hashing algorithm to use in password_hash and &lt;br&gt;
password_verify.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/bcrypt_sha256" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_sha256&lt;/a&gt; &lt;br&gt;
PR: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The existing bcrypt has problems with null bytes and only hashes the &lt;br&gt;
first 72 bytes. The proposed PASSWORD_BCRYPT_SHA256 algorithm solves &lt;br&gt;
those problems by first hashing the password with HMAC SHA256 before &lt;br&gt;
passing it through bcrypt.&lt;/p&gt;
&lt;p&gt;Tim suggested this in the discussion on my earlier RFC to throw errors &lt;br&gt;
on passwords longer than 72 bytes &lt;br&gt;
(&lt;a href="https://wiki.php.net/rfc/bcrypt_max_password_length" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_max_password_length&lt;/a&gt;). That suggestion &lt;br&gt;
receives much criticism because of its backwards incompatibility, and I &lt;br&gt;
don't think it is worth pursuing further at the moment. I think this &lt;br&gt;
new hash is a gentler way to solve the underlying problem.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thank you for the RFC. I believe this is a much better solution than &lt;br&gt;
modifying &lt;code&gt;PASSWORD_BCRYPT&lt;/code&gt; in a way that breaks compatibility. I have &lt;br&gt;
the following comments to the RFC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The status in the RFC itself still says “Draft”.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The main NUL issue is resolved for PHP (by throwing ValueError for &lt;br&gt;
new passwords). The proposal phrasing implies that this would not yet be &lt;br&gt;
the case. In particular the referenced #21675 makes compatibility with &lt;br&gt;
external BCrypt producers worse. The different between the NUL &lt;br&gt;
truncation and the 72B truncation is that the latter is reasonably &lt;br&gt;
reasonable by users, whereas NUL is not.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unrelated to the primary topic and a separate concern: Should we add &lt;br&gt;
support for the &lt;code&gt;$2b$&lt;/code&gt; identifier? My understanding is that it's &lt;br&gt;
identical to &lt;code&gt;$2y$&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The proposal itself I support, with Python’s passlib there is precedent &lt;br&gt;
and the proposed behavior is the obvious one.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>8f05fe0b53f9b0dfcdd0058fcd6e315d@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 13:04:58 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132787</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Also, adding a Key case later breaks any match() without a default arm, &lt;br&gt;
so add Insert and Shift+Tab now.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is a textbook case of a non-exhaustive enum. I have a very rough &lt;br&gt;
draft RFC in &lt;a href="https://wiki.php.net/rfc/non_exhaustive_marker" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/non_exhaustive_marker&lt;/a&gt; that would &lt;br&gt;
allow for a clear indicator of such enums. I am not currently working on &lt;br&gt;
it (and I'm not sure between interface and attribute). If you (or &lt;br&gt;
someone else) wants to pick that up and build a proper design around it, &lt;br&gt;
please let me know and I'm happy to add you as a coauthor and let you &lt;br&gt;
manage the RFC :-)&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>4d2e2d5ee82120e9d6010e45bbfd1d61@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 12:52:01 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132786</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I also checked Windows because I did not want to assume the POSIX PTY &lt;br&gt;
mechanism translated there. It does not directly, since &lt;code&gt;proc_open()&lt;/code&gt; on &lt;br&gt;
Windows does not provide the same PTY descriptor. I built the current &lt;br&gt;
branch on Windows 11 ARM64 and exercised the native console path &lt;br&gt;
instead. &lt;br&gt;
The PHP side was just:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$t = Io\Terminal\SystemTerminal::fromStdio();
var_dump($t-&amp;gt;readKey());
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A small harness attached to a real Windows console injected KEY_EVENT &lt;br&gt;
records into CONIN$ with WriteConsoleInputW(). Injecting Up produced:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;enum(Io\Terminal\Key::Up)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;[…] &lt;br&gt;
straightforward cross-platform testing seam is still relevant for &lt;br&gt;
Windows &lt;br&gt;
code that directly consumes readKey().&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I know nothing about Windows, but am seeing that &lt;code&gt;proc_open()&lt;/code&gt; offers a &lt;br&gt;
&lt;code&gt;create_new_console&lt;/code&gt; option that is documented as:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;create_new_console (windows only): the new process has a new console, &lt;br&gt;
instead of inheriting its parent's console&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is that perhaps already all that is required? Or would a &lt;br&gt;
(Windows-specific) helper &lt;code&gt;Io\Terminal\inject_fake_keypress()&lt;/code&gt; outside &lt;br&gt;
of the main terminal API be helpful?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;On the interface question, Tim's objections to the current &lt;br&gt;
Terminal/ModeToken shape still make sense to me, especially the &lt;br&gt;
ModeToken &lt;br&gt;
case where a userland token can satisfy the interface but cannot &lt;br&gt;
actually &lt;br&gt;
be restored by the native terminal. At the same time, after checking &lt;br&gt;
Windows I don't think I can honestly say that &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt; or stream &lt;br&gt;
injection alone makes the interface unnecessary everywhere. It clearly &lt;br&gt;
solves &lt;code&gt;readLine()&lt;/code&gt;, and the PTY gives us a good POSIX integration seam, &lt;br&gt;
but &lt;br&gt;
Windows userland code directly consuming readKey() does not have the &lt;br&gt;
same &lt;br&gt;
pure-PHP PTY seam today.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It sounds to me that “PHP is unable to spawn terminals on Windows” is an &lt;br&gt;
orthogonal concern and a pre-existing limitation of e.g. the &lt;br&gt;
&lt;code&gt;proc_open()&lt;/code&gt; API. The lack of Windows support must not influence the &lt;br&gt;
design of the &lt;code&gt;Io\Terminal&lt;/code&gt; API to introduce a “short term” workaround &lt;br&gt;
that will become obsolete as soon as PHP will be able to spawn terminals &lt;br&gt;
on Windows, but that will affect the &lt;code&gt;Io\Terminal&lt;/code&gt; API in a negative way &lt;br&gt;
for eternity. We should try very hard that every new API we add to the &lt;br&gt;
standard library is well-designed and convenient to use for 15+ years &lt;br&gt;
without introducing breaking changes. Perhaps Ilia’s suggestion of just &lt;br&gt;
allowing a &lt;code&gt;&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;&lt;/code&gt; stream is okay, keeps &lt;code&gt;readKey()&lt;/code&gt; capabilities &lt;br&gt;
in sync with &lt;code&gt;readLine()&lt;/code&gt; and fills gap until &lt;code&gt;proc_open()&lt;/code&gt; is extended &lt;br&gt;
for proper end-to-end testing?&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>b70790b5b82b032dd57d84f33a2663ff@bastelstu.be</guid><pubDate>Mon, 05 Oct 2026 12:47:10 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132785</link><description>&lt;p&gt;Hi Pratik,&lt;/p&gt;
&lt;p&gt;I have not changed the RFC or implementation yet. I would like to settle&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;this point before making another API change, so that the RFC can go into &lt;br&gt;
the next stage with this part resolved rather than carrying the &lt;br&gt;
disagreement forward. The remaining question for me is what testing seam we &lt;br&gt;
want cross-platform userland code which directly consumes readKey() to &lt;br&gt;
have, without keeping the ModeToken problem Tim pointed out.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I agree with Tim and Bob: drop both interfaces and rename SystemTerminal &lt;br&gt;
to Terminal. The Windows gap closes if readKey() and readSecret() stop &lt;br&gt;
rejecting non-terminal input. A pipe or &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt; stream already &lt;br&gt;
delivers bytes unprocessed, which is all raw mode does to a tty. So on &lt;br&gt;
a non-terminal stream, readKey() can run the POSIX byte decoder, &lt;br&gt;
enableRawMode() can return a lease that changes nothing, and &lt;br&gt;
readSecret() can read to the newline. Tests then use &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt; on &lt;br&gt;
every OS. Callers that need a real terminal have &lt;code&gt;stream_isatty()&lt;/code&gt;. &lt;br&gt;
&lt;code&gt;readLine()&lt;/code&gt; already accepts redirected input, so this keeps the API &lt;br&gt;
consistent.&lt;/p&gt;
&lt;p&gt;Three other things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Specify raw mode. On POSIX the patch clears OPOST and ISIG &lt;br&gt;
(cfmakeraw). Symfony's &amp;quot;-icanon -echo&amp;quot; and Laravel Prompts' &lt;br&gt;
&amp;quot;-icanon -isig -echo&amp;quot; clear neither. With OPOST off, every &amp;quot;\n&amp;quot; &lt;br&gt;
output during a lease staircases on POSIX but not on Windows, &lt;br&gt;
because the console's output mode is never touched. Keep OPOST, or &lt;br&gt;
state the flags in the RFC and make Windows match.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;pcntl_fork()&lt;/code&gt;: the child inherits the lease list, and its RSHUTDOWN &lt;br&gt;
restores the shared tty, so a TUI loses raw mode when a worker &lt;br&gt;
exits. Store the pid that acquired the lease and skip restoring in &lt;br&gt;
any other process.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Drop the retained token and the no-argument restoreMode(). A lease &lt;br&gt;
that stays active after the caller's variable is unset undoes the &lt;br&gt;
RAII guarantee. With the token as the only owner, Nicolas's refcount &lt;br&gt;
design covers everything.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Also, adding a Key case later breaks any match() without a default arm, &lt;br&gt;
so add Insert and Shift+Tab now.&lt;/p&gt;
&lt;p&gt;-- &lt;br&gt;
Ilia Alshanetsky &lt;br&gt;
Technologist, CTO, Entrepreneur &lt;br&gt;
E: &lt;a href="mailto:ilia@ilia.ws" rel="nofollow" target="_blank"&gt;ilia@ilia.ws&lt;/a&gt; &lt;br&gt;
T: @iliaa &lt;br&gt;
B: &lt;a href="http://ilia.ws" rel="nofollow" target="_blank"&gt;http://ilia.ws&lt;/a&gt;&lt;/p&gt;
</description><guid>CALkpNnT5jxoS-4AuaYZiLZ16kxioDgUpWT4TtMqYJhYnP87gig@mail.gmail.com</guid><pubDate>Mon, 05 Oct 2026 11:32:25 +0000</pubDate></item><item><title>[RFC] Add PASSWORD_BCRYPT_SHA256 to password_hash</title><link>https://externals.io/message/132784</link><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I propose to add a new hashing algorithm to use in password_hash and password_verify.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/bcrypt_sha256" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_sha256&lt;/a&gt; &lt;br&gt;
PR: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The existing bcrypt has problems with null bytes and only hashes the first 72 bytes. The proposed PASSWORD_BCRYPT_SHA256 algorithm solves those problems by first hashing the password with HMAC SHA256 before passing it through bcrypt.&lt;/p&gt;
&lt;p&gt;Tim suggested this in the discussion on my earlier RFC to throw errors on passwords longer than 72 bytes (&lt;a href="https://wiki.php.net/rfc/bcrypt_max_password_length" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/bcrypt_max_password_length&lt;/a&gt;). That suggestion receives much criticism because of its backwards incompatibility, and I don't think it is worth pursuing further at the moment. I think this new hash is a gentler way to solve the underlying problem.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sjoerd Langkemper&lt;/p&gt;
</description><guid>1c337da2-9ec7-4b8f-99e2-f2944dc0cd5d@app.fastmail.com</guid><pubDate>Mon, 05 Oct 2026 09:20:29 +0000</pubDate></item><item><title>[Discussion] Add Filter\Filter and Filter\Flag Enums to the Filter Extension</title><link>https://externals.io/message/132783</link><description>&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I would like to start an RFC for adding &lt;em&gt;Filter\Filter&lt;/em&gt; and &lt;em&gt;Filter\Flag&lt;/em&gt; &lt;br&gt;
backed enums to the &lt;em&gt;filter&lt;/em&gt; extension.&lt;/p&gt;
&lt;p&gt;The proposal adds type-safe and more discoverable alternatives to the &lt;br&gt;
existing integer filter and flag constants.&lt;/p&gt;
&lt;p&gt;The existing constants and integer arguments remain supported for backward &lt;br&gt;
compatibility.&lt;/p&gt;
&lt;p&gt;The implementation is available here: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24111" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24111&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I would appreciate feedback on the API, naming, and overall approach before &lt;br&gt;
preparing the RFC.&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Muhammed Arshid KV&lt;/p&gt;
</description><guid>CAO3baw=c6=4VnNBeL9kggm-E0Ped1aAEzi626s52zZW79sytpA@mail.gmail.com</guid><pubDate>Mon, 05 Oct 2026 03:29:30 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132782</link><description>&lt;blockquote&gt;
&lt;p&gt;(Mirco Babin) These adapters are not what I meant. My point concerns &lt;br&gt;
all applications that currently use the PSR-20-Clock. To clarify more, &lt;br&gt;
consider an application using the PSR-20 clock with a theoretical &lt;br&gt;
function like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
//
// The original theoretical PSR-20-application
//
class MyApp_Clock implements \Psr\Clock\ClockInterface
{
    public function `now()`: \DateTimeImmutable {
        return new \DateTimeImmutable();
    }
}

function AFunctionOfTheApplication()
{
    // $clock might also come from a Dependency Injection container.
    // Or be injected via parameters or via constructor injection.
    // It doesn't really matter.
    $clock = new MyApp_Clock();

    // The $clock is injected into external libraries. These
    // libraries are not under the control of the application.
    // Also the libraries do not use the Dependency Injection
    // container of the application. Otherwise the DI container
    // would have beeen provided as parameter instead of the
    // \Psr\Clock\ClockInterface.
    $result1 = Library_Alfa_Do_Something($clock);

    $result2 = Library_Beta_Do_Something($clock);

    $result3 = Library_Gamma_Do_Something($clock);

    $result4 = Library_Theta_Do_Something($clock);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;At some point in the future time, one of the 4 libraries switches &lt;br&gt;
to \Time\SystemClock. Let's assume it is Beta that adapts. How is this &lt;br&gt;
code then going to look?&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
//
// Modified theoretical PSR-20-application
//

function AFunctionOfTheApplication()
{
    // $clock might also come from a Dependency Injection container.
    // Or be injected via parameters or via constructor injection.
    // It doesn't really matter.
    $clock = new MyApp_Clock();

    // The $clock is injected into external libraries. These
    // libraries are not under the control of the application.
    // Also the libraries do not use the Dependency Injection
    // container of the application. Otherwise the DI container
    // would have beeen provided as parameter instead of the
    // \Psr\Clock\ClockInterface.
    $result1 = Library_Alfa_Do_Something($clock);

    // Or use the provided Psr20ToNative adapter.
    $clockInstant = new \Time\SystemClock();
    $result2 = Library_Beta_Do_Something($clockInstant);

    $result3 = Library_Gamma_Do_Something($clock);

    $result4 = Library_Theta_Do_Something($clock);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I hope the pattern becomes clear. After the \Time\Clock fact &lt;br&gt;
the PSR-20-application will be split in 2 clocks. Carefully selecting &lt;br&gt;
the right clock for the right call.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You're setting up a pretty pathological case here.  Many services using a clock, many 3rd party services using a clock, but NOT using a DI container that has even rudimentary autowiring support.&lt;/p&gt;
&lt;p&gt;Such an application is already stupidly written.  A decent DI container makes this problem go away.  And if you want to only have one source of time truth, you can, as Tim showed, wrap one clock around another to translate the value object.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;And the careful selection has to &lt;br&gt;
take place on every update of any external library. Because the &lt;br&gt;
external library might have switched to \Time\Clock at any moment. &lt;br&gt;
This is a maintenance disaster.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is a maintainer disaster.  If they switch external dependencies that you're supposed to handle without a major version bump, you can blame the maintainer, not PHP.  No different than if they switch from one HTTP client to another, etc.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This also means: Yes, I do consider all Psr's including PSR-20 &lt;br&gt;
to be part of Php, and that PSR-interfaces &lt;br&gt;
can't be ignored nor conflicted.&lt;/p&gt;
&lt;p&gt;Kind regards, &lt;br&gt;
Mirco Babin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;As a long-time member of the PHP-FIG Core Committee, I disagree.  The existing ecosystem should not be ignored, but nor should we be shackled by it.  I've repeatedly said that any new http-message-object-in-core effort should NOT be bound by PSR-7, nor need it follow PSR-7; it should be good enough to &lt;em&gt;replace&lt;/em&gt; PSR-7.&lt;/p&gt;
&lt;p&gt;This proposal seems like a good step to replacing PSR-20 with something even more standardized and universally available.  That seems like a win in my book.&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>e9d46069-2fb8-40f4-ae03-ea57e465ec84@app.fastmail.com</guid><pubDate>Sun, 04 Oct 2026 19:52:44 +0000</pubDate></item><item><title>[RFC] Time\Instant and Time\Clock</title><link>https://externals.io/message/132781</link><description>&lt;p&gt;Hello Tim Düsterhus,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://wiki.php.net/rfc/time_instant_class" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/time_instant_class&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 2&lt;/h1&gt;
&lt;/blockquote&gt;
&lt;p&gt;... snipped ...&lt;/p&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Timezones are a concept to translate a point in time (“Instant”) into &lt;br&gt;
date and time as shown on a clock. Both 2026-09-30T20:13:30+02:00 and &lt;br&gt;
2026-09-30T18:13:30+00:00 refer to the same point in time. The point in &lt;br&gt;
time itself does not have a timezone. The ISO-8601 getter chooses to &lt;br&gt;
represent the point in time with the UTC / Zulu timezone, because &lt;br&gt;
specifying an offset is required for the “date and time” representation &lt;br&gt;
to be unambiguous. It would be equally valid for it to select a random &lt;br&gt;
offset each time you use it. Using UTC / a zero offset is just a &lt;br&gt;
pragmatic choice for best interoperability.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is this unique point on the timelime of the universe concept somewhere &lt;br&gt;
defined? For example in an IETF-RFC, academic paper or somewhere else? &lt;br&gt;
Because it seems to me that timeline of the universe must have some &lt;br&gt;
definition somewhere? The RFC does not have any reference to a formal &lt;br&gt;
definition?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Andreas Heigl)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'd say that is defined as Barycentric Coordinated Time (TCB). But &lt;br&gt;
that is slightly off towards the Geocentric Coordinated Time (TCG) &lt;br&gt;
by about 490 ms per year. Geocentric Coordinated Time and Terrestrial &lt;br&gt;
Time (TT) again differ by a constant from one another. Though both are &lt;br&gt;
linear counts of SI-seconds.&lt;/p&gt;
&lt;p&gt;But all that is obsoleted and irrelevant in the end as the Instant is &lt;br&gt;
based on the epoch which is based on UTC minus leap-seconds. At least &lt;br&gt;
as far as I understood Tim.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Yes, or “POSIX time”, which avoids the overloaded term UTC that could &lt;br&gt;
also refer to the UTC timezone. Timezones reintroduce “date and time” &lt;br&gt;
as a concept, which is not relevant to a point in time.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin) Thank you to Andreas Heighl and to Tim Düsterhus for &lt;br&gt;
this answer. This &lt;br&gt;
clears a lot of my confusion.&lt;/p&gt;
&lt;p&gt;The RFC introduction currently states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;This RFC proposes the addition of a Time\Instant class representing &lt;br&gt;
an absolute point on the timeline of the universe together with a &lt;br&gt;
Time\Clock interface and a Time\Clock\SystemClock implementation for &lt;br&gt;
obtaining the current Time\Instant.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The term &amp;quot;timeline of the universe&amp;quot; made me believe it was something &lt;br&gt;
completely different, a new time concept. It did not make me think of &lt;br&gt;
the Unix-Epoch-int time concept.&lt;/p&gt;
&lt;p&gt;Can an extra explanation be added in the introduction near the &lt;br&gt;
aforementioned RFC paragraph? Something like:&lt;/p&gt;
&lt;p&gt;A \Time\Instant can be viewed as a replacement for the Unix-Epoch-int. &lt;br&gt;
With the difference that the base-date might not be 1970-01-01. And &lt;br&gt;
with the difference that the \Time\Instant can have more precision in &lt;br&gt;
the form of milliscondes, microseconds, nanoseconds. The base-date &lt;br&gt;
and extra precision are an implementation detail and not described &lt;br&gt;
further. This also means the full timerange of the \Time\Instant is at &lt;br&gt;
least that of the Unix-Epoch-int, but can be extended in the future.&lt;/p&gt;
&lt;blockquote&gt;
&lt;h1&gt;========= &lt;br&gt;
Comment 4&lt;/h1&gt;
&lt;p&gt;The \Time\Clock interface conflicts with PSR-20 Clock interface, see &lt;br&gt;
&lt;a href="https://www.php-fig.org/psr/psr-20/" rel="nofollow" target="_blank"&gt;https://www.php-fig.org/psr/psr-20/&lt;/a&gt; . A &lt;br&gt;
class can never implement both &lt;br&gt;
interfaces at the same time. This will hinder adoption.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The RFC acknowledges that. Writing an adapter is easy, particularly &lt;br&gt;
since the addition of the DateTimeImmutable::toInstant() method to &lt;br&gt;
the proposal.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Mirco Babin)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I have demonstrated it is impossible to write an adapter. Given the &lt;br&gt;
constraint that only the PSR-20 MyClock class can be changed, &lt;br&gt;
call-sites must not be adjusted. Also the purpose of a PSR-20 Clock &lt;br&gt;
is to never call new DateTimeImmutable() or &lt;code&gt;time()&lt;/code&gt; anymore, so the &lt;br&gt;
assumption there are new DateTimeImmutable() calls that can be adapted &lt;br&gt;
is incorrect.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Andreas Heigl)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;An adapter does never need to implement both interfaces. In essence an &lt;br&gt;
adapter only needs to implement &amp;quot;the other&amp;quot; interface. A ClockAdapter &lt;br&gt;
uses a ClockInterface to create an Instant whereas a &lt;br&gt;
ClockInterfaceAdapter uses a Clock to create a DateTime. &lt;br&gt;
2 classes that seem rather straight forward.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;(Tim Düsterhus)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Indeed. Here's an example implementation for both directions. &lt;br&gt;
The NativeToPsr20 adapter truncates to microseconds and needs to &lt;br&gt;
“invent” a timezone. The opinionated choices made there should be &lt;br&gt;
correct for the vast majority of users:&lt;/p&gt;
&lt;/blockquote&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
final readonly class Psr20ToNative implements \Time\Clock
{
    public function __construct(
        private \Psr\Clock\ClockInterface $clock,
    ) {}

    public function `now()`: \Time\Instant
    {
        return $this-&amp;gt;clock-&amp;gt;now()-&amp;gt;toInstant();
    }
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
final readonly class NativeToPsr20 implements
    \Psr\Clock\ClockInterface
{
    public function __construct(
        private \Time\Clock $clock,
        private \DateTimeZone $timezone =
            new \DateTimeZone('UTC'),
    ) {}

    public function `now()`: \DateTimeImmutable
    {
        $now = $this-&amp;gt;clock-&amp;gt;now();

        return \DateTimeImmutable
            ::createFromTimestamp($now-&amp;gt;getUnixTimestamp())
            -&amp;gt;setMicrosecond(\intdiv($now-&amp;gt;getNanoseconds(), 1_000))
            -&amp;gt;setTimezone($this-&amp;gt;timezone);
    }
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;(Mirco Babin) These adapters are not what I meant. My point concerns &lt;br&gt;
all applications that currently use the PSR-20-Clock. To clarify more, &lt;br&gt;
consider an application using the PSR-20 clock with a theoretical &lt;br&gt;
function like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
//
// The original theoretical PSR-20-application
//
class MyApp_Clock implements \Psr\Clock\ClockInterface
{
    public function `now()`: \DateTimeImmutable {
        return new \DateTimeImmutable();
    }
}

function AFunctionOfTheApplication()
{
    // $clock might also come from a Dependency Injection container.
    // Or be injected via parameters or via constructor injection.
    // It doesn't really matter.
    $clock = new MyApp_Clock();

    // The $clock is injected into external libraries. These
    // libraries are not under the control of the application.
    // Also the libraries do not use the Dependency Injection
    // container of the application. Otherwise the DI container
    // would have beeen provided as parameter instead of the
    // \Psr\Clock\ClockInterface.
    $result1 = Library_Alfa_Do_Something($clock);

    $result2 = Library_Beta_Do_Something($clock);

    $result3 = Library_Gamma_Do_Something($clock);

    $result4 = Library_Theta_Do_Something($clock);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;At some point in the future time, one of the 4 libraries switches &lt;br&gt;
to \Time\SystemClock. Let's assume it is Beta that adapts. How is this &lt;br&gt;
code then going to look?&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php
//
// Modified theoretical PSR-20-application
//

function AFunctionOfTheApplication()
{
    // $clock might also come from a Dependency Injection container.
    // Or be injected via parameters or via constructor injection.
    // It doesn't really matter.
    $clock = new MyApp_Clock();

    // The $clock is injected into external libraries. These
    // libraries are not under the control of the application.
    // Also the libraries do not use the Dependency Injection
    // container of the application. Otherwise the DI container
    // would have beeen provided as parameter instead of the
    // \Psr\Clock\ClockInterface.
    $result1 = Library_Alfa_Do_Something($clock);

    // Or use the provided Psr20ToNative adapter.
    $clockInstant = new \Time\SystemClock();
    $result2 = Library_Beta_Do_Something($clockInstant);

    $result3 = Library_Gamma_Do_Something($clock);

    $result4 = Library_Theta_Do_Something($clock);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I hope the pattern becomes clear. After the \Time\Clock fact &lt;br&gt;
the PSR-20-application will be split in 2 clocks. Carefully selecting &lt;br&gt;
the right clock for the right call. And the careful selection has to &lt;br&gt;
take place on every update of any external library. Because the &lt;br&gt;
external library might have switched to \Time\Clock at any moment. &lt;br&gt;
This is a maintenance disaster.&lt;/p&gt;
&lt;p&gt;The best solution I can think of, is to adjust one class, namely &lt;br&gt;
the MyApp_Clock which the application controls. And make it a &lt;br&gt;
&lt;em&gt;hybrid clock&lt;/em&gt;, both a \Psr\Clock\ClockInterface and a \Time\Clock. &lt;br&gt;
In that case there is an one-time adjustment in one class and all &lt;br&gt;
else will work &lt;em&gt;without any modification&lt;/em&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;&amp;amp;lt;?php

// hybrid clock
class MyApp_Clock implements \Psr\Clock\ClockInterface,
    \Time\Clock
{
    public function `now()`: \DateTimeImmutable {
        return new \DateTimeImmutable();
    }

    public function nowAsInstant(): \Time\Instant {
        return \Time\SystemClock::get()-&amp;gt;nowAsInstant();
    }
}


But because the \Time\Clock-&amp;gt;now() conflicts, as I have
demonstrated, with the \Psr\Clock\ClockInterface-&amp;gt;now(), this
one-time solution is not possible. Now assume this PSR-20-application
is a big one, thousands of classes, millions line of code. This will
become a PSR-20-application maintenance disaster.

So I ask once again, consider renaming \Time\Clock-&amp;gt;now()
to something else. The 'now()' naming obsession is not worth this
interface conflict and maintenance disaster for PSR-20-applications.

This also means: Yes, I do consider all Psr's including PSR-20
to be part of Php, and that PSR-interfaces
can't be ignored nor conflicted.

Kind regards,
Mirco Babin
&lt;/code&gt;&lt;/pre&gt;
</description><guid>CAFgk54nN0KKFE=EKNbrGKCJjOQ-X067UT=wOkRPxtBg-OG696g@mail.gmail.com</guid><pubDate>Sun, 04 Oct 2026 14:04:19 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132780</link><description>&lt;blockquote&gt;
&lt;p&gt;Looks reasonable at first glance. My additional suggestions for &lt;br&gt;
follow-on RFCs would be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The filter types could be turned into an enum. Would be a pretty &lt;br&gt;
simple RFC.&lt;/li&gt;
&lt;li&gt;Get rid of SAPI-side input filters for the superglobals; they &lt;br&gt;
complicate code that works with them a bit. The INI option that &lt;br&gt;
controls them is already deprecated, so, an RFC to get rid of them &lt;br&gt;
completely?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I do think ext/filter is kind of weird in that the API is very pre-OO &lt;br&gt;
and has a bunch of hardcoded filters and assumptions on how people used &lt;br&gt;
the superglobals, but if we have it, it's still worth cleaning up.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You're correct. I agree that the filter types would be better handled as a &lt;br&gt;
separate, focused RFC for enums.&lt;/p&gt;
&lt;p&gt;I'll close this RFC and pursue the enum proposal separately. I have already &lt;br&gt;
opened a PR for the implementation: &lt;br&gt;
&lt;a href="https://github.com/php/php-src/pull/24111" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24111&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the suggestion!&lt;/p&gt;
</description><guid>CAO3baw=KYuRZeonjTkLpk-YGFM3iV5+EHLYG2bOHJHtOWg-0kw@mail.gmail.com</guid><pubDate>Sun, 04 Oct 2026 08:38:39 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132779</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi internals, &lt;br&gt;
I have opened a new RFC proposing improved error handling for invalid integer-valued filter and flags options in the Filter extension. &lt;br&gt;
The proposal introduces a deprecation period in PHP 8.7. &lt;br&gt;
RFC: &lt;a href="https://wiki.php.net/rfc/invalid_filter_options" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/invalid_filter_options&lt;/a&gt; &lt;br&gt;
Feedback and review are welcome. &lt;br&gt;
Thanks, &lt;br&gt;
Muhammed Arshid&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Looks reasonable at first glance. My additional suggestions for &lt;br&gt;
follow-on RFCs would be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The filter types could be turned into an enum. Would be a pretty &lt;br&gt;
simple RFC.&lt;/li&gt;
&lt;li&gt;Get rid of SAPI-side input filters for the superglobals; they &lt;br&gt;
complicate code that works with them a bit. The INI option that &lt;br&gt;
controls them is already deprecated, so, an RFC to get rid of them &lt;br&gt;
completely?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I do think ext/filter is kind of weird in that the API is very pre-OO &lt;br&gt;
and has a bunch of hardcoded filters and assumptions on how people used &lt;br&gt;
the superglobals, but if we have it, it's still worth cleaning up.&lt;/p&gt;
</description><guid>21488640-A27A-4D75-B806-18A4BAB04253@cmpct.info</guid><pubDate>Sat, 03 Oct 2026 20:22:11 +0000</pubDate></item><item><title>[RFC] Deprecate Invalid Filter Options</title><link>https://externals.io/message/132778</link><description>&lt;p&gt;Hi internals,&lt;/p&gt;
&lt;p&gt;I have opened a new RFC proposing improved error handling for invalid &lt;br&gt;
integer-valued filter and flags options in the Filter extension.&lt;/p&gt;
&lt;p&gt;The proposal introduces a deprecation period in PHP 8.7.&lt;/p&gt;
&lt;p&gt;RFC: &lt;a href="https://wiki.php.net/rfc/invalid_filter_options" rel="nofollow" target="_blank"&gt;https://wiki.php.net/rfc/invalid_filter_options&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Feedback and review are welcome.&lt;/p&gt;
&lt;p&gt;Thanks, &lt;br&gt;
Muhammed Arshid&lt;/p&gt;
</description><guid>CAO3bawnijwvHEQkzP25GzqqoJMffxzO6snZ3C_V2TKEdAWnnSw@mail.gmail.com</guid><pubDate>Sat, 03 Oct 2026 05:38:58 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132777</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Larry, Tim, Bob, thanks for the detailed replies. Tim, thanks also for &lt;br&gt;
compiling the branch and checking the POSIX example.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Is that correct? Pratik, are you able to confirm (via tests) that this &lt;br&gt;
would work as a testing approach, including for key and secret reads?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For &lt;code&gt;readLine()&lt;/code&gt;, yes: exactly as you wrote it, I can confirm it works. I ran:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$in = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;', 'w+');
fwrite($in, &amp;quot;first line\nsecond line\n&amp;quot;);
rewind($in);

$t = Io\Terminal\SystemTerminal::fromStreams($in);

var_dump($t-&amp;gt;readLine());
var_dump($t-&amp;gt;readLine());
var_dump($t-&amp;gt;readLine());
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and got:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;string(10) &amp;quot;first line&amp;quot;
string(11) &amp;quot;second line&amp;quot;
`NULL` 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also checked empty lines, immediate EOF and a final unterminated line. &lt;br&gt;
Those behave as specified.&lt;/p&gt;
&lt;p&gt;For readKey() and readSecret(), ordinary streams like &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt; or &lt;br&gt;
&lt;a href="php://temp" rel="nofollow" target="_blank"&gt;php://temp&lt;/a&gt; do not work, and are intentionally rejected because those &lt;br&gt;
operations require an actual terminal device. For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$t-&amp;gt;readKey();
// Io\Terminal\TerminalException: Failed to read key: input stream is
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;not a terminal&lt;/p&gt;
&lt;p&gt;On POSIX, Tim's &lt;code&gt;proc_open()&lt;/code&gt; + PTY example is exactly the right kind of test &lt;br&gt;
for this. It gives the code a real terminal while still letting the test &lt;br&gt;
script the input from pure PHP.&lt;/p&gt;
&lt;p&gt;I also checked Windows because I did not want to assume the POSIX PTY &lt;br&gt;
mechanism translated there. It does not directly, since &lt;code&gt;proc_open()&lt;/code&gt; on &lt;br&gt;
Windows does not provide the same PTY descriptor. I built the current &lt;br&gt;
branch on Windows 11 ARM64 and exercised the native console path instead. &lt;br&gt;
The PHP side was just:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$t = Io\Terminal\SystemTerminal::fromStdio();
var_dump($t-&amp;gt;readKey());
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;A small harness attached to a real Windows console injected KEY_EVENT &lt;br&gt;
records into CONIN$ with WriteConsoleInputW(). Injecting Up produced:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;enum(Io\Terminal\Key::Up)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also checked Down, Left, Right, Enter, Tab, Backspace, Escape, F1, &lt;br&gt;
ordinary characters, repeat counts and Unicode including a UTF-16 surrogate &lt;br&gt;
pair. readSecret() was exercised through the same native console path for &lt;br&gt;
normal input, empty input, backspace, Unicode, Escape/Ctrl+C cancellation &lt;br&gt;
(which throws TerminalException) and zero-timeout return (which returns &lt;br&gt;
null). &lt;code&gt;readLine()&lt;/code&gt; was exercised through the native ReadConsoleW() path as &lt;br&gt;
well. The ARM64 build needed an unrelated local Zend SIMD compiler &lt;br&gt;
workaround, but I did not change Io\Terminal for these tests.&lt;/p&gt;
&lt;p&gt;So the direct answer is yes for line input, but with a platform distinction &lt;br&gt;
for interactive keys. Ordinary stream behavior can be scripted with normal &lt;br&gt;
PHP streams. Terminal-specific behavior needs a real terminal. On POSIX &lt;br&gt;
that is conveniently available through a PTY in pure PHP, as Tim showed. On &lt;br&gt;
Windows the native implementation is testable too, but the equivalent test &lt;br&gt;
currently needs a real console/native helper rather than the same PTY &lt;br&gt;
recipe. That means Tim and Bob's point about the stream/terminal being the &lt;br&gt;
underlying I/O boundary holds, while Larry's concern about a &lt;br&gt;
straightforward cross-platform testing seam is still relevant for Windows &lt;br&gt;
code that directly consumes readKey().&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Although, it occurs to me while typing the above, the Terminal accepts &lt;br&gt;
an output stream, but doesn't appear to have any output API. When is &lt;br&gt;
the output stream even used? Should it be removed, or a print() (or &lt;br&gt;
similar) API added?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I checked this in the implementation. The output stream is not unused. &lt;br&gt;
getSize() queries the output side for terminal dimensions. readKey() also &lt;br&gt;
checks the output side for size changes so it can return Key::Resize, and &lt;br&gt;
on Windows a WINDOW_BUFFER_SIZE_EVENT causes the output side to be queried &lt;br&gt;
again for the current dimensions. So I don't think the output stream should &lt;br&gt;
be removed. I also don't think we need print() or write() just to justify &lt;br&gt;
it; actual application output can continue to use &lt;code&gt;fwrite()&lt;/code&gt;/echo and normal &lt;br&gt;
stream APIs.&lt;/p&gt;
&lt;p&gt;On the interface question, Tim's objections to the current &lt;br&gt;
Terminal/ModeToken shape still make sense to me, especially the ModeToken &lt;br&gt;
case where a userland token can satisfy the interface but cannot actually &lt;br&gt;
be restored by the native terminal. At the same time, after checking &lt;br&gt;
Windows I don't think I can honestly say that &lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt; or stream &lt;br&gt;
injection alone makes the interface unnecessary everywhere. It clearly &lt;br&gt;
solves &lt;code&gt;readLine()&lt;/code&gt;, and the PTY gives us a good POSIX integration seam, but &lt;br&gt;
Windows userland code directly consuming readKey() does not have the same &lt;br&gt;
pure-PHP PTY seam today.&lt;/p&gt;
&lt;p&gt;I have not changed the RFC or implementation yet. I would like to settle &lt;br&gt;
this point before making another API change, so that the RFC can go into &lt;br&gt;
the next stage with this part resolved rather than carrying the &lt;br&gt;
disagreement forward. The remaining question for me is what testing seam we &lt;br&gt;
want cross-platform userland code which directly consumes readKey() to &lt;br&gt;
have, without keeping the ModeToken problem Tim pointed out.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br&gt;
Pratik&lt;/p&gt;
</description><guid>CA+9BsNcc-F5jQWewoOL6WGtM-UieFybH7+=UuQUy07CbR=ZRCA@mail.gmail.com</guid><pubDate>Fri, 02 Oct 2026 20:38:37 +0000</pubDate></item><item><title>[RFC] Throw error for passwords longer than 72 bytes in password_hash() with bcrypt</title><link>https://externals.io/message/132776</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;However, I was under the impression that this was problematic, seeing &lt;br&gt;
the lack of progress on yescrypt. Perhaps bcrypt-sha256 is different &lt;br&gt;
since we already have both fundamental functions built in?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The problems are with including extra libraries. A minimal build of PHP &lt;br&gt;
should be possible without installing any extra libraries, which means &lt;br&gt;
that libraries are vendored into php-src as necessary. This comes with &lt;br&gt;
the usual problems of vendoring, such as keeping libraries up to date. &lt;br&gt;
Yescrypt likely doesn't provide enough benefit for the extra maintenance &lt;br&gt;
effort.&lt;/p&gt;
&lt;p&gt;For bcrypt-sha256 this situation is different, since all the necessary &lt;br&gt;
primitives are already always-available.&lt;/p&gt;
&lt;p&gt;For reference to the other readers, Sjoerd already opened a PR with an &lt;br&gt;
implementation: &lt;a href="https://github.com/php/php-src/pull/24073" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24073&lt;/a&gt;. There are &lt;br&gt;
some technical nits, but I don't see anything fundamentally wrong with &lt;br&gt;
it.&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>ee05cdbf3f24790320d439f3c1181ff2@bastelstu.be</guid><pubDate>Fri, 02 Oct 2026 18:41:57 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132775</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If I understand what you and Bob (thanks Bob) are suggesting, one would &lt;br&gt;
do something like:&lt;/p&gt;
&lt;p&gt;$in = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;'); &lt;br&gt;
$out = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;');&lt;/p&gt;
&lt;p&gt;fputs($in, &amp;quot;first line\n&amp;quot;); &lt;br&gt;
fputs($in, &amp;quot;second line\n&amp;quot;); &lt;br&gt;
rewind($in);&lt;/p&gt;
&lt;p&gt;$t = Terminal::fromStreams($in, $out); &lt;br&gt;
$line = $t-&amp;gt;readLine(); &lt;br&gt;
assert($line === 'first line'); &lt;br&gt;
$line = $t-&amp;gt;readLine(); &lt;br&gt;
assert($line === 'second line');&lt;/p&gt;
&lt;p&gt;Is that correct?  Pratik, are you able to confirm (via tests) that this &lt;br&gt;
would work as a testing approach, including for key and secret reads?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Except for the missing &lt;code&gt;$mode&lt;/code&gt; on &lt;code&gt;fopen()&lt;/code&gt;, &lt;em&gt;literally&lt;/em&gt; just that would &lt;br&gt;
work. I just compiled the branch and ran:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &amp;amp;lt;?php

 $in = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;', 'w+');
 $out = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;', 'w+');

 fputs($in, &amp;quot;first line\n&amp;quot;);
 fputs($in, &amp;quot;second line\n&amp;quot;);
 rewind($in);

 $t = Io\Terminal\SystemTerminal::fromStreams($in, $out);
 $line = $t-&amp;gt;readLine();
 var_dump($line);
 $line = $t-&amp;gt;readLine();
 var_dump($line);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the output is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; string(10) &amp;quot;first line&amp;quot;
 string(11) &amp;quot;second line&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;However for &lt;code&gt;readKey()&lt;/code&gt; et al you need a “PTY” handle, so you would, as &lt;br&gt;
I mentioned in both of my replies, spawn sub-processes with stdin / &lt;br&gt;
stdout being of type &lt;code&gt;pty&lt;/code&gt; in the &lt;code&gt;descriptor_spec&lt;/code&gt; (this incidentally &lt;br&gt;
doesn't seem to be documented yet, except for the user comments) and &lt;br&gt;
appropriate environment variables. Spawning the side using the &lt;br&gt;
&lt;code&gt;Terminal&lt;/code&gt; in the sub-process avoids weird inverted logic with regard to &lt;br&gt;
which descriptor is the logical input and which one is the logical &lt;br&gt;
output: Writing to the input handle emulates keyboard input and you can &lt;br&gt;
assert on whatever you get back on the output handle:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; &amp;amp;lt;?php

 use Io\Terminal\SystemTerminal;

 function `app()`: void
 {
     $terminal = SystemTerminal::fromStdio();
     // The mode is kept on the terminal, we only need the token
     // for explicit resets.
     (void)$terminal-&amp;gt;enableRawMode();

     // Synchronization point
     echo &amp;quot;test ready\n&amp;quot;;

     $key = $terminal-&amp;gt;readKey();
     var_dump($key);

     // Simulate timing / computation that happens.
     sleep(1);

     echo &amp;quot;Password?&amp;quot;, PHP_EOL;
     $secret = $terminal-&amp;gt;readSecret();
     echo &amp;quot;Got: &amp;quot;, $secret, &amp;quot;\n&amp;quot;;
 }

 if (($argv[1] ?? null) === '--app') {
     `app()`;
     `exit()`;
 }

 $proc = proc_open(
     [PHP_BINARY, __FILE__, '--app'],
     [0 =&amp;gt; ['pty'], 1 =&amp;gt; ['pty'], 2 =&amp;gt; ['pipe', 'w']],
     $pipes,
     null,
     ['TERM' =&amp;gt; 'xterm-256color'],
 );

 // Wait for the synchronization point that confirms the application 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;is up and running &lt;br&gt;
// and accepting keyboard input. In the real world this happens &lt;br&gt;
through the user &lt;br&gt;
// observing the output (which is slower than the application &lt;br&gt;
start). &lt;br&gt;
fgets($pipes[1]);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; // And now press the “Up” arrow.
 fwrite($pipes[0], &amp;quot;\e[A&amp;quot;);
 echo fgets($pipes[1]);

 // Write the password in anticipation of the prompt (which is 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;delayed by computation, &lt;br&gt;
// simulating user behavior). &lt;br&gt;
fwrite($pipes[0], &amp;quot;hunter2\n&amp;quot;);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; // Assert the prompt and output confirming the password input.
 $prompt = trim(fgets($pipes[1]));
 assert($prompt === &amp;quot;Password?&amp;quot;);
 var_dump(trim(fgets($pipes[1])));

 proc_close($proc);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The output of that is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; enum(Io\Terminal\Key::Up)
 string(12) &amp;quot;Got: hunter2&amp;quot;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Spawning a process is comparatively heavy, but “testing the IO glue &lt;br&gt;
code” is integration test territory, the business logic - e.g. the &lt;br&gt;
actual password verification - is already tested independently as part &lt;br&gt;
of a unit test.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If so, then I agree the interfaces become unnecessary, and the above &lt;br&gt;
should be included in the RFC as the recommended testing approach.&lt;/p&gt;
&lt;p&gt;Although, it occurs to me while typing the above, the Terminal accepts &lt;br&gt;
an output stream, but doesn't appear to have any output API.  When is &lt;br&gt;
the output stream even used?  Should it be removed, or a print() (or &lt;br&gt;
similar) API added?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The output stream is used to determine the terminal size - which makes &lt;br&gt;
sense, since you want to know the size of what you're writing to. For &lt;br&gt;
output you can just &lt;code&gt;fwrite()&lt;/code&gt; to the handle directly, but having some &lt;br&gt;
output functionality makes sense to me as future scope (e.g. a function &lt;br&gt;
to print some text with ANSI color escapes, which may be what's meant by &lt;br&gt;
“ANSI support” in the future scope).&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>1ea5879aa9445f18708b6d1686744563@bastelstu.be</guid><pubDate>Fri, 02 Oct 2026 18:10:52 +0000</pubDate></item><item><title>[RFC] Short Array Variable Shorthand</title><link>https://externals.io/message/132774</link><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;This week I have gathered several recommendations from various &lt;br&gt;
source concerning this RFC. And finally, I am writing this email to &lt;br&gt;
put all these discussions together and announce some changes &lt;br&gt;
to the RFC. I have taken my time to implement a very beginning draft &lt;br&gt;
on Github, which contains tests of every egde cases I can think of. &lt;br&gt;
However, there may be more. Feel free to review it if you want [1] &lt;br&gt;
By the way, the diff itself to the parser is surprisingly small, which &lt;br&gt;
is good to see.&lt;/p&gt;
&lt;p&gt;Let me begin with whitespaces. Whitespaces after &lt;code&gt;:&lt;/code&gt; is allowed in this &lt;br&gt;
syntax. That whitespace includes not only &amp;quot; &amp;quot;. It also includes \t\n\r. &lt;br&gt;
To be clear you can also put comments between them.&lt;/p&gt;
&lt;p&gt;I am going to go back to use &lt;code&gt;:&lt;/code&gt; instead of &lt;code&gt;=&lt;/code&gt;. I know this sounds &lt;br&gt;
like I am jumping between choices, but I am still going to do it. &lt;br&gt;
People both on and off the list provide very sensible reasons backing &lt;br&gt;
it, and I hope this justify the change:&lt;/p&gt;
&lt;p&gt;Now let's talk about ternary expressions. Last week I rush back to using &lt;br&gt;
&lt;code&gt;=&lt;/code&gt; because I thought it crashes with existing syntax, which is ternary &lt;br&gt;
expressions inside a array &lt;code&gt;[$a ? $b : $c]&lt;/code&gt;. However, there is no ambiguity &lt;br&gt;
when it comes to parser, because we always search if there is a &lt;code&gt;?&lt;/code&gt; token &lt;br&gt;
before the &lt;code&gt;:&lt;/code&gt; token, and if there is, it should be parsed as ternarys, otherwise &lt;br&gt;
it should be parsed as a shorthand. The only difference between is ambiguity &lt;br&gt;
for static analyzers, and arguably for humans. For example&lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;$array = [ $a ? $b
: $c
];
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Since whitespaces (including &amp;quot; &amp;quot;, \n, \r, etc) is allowed after &lt;code&gt;:&lt;/code&gt; in the shorthand &lt;br&gt;
RFC, there &lt;em&gt;may&lt;/em&gt; be some cases that is hard for humen to read. However, the &lt;br&gt;
alternative &lt;code&gt;=&lt;/code&gt; has the same problem since it also crashes with &lt;/p&gt;
&lt;pre&gt;&lt;code class="language-php"&gt;[$a = $b];
[$a, = $b];
``` 

So they have the same problem. It makes no sense to say `=` is better than `:`
when it comes to ambiguity.

Another down side of `=` is it is close to `=&amp;gt;` for keyed arrays, and `:` is more
distiguishable in this case.

Another point is existing languages. The Raku programming language which
support this shorthand all uses `:` [2] And the perl programming language uses
`=&amp;gt;` for similar feature [3].

Finally, I've tried to raise this topic in different php community. And I got the
vibe of preferring `:` tha `=` when it comes to coding aestheic. Or more plainfully,
taste.

So. I hope these reasons justifies why I switch back to `:`. I hope you treat this
as a decision after considerations.

Now, when I was implementing this feature. I find several new edgecases that I
want to bring to the list.

First if `$object` implements ArrayAccess [4] `[:$name] = $object;` is a valid syntax.
And it reads $object[&amp;quot;name&amp;quot;] and give the value to $name. It is same to
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;['name' =&amp;gt; $name] = $object&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Second:

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$name = 'new';&lt;/p&gt;
&lt;p&gt;$a = [...['name' =&amp;gt; 'old'], :$name]; &lt;br&gt;
// ['name' =&amp;gt; 'new']&lt;/p&gt;
&lt;p&gt;$b = [:$name, ...['name' =&amp;gt; 'later']]; &lt;br&gt;
// ['name' =&amp;gt; 'later']&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Third. There are some limitations when you nest. You CANNOT mix [] with list() when
using this syntax. Though this is same when you dont use the shorthand expression.
(So basically you can't do this anyways)
But it's important to mention since I was surprised when writing test for this RFC.

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$record = ['user' =&amp;gt; ['name' =&amp;gt; 'Ada']];&lt;/p&gt;
&lt;p&gt;['user' =&amp;gt; [:$name]] = $record;          // OK &lt;br&gt;
list('user' =&amp;gt; list(:$name)) = $record;  // OK &lt;br&gt;
list('user' =&amp;gt; [:$name]) = $record;      // Error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
Fourth. You cannot mix keyed and unkeyed elements. Again this is not unique to
the shorthand syntax. You cannot do this anyways but I want to mention just in case.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;[:$name, $age] = $row;          // Error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
I will put these cases into the RFC. Sorry I didn't catch these in the first place. Please
tell me if you have any questions.

Lastly I want to talk about references. When you create an array with `[:$name]`, it
will not create a new reference to the orginal variable.

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$name = 'before'; &lt;br&gt;
$array = [:$name]; &lt;br&gt;
$name = 'after';&lt;/p&gt;
&lt;p&gt;echo $array['name']; // before&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
When destructing, if the variable is already a reference. It will overwrite the stuff that
reference points to.

&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;$target = 'before'; &lt;br&gt;
$name =&amp;amp; $target;&lt;/p&gt;
&lt;p&gt;[:$name] = ['name' =&amp;gt; 'after']; &lt;br&gt;
echo $target; // after&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;
The RFC text is not updated for now. Because I haven't finished testing the syntax,
but there are all of my thoughts and work in this week. Besides them, I find nothing
new. I hope you find it useful. I'd update the RFC tomorrow according to this email.
If any changes, I will inform. I have no intention to vote any time soon.

I wrote this 4 a.m so there may be mistake. Apologize for the wall of text.

Yours sincerely
Weilin Du

[1]: &lt;a href="https://github.com/php/php-src/pull/24034" rel="nofollow" target="_blank"&gt;https://github.com/php/php-src/pull/24034&lt;/a&gt;
[2]: &lt;a href="https://docs.raku.org/syntax/Colon%20Pair" rel="nofollow" target="_blank"&gt;https://docs.raku.org/syntax/Colon%20Pair&lt;/a&gt;
[3]: &lt;a href="https://perldoc.perl.org/perlop#Comma-Operator" rel="nofollow" target="_blank"&gt;https://perldoc.perl.org/perlop#Comma-Operator&lt;/a&gt;
[4]: &lt;a href="https://www.php.net/manual/en/class.arrayaccess.php" rel="nofollow" target="_blank"&gt;https://www.php.net/manual/en/class.arrayaccess.php&lt;/a&gt;
&lt;/code&gt;&lt;/pre&gt;
</description><guid>tencent_20B791ACD425315D85380101A42B70A9B606@qq.com</guid><pubDate>Fri, 02 Oct 2026 17:22:32 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132773</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;My main concern is being able to mock the terminal in order to &lt;br&gt;
effectively test code that uses the terminal, without putting a &lt;br&gt;
proprietary thin wrapper around it (which largely defeats the purpose &lt;br&gt;
of having a good API in core).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is not clear to me what you mean by “proprietary” here. As I had &lt;br&gt;
mentioned in my email, the RFC’s own PR is tested against processes &lt;br&gt;
spawned using &lt;code&gt;proc_open()&lt;/code&gt; with &lt;code&gt;pty&lt;/code&gt; descriptors. The tests are &lt;br&gt;
naturally BSD-licensed, just like PHP itself is (since PHP 8.6).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I didn't mean proprietary as in license.  I mean, for example, a SymfonyTerminal that wraps a Terminal so that SymfonyTerminal can be mocked.  Which of course is different than LaravelTerminal.  That would be a bad place to end up, and we should avoid that.  (&amp;quot;Wrap 3rd party code so you can mock it&amp;quot; is a common recommendation, though as in this case it can lead to other problems.)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In your test you would create a process that emits scripted output &lt;br&gt;
(possibly in response to some input), just like you would in the “mocked &lt;br&gt;
interface implementation” and then pass the PTY input/output streams to &lt;br&gt;
whatever you want to test, which will then call &lt;br&gt;
&lt;code&gt;(System)Terminal::fromStreams()&lt;/code&gt; using them as parameters. The logic &lt;br&gt;
under test reads inputs from the Terminal instance and writes output &lt;br&gt;
using &lt;code&gt;fwrite()&lt;/code&gt;. The subprocess will also enable you to properly model &lt;br&gt;
concurrency, delay and timing in IO processing. Terminal interactions in &lt;br&gt;
the real world are not synchronous either: The terminal logic relies on &lt;br&gt;
timing to distinguish escape sequences from individual characters &lt;br&gt;
(that's what the &lt;code&gt;$sequenceTimeout&lt;/code&gt; is for) and the user might already &lt;br&gt;
provide additional input while your application is still busy rendering &lt;br&gt;
output and not yet expecting additional data.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Interfaces are the standard way of doing that.  If you have a &lt;br&gt;
suggestion for a better way, I'm happy to see it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;My email included 5 arguments as to why an interface is the wrong design &lt;br&gt;
here. Do you plan to engage with those?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;No, because I am not advocating for interfaces.  I am advocating for a clean and obvious mocking/testing mechanism, for which interfaces are a common solution.  I am not wedded to interfaces as the solution, just that there is a reliable one that is self-evident (and/or documented).  That is, my invitation to suggest a better way was in no way factious or snarky.&lt;/p&gt;
&lt;p&gt;If I understand what you and Bob (thanks Bob) are suggesting, one would do something like:&lt;/p&gt;
&lt;p&gt;$in = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;'); &lt;br&gt;
$out = fopen('&lt;a href="php://memory" rel="nofollow" target="_blank"&gt;php://memory&lt;/a&gt;');&lt;/p&gt;
&lt;p&gt;fputs($in, &amp;quot;first line\n&amp;quot;); &lt;br&gt;
fputs($in, &amp;quot;second line\n&amp;quot;); &lt;br&gt;
rewind($in);&lt;/p&gt;
&lt;p&gt;$t = Terminal::fromStreams($in, $out); &lt;br&gt;
$line = $t-&amp;gt;readLine(); &lt;br&gt;
assert($line === 'first line'); &lt;br&gt;
$line = $t-&amp;gt;readLine(); &lt;br&gt;
assert($line === 'second line');&lt;/p&gt;
&lt;p&gt;Is that correct?  Pratik, are you able to confirm (via tests) that this would work as a testing approach, including for key and secret reads?&lt;/p&gt;
&lt;p&gt;If so, then I agree the interfaces become unnecessary, and the above should be included in the RFC as the recommended testing approach.&lt;/p&gt;
&lt;p&gt;Although, it occurs to me while typing the above, the Terminal accepts an output stream, but doesn't appear to have any output API.  When is the output stream even used?  Should it be removed, or a print() (or similar) API added?&lt;/p&gt;
&lt;p&gt;--Larry Garfield&lt;/p&gt;
</description><guid>301b02b0-97a1-4078-b028-722f5c86c201@app.fastmail.com</guid><pubDate>Fri, 02 Oct 2026 16:20:22 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132772</link><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;My main concern is being able to mock the terminal in order to &lt;br&gt;
effectively test code that uses the terminal, without putting a &lt;br&gt;
proprietary thin wrapper around it (which largely defeats the purpose &lt;br&gt;
of having a good API in core).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is not clear to me what you mean by “proprietary” here. As I had &lt;br&gt;
mentioned in my email, the RFC’s own PR is tested against processes &lt;br&gt;
spawned using &lt;code&gt;proc_open()&lt;/code&gt; with &lt;code&gt;pty&lt;/code&gt; descriptors. The tests are &lt;br&gt;
naturally BSD-licensed, just like PHP itself is (since PHP 8.6).&lt;/p&gt;
&lt;p&gt;In your test you would create a process that emits scripted output &lt;br&gt;
(possibly in response to some input), just like you would in the “mocked &lt;br&gt;
interface implementation” and then pass the PTY input/output streams to &lt;br&gt;
whatever you want to test, which will then call &lt;br&gt;
&lt;code&gt;(System)Terminal::fromStreams()&lt;/code&gt; using them as parameters. The logic &lt;br&gt;
under test reads inputs from the Terminal instance and writes output &lt;br&gt;
using &lt;code&gt;fwrite()&lt;/code&gt;. The subprocess will also enable you to properly model &lt;br&gt;
concurrency, delay and timing in IO processing. Terminal interactions in &lt;br&gt;
the real world are not synchronous either: The terminal logic relies on &lt;br&gt;
timing to distinguish escape sequences from individual characters &lt;br&gt;
(that's what the &lt;code&gt;$sequenceTimeout&lt;/code&gt; is for) and the user might already &lt;br&gt;
provide additional input while your application is still busy rendering &lt;br&gt;
output and not yet expecting additional data.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Interfaces are the standard way of doing that.  If you have a &lt;br&gt;
suggestion for a better way, I'm happy to see it.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;My email included 5 arguments as to why an interface is the wrong design &lt;br&gt;
here. Do you plan to engage with those?&lt;/p&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
</description><guid>2fc12adda3ef3081d7ccb947d06a8a69@bastelstu.be</guid><pubDate>Fri, 02 Oct 2026 15:59:28 +0000</pubDate></item><item><title>[RFC] Io\Terminal</title><link>https://externals.io/message/132771</link><description>&lt;blockquote&gt;
&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;I understand all of the usual arguments for making the Terminal &lt;br&gt;
class final.  However, it also has no interface.  That means it's &lt;br&gt;
basically impossible to mock for testing purposes.  That strikes me &lt;br&gt;
as a problem, because any IO boundary should be mockable.  I don't &lt;br&gt;
know that multiple non-testing implementations makes sense (maybe &lt;br&gt;
alternatives to the static constructors?), but we do need some &lt;br&gt;
straightforward mechanism to mock a Terminal object.  (I assume &lt;br&gt;
someone is going to respond with &amp;quot;it's an implementation detail of &lt;br&gt;
something else,&amp;quot; which is only partially true; I don't want to have &lt;br&gt;
to create a pass-through wrapper for something just for testing &lt;br&gt;
purposes, and even then, it would be the same API in name only, since &lt;br&gt;
it cannot share a type.  That hurts interoperability.)&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;I very strongly disagree with the interface suggestions for the exact &lt;br&gt;
“implementation detail” reason you mentioned and the introduction of &lt;br&gt;
the interface has made the API much worse:&lt;/p&gt;
&lt;p&gt;The (System)Terminal class &lt;em&gt;is&lt;/em&gt; an implementation detail of something &lt;br&gt;
else and it is only exercised as part of the glue code within an &lt;br&gt;
integration test. It is not the IO boundary, the “TTY stream” you &lt;br&gt;
provide to the Terminal is. You need the TTY stream separately anyway, &lt;br&gt;
because the (System)Terminal does not provide any mechanism to write &lt;br&gt;
to the output (and the underlying stream is not exposed either). In &lt;br&gt;
your tests you would then attach an appropriate stream to the terminal &lt;br&gt;
(e.g. using &lt;code&gt;proc_open()&lt;/code&gt; with &lt;code&gt;pty&lt;/code&gt; descriptors, which is what the &lt;br&gt;
RFC’s own implementation already uses for testing).&lt;/p&gt;
&lt;p&gt;This is very much like the final &lt;code&gt;Random\Randomizer&lt;/code&gt; where you would &lt;br&gt;
have unit tests for the “number consumer”, passing hardcoded values. &lt;br&gt;
And then you have an integration test where you provide a class &lt;br&gt;
implementing the &lt;code&gt;Random\Engine&lt;/code&gt; interface as the IO boundary. How the &lt;br&gt;
glue code turns a “Random\Engine” into a “random number” that is &lt;br&gt;
passed to the unit-tested “number consumer” is an implementation &lt;br&gt;
detail that is not worth testing.&lt;/p&gt;
&lt;p&gt;There are additional indicators that the &lt;code&gt;SystemTerminal&lt;/code&gt; class is &lt;br&gt;
more akin to a “helper” class:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Large parts of the &lt;code&gt;Terminal&lt;/code&gt;’s API surface don’t need to be &lt;br&gt;
instance methods, because they don’t really care about the object &lt;br&gt;
state (beyond the stream). They could also be bare functions and they &lt;br&gt;
were in the initial pre-RFC implementation. Having them as instance &lt;br&gt;
methods makes the API a little more convenient to use and enables the &lt;br&gt;
RAII reset.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The interface’s contract is “What &lt;code&gt;SystemTerminal&lt;/code&gt; does”. As you &lt;br&gt;
say yourself, you are not sure if there can be multiple non-testing &lt;br&gt;
implementations, and I can't think of any either: The &lt;code&gt;Terminal&lt;/code&gt; &lt;br&gt;
interface does not define an “abstract concept” with multiple equally &lt;br&gt;
legal implementations.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This is contrary to, say, Time\Clock where the Clock &lt;em&gt;is&lt;/em&gt; the IO &lt;br&gt;
boundary and you can have SystemClock, GpsClock (when a GPS receiver &lt;br&gt;
is attached to your computer), HttpClock (fetching an HTTP service to &lt;br&gt;
obtain the current time, not useful, but theoretically meaningful), ….&lt;/p&gt;
&lt;ol start="3"&gt;
&lt;li&gt;
&lt;p&gt;The interface is humongous and not well-defined: Terminals expose a &lt;br&gt;
broad API surface and this is reflected by the &lt;code&gt;SystemTerminal&lt;/code&gt; class &lt;br&gt;
and the RFC even cut out some of the methods that are there in the &lt;br&gt;
pre-RFC implementation. It is likely that the API surface will grow in &lt;br&gt;
future PHP versions with additional helper functionality. This also &lt;br&gt;
means that the interface needs to grow, which is an obvious breaking &lt;br&gt;
change. Or new non-well-defined interfaces need to be added, which is &lt;br&gt;
bad API design. In fact v0.3 of the RFC added a &lt;code&gt;readLine()&lt;/code&gt; method &lt;br&gt;
which (at least on POSIX) is effectively redundant with &lt;code&gt;fgets()&lt;/code&gt;, but &lt;br&gt;
allows consistent access to the “input side” of the terminal. It is &lt;br&gt;
not unlikely that a future PHP version might want to add &lt;br&gt;
&lt;code&gt;readUntilEof()&lt;/code&gt; or similar.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The interface being a direct mapping of the Terminal API surface &lt;br&gt;
also resulted in the &lt;code&gt;ModeToken&lt;/code&gt; interface being added, which is an &lt;br&gt;
interface for something that is an opaque “token” (value) object. And &lt;br&gt;
then due to interface constraints / the lack of generics, the &lt;br&gt;
&lt;code&gt;Terminal&lt;/code&gt; interface requires any &lt;code&gt;Terminal&lt;/code&gt; to accept any &lt;code&gt;ModeToken&lt;/code&gt; &lt;br&gt;
in the signature of &lt;code&gt;restoreMode()&lt;/code&gt; just to validate that it is the &lt;br&gt;
&lt;code&gt;ModeToken&lt;/code&gt; implementation that belongs to the &lt;code&gt;Terminal&lt;/code&gt;. The RFC &lt;br&gt;
specifies a &lt;code&gt;ValueError&lt;/code&gt; here, but it really is a &lt;code&gt;TypeError&lt;/code&gt; that &lt;br&gt;
cannot be expressed by the type system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This has also resulted in the naming weirdness: The obvious name is &lt;br&gt;
“Terminal”, the “System” part in “SystemTerminal” carries no &lt;br&gt;
additional information.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards &lt;br&gt;
Tim Düsterhus&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Well laid out Tim,&lt;/p&gt;
&lt;p&gt;the I/O boundary comes from the streams passed to fromStreams().&lt;/p&gt;
&lt;p&gt;For any mocking purposes / different terminals, it's a matter of &lt;br&gt;
composing the stream. We just need to make sure that it's actually &lt;br&gt;
possible to construct such a tty in tests for example, which can &lt;br&gt;
intercept the events / set state for size etc..&lt;/p&gt;
&lt;p&gt;Terminal (yes, SystemTerminal shouldn't be a thing) is just a class &lt;br&gt;
which takes stuff from the stream and outputs it. There's no IO &lt;br&gt;
operations in itself (from userland perspective), only on the resource, &lt;br&gt;
which is the actual underlying entity forwarding IO operations to the &lt;br&gt;
kernel.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Bob&lt;/p&gt;
</description><guid>AMBPR07MB120245A87EFE3947F628D5FA5E2892@AMBPR07MB12024.eurprd07.prod.outlook.com</guid><pubDate>Fri, 02 Oct 2026 15:56:47 +0000</pubDate></item></channel></rss>
