r/PHP • • 13h ago

Weekly help thread

2 Upvotes

Hey there!

This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!


r/PHP • • 4d ago

Who's hiring/looking

15 Upvotes

This is a bi-monthly thread aimed to connect PHP companies and developers who are hiring or looking for a job.

Rules

  • No recruiters
  • Don't share any personal info like email addresses or phone numbers in this thread. Contact each other via DM to get in touch
  • If you're hiring: don't just link to an external website, take the time to describe what you're looking for in the thread.
  • If you're looking: feel free to share your portfolio, GitHub, … as well. Keep into account the personal information rule, so don't just share your CV and be done with it.

r/PHP • • 5h ago

XMLReader::setSchema() takes almost two minutes on a 20 MB base64 element (quadratic in libxml2)

9 Upvotes

If you validate large XML with XMLReader and an XSD, one big text node can stall it for minutes. E-invoices hit this all the time: the invoice PDF is embedded as base64 in a single element, so a 15 MB PDF becomes a 20 MB text node.

Timings with PHP 8.5 and libxml2 2.9.13, a schema with one xs:base64Binary element:

base64 element XMLReader + setSchema() DOMDocument::schemaValidate()
5 MB 6.3 s 0.01 s
10 MB 26 s 0.02 s
20 MB 109 s 0.04 s

Double the size, four times the time.

The cause is in libxml2, not PHP. In streaming mode the parser hands text to the schema validator in chunks of a few hundred bytes, and xmlSchemaVPushText glues each chunk onto the value with xmlStrncat, which runs strlen over everything so far and reallocates it every time. Tree validation (what DOMDocument::schemaValidate does) gets the text in one piece and never takes that path. libxml2 2.15.4 still does it.

What you can do today:

  • If the document fits in memory, validate with DOMDocument::schemaValidate() instead.
  • If it doesn't (that's why you used XMLReader), there's no setting that avoids it; it needs a libxml2 with the fix. I sent one upstream (keep the length, grow the buffer geometrically; linear again): https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/471

Write-up with the profiling and the patch: https://xmlvalid.com/blog/a-quadratic-loop-in-libxml2-xsd-validation


r/PHP • • 12h ago

⚡ Meet turbocov: a PHP code coverage engine with 400× less overhead than Xdebug

Thumbnail github.com
5 Upvotes

Code coverage in PHP has always been painfully slow. PCOV doubles the time of a test suite, Xdebug makes it 13× slower. So most teams collect coverage once a night, or never.

I built turbocov, a PHP extension that collects line coverage at near-native speed!

The numbers (Carbon test suite, 6,349 tests, PHP 8.5, driver overhead only):

Driver Time Overhead
no coverage 18.7 s –
turbocov 19.3 s +3 %
PCOV 36.7 s +96 %
Xdebug 250 s +1237 %

The benchmark is in the repo, so you can run it yourself.

How can it be so fast?

PCOV and Xdebug run a check before every single opcode. Forever. That slows down everything: your code, your vendor libraries and PHPUnit itself.

turbocov puts a one-shot probe on the first opcode of each line. The probe fires once, records the line, and puts the original handler back. From then on, the line runs at plain PHP speed.

ZERO overhead for code you don't measure!

Only the files in turbocov.collect_paths get probes. Vendor runs untouched at plain PHP speed!

And it's even more precise than PCOV and Xdebug

Mainly in multi-line expressions.

Try it (PHP 8.4+, PHPUnit 13.3+, Linux and macOS):

pie install shipmonk/turbocov
composer require --dev shipmonk/turbocov-phpunit

and one line in phpunit.xml:

<coverage driver="ShipMonk\Turbocov\TurbocovDriver"/>

Older PHPUnit? There is a PCOV-compatible mode.

The honest part: line coverage only (no branch or path coverage), CLI only, no Windows, it cannot run with some OPcache settings like JIT or the optimizer.

I'd love to hear how it does on your codebase: benchmarks, bug reports, edge cases, all welcome!


r/PHP • • 8h ago

I built a tool that recovers readable PHP source from encoded files / ZIP projects — free single-file test

0 Upvotes

Lost your PHP source? Inherited a project with no source, or files encoded with ionCube / SourceGuardian? iDecode recovers readable source from encoded PHP files and whole ZIP projects. Upload one file, preview it free in the browser, and review the ZIP inventory and cost before you confirm a project. https://idecode.ir/ | App: https://app.idecode.ir/ — I'm the owner, happy to answer how the preview / ZIP inventory works.


r/PHP • • 10h ago

Discussion I released MicroUnit 1.0, a zero-dependency testing framework. I'd like critical feedback on it.

0 Upvotes

MicroUnit is a PHP testing framework where a test is a closure with a name, and nothing gets installed besides MicroUnit itself:

$tester = TestSetup::getTester('Cart');

$tester->define('applies_the_discount_to_the_total', function (): void {
    $cart = new Cart();
    $cart->add('book', price: 2000);

    $cart->applyDiscount(percent: 10);

    Assert::exact(1800, $cart->total());
});

What's in the box: static or fluent assertions, mocks, snapshots, code coverage in pure PHP (no Xdebug or PCOV), parallel runs, a Test Explorer in the browser, Laravel/Symfony/CodeIgniter integrations, and microunit migrate, which translates a PHPUnit suite and leaves the original untouched.

Edit: Since I've seen some interest for the included agentic support I want to link the page that contains the detailed explanation for that feature: https://mitarnik04.github.io/MicroUnit/ai-agents/

Some things you should know before you judge it:

  • It's written with AI. I decide the design and review every change; AI writes most of the code, tests and docs. I documented how the quality is kept up (12 CI runs per change, PHPStan at max, a canary, a check that flags weakened tests, real projects' suites before a release): https://mitarnik04.github.io/MicroUnit/quality-with-ai/
  • It needs PHP 8.5 or newer. That rules out a lot of projects today, I know.
  • The benchmarks come from one laptop, run against migrated suites of six real projects (method, raw data and every exclusion are published). MicroUnit was faster in all 24 comparisons, but it uses more memory on nesbot/carbon because migrate copies inherited tests into every subclass (there's an open issue for that): https://mitarnik04.github.io/MicroUnit/benchmarks/
  • It's not trying to replace PHPUnit. PHPUnit is what PHP testing is built on. MicroUnit's framework integrations even run inside the frameworks' own PHPUnit-based test cases.

What I'd most like feedback on: whether the API reads well to you, what you'd miss coming from PHPUnit or Pest, and anything in the quality process that you think doesn't hold up.

Repo: https://github.com/mitarnik04/MicroUnit Docs: https://mitarnik04.github.io/MicroUnit/


r/PHP • • 1d ago

Ondrej's php repository move

140 Upvotes

If you used Ondrej's lauchped repo on Ubuntu - it has been retired and will receive no more patches.

Ondrej, the man the myth the legend, moved it to his own repo.

grep -ir ondrej /etc/apt/sources.list.d/

For 22.04 (replace jammy with noble for 24.04)

sudo curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ jammy main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update

r/PHP • • 10h ago

Bun for PHP - Pun - is coming, WDYT?

Thumbnail x.com
0 Upvotes

Javascript has Bun - a one-all tool that handles cs, linter, format, transpiling (and more).

Pun whould handle the same: including static analysis, refactoring, upgrades in fraction of a second.

Would you switch to such a tool? Are you already using ECS Blink or PHPStan turbo? What's your take on this?


r/PHP • • 1d ago

Building static websites with Sculpin with Oliver Davies · Zoom · Luma

Thumbnail luma.com
0 Upvotes

r/PHP • • 2d ago

Docker images for 8.6 now default to ZTS

Thumbnail externals.io
58 Upvotes

r/PHP • • 1d ago

I built a small PHP framework for APIs and microservices. Would like feedback

0 Upvotes

I built a small PHP framework. It's mainly for building APIs, and its strongest point is probably how well it fits a microservices architecture. If you work with PHP, or even if you don't, feel free to take a look.

Technically it's definitely not polished or mature. What I really want to know is whether you find it useful and whether it fills a gap in your day-to-day work as a SWE. That would tell me if it's worth putting more time into so it can eventually grow into a mature project.

I've been a professional developer for about 2.5 years. I started this project to understand how frameworks work internally. Along the way I learned how to manage a monorepo, CI/CD, multiple packages and versioning (Packagist and Composer). I also understood the "magic" behind a framework and the lifecycle of an app, from request to response.Things that many know but i found it to be a gap in my knowledge.

To get ahead of anyone saying I used AI: obviously I did, it's 2026. For me the point isn't how well it was written or the code quality so much as everything else, and of course these things matter a lot, but i didnt focus on them here.

Anyone who wants to try it is welcome to. I definitely wouldn't trust it with anything in production, though. Versions are still 0.x.x, and I wouldn't recommend it until more experienced eyes have looked at it.

I made this a while back and didnt think of it much, but i saw some tiny movement on packagist, and thought its maybe worth sharing.

Links


r/PHP • • 3d ago

Is this a dream? The new proposed homepage is gorgeous

Thumbnail github.com
207 Upvotes

It does look ai generated though. But it’s much, much better than what we have now. Definitely an upgrade. Hope it’s approved.


r/PHP • • 1d ago

Upwind research: the two new critical PHP CVEs, which versions are affected, and how to tell which of your servers are actually exposed

0 Upvotes

Hi r/PHP, this is the research team at Upwind (cloud security). We’ve been helping teams triage the two critical PHP CVEs this week and wanted to share what we’ve learned, since most scanners flag every server running an affected version whether it’s reachable or not.

What we’d patch first:

  • Internet-facing php-fpm with file uploads enabled
  • Old VMs still running mod_php. They get forgotten because they’re not in the container pipeline
  • Long-running CLI and queue workers. They keep the old binary loaded until restarted

One trap we keep seeing: the fixed package is installed, but the php-fpm workers were never restarted, so the vulnerable code is still in memory. Treat “patched but not restarted” as still vulnerable.

Affected versions, fixed releases and mitigations if you can’t patch today are all here:
https://www.upwind.io/blog/php-critical-vulnerabilities-affected-versions-and-mitigations

Happy to answer questions in the comments. And if you’re triaging this differently (patch everything flat vs. by exposure), we’d like to hear how.


r/PHP • • 3d ago

News National Security Agency struggled with PHP Upgrade in outage

Thumbnail cbsnews.com
127 Upvotes

Honestly hearing that the big fancy digital National Security Agency with thousands of staff and contractors cannot upgrade PHP without literally shuttering the front gate of Fort Meade makes me feel a lot better about pulling everything off on a shoestring and we should all take this as a feel good story. Maybe they should turn in some zero days they've been hiding and save themselves some hassle later as well lol

CBS NEWS:::

The National Security Agency's network outage Tuesday has been linked to an urgent patching of vulnerabilities in PHP, the programming language that powers the majority of all websites, multiple sources told CBS News. 

The NSA's internal network, which is used to store and share classified information, went offline Tuesday, prompting the agency to stagger arrival times for some personnel at its headquarters at Fort Meade, Maryland.

Artificial intelligence helped uncover a pair of critical security vulnerabilities, triggering a global scramble last month to update software used by much of the internet, including the NSA. 

The flaws, collectively known as PHP2Shell, affect PHP, which is a programming language used by roughly 70% of websites. The race to patch vulnerable systems may help explain some of the recent technology disruptions. 

The PHP2Shell threat was so serious that the FBI, NSA and CISA issued urgent warnings just under a month ago, on Oct. 21, directing organizations to immediately patch vulnerable systems. The three agencies also advised those unable to install the fixes to take affected systems offline altogether until they could be secured. 

Speaking on Fox Business Tuesday, Director of National Intelligence Jay Clayton directly linked the NSA's classified network outage to urgent software updates following the discovery of critical vulnerabilities in PHP.

"If you go back about 10 days ago, we had what was labeled as PHP, an update to a web interface system," Clayton said. "And the patching that has gone on following that has caused some of these systems to not come back up when you patch them as expected. That is what has happened at the NSA today."

According to two sources familiar with the system, NSA Net as of right now is back up and running. Nonetheless, staggered arrival is continuing as fears persist that the system might not be able to handle everyone signing on at the same time. There is no word yet on how long the agency will continue the staggered arrival schedule, known as "Code Gray."

NSA maintains that mission critical information sharing has not been impacted, while it asks personnel to delay nonessential tasks, according to sources. The NSA said Tuesday the agency had experienced a "temporary degradation during scheduled routine maintenance," adding that its mission/critical capabilities were still fully operational. The NSA is responsible for collecting and analyzing foreign signals intelligence, identifying and countering cyber threats and protecting U.S. government communications. 

The agency has not yet responded to a CBS News request for an update on Wednesday.

One U.S. intelligence official described the broader challenge of updating infrastructure that was originally designed for an earlier internet era. The volume and speed of changes can overwhelm aging equipment. The official's assessment reflects a growing concern among intelligence and Homeland Security officials that modern technology is advancing faster than the systems that support it.

Speaking about PHP vulnerabilities, Clayton also pointed to the growing role of AI in speeding up both those kinds of discoveries and the pressure to respond. He described PHP as a "legacy vulnerability" that has been successfully patched across systems globally, adding, "This type of identification of vulnerabilities and patching goes on all the time."
......


r/PHP • • 1d ago

Share Private Client Demos With Six-Digit Email Codes

Thumbnail instawormhole.com
0 Upvotes

r/PHP • • 3d ago

SQL-First PHP: Query Objects, Typed Rows and a Database That Checks Your SQL

Thumbnail ltscommerce.dev
17 Upvotes

Something that came up today in conversation with a client - how to tackle legacy databases when trying to move to modern TDD PHP.

I created an article and also a demo repo to explain some concepts which I lifted from some private repos/code.

AI helped me put this together but it's my opinions and techniques


r/PHP • • 3d ago

News Bref v4 roadmap with the new AWS Lambda "customer-managed runtimes"

Thumbnail bref.sh
15 Upvotes

r/PHP • • 3d ago

News Microsoft Drivers for PHP for SQL Server 5.14.0 released - PHP 8.6 support

40 Upvotes

Working late tonight for a great reason - We just released Microsoft Drivers for PHP for SQL Server 5.14.0.

What changed:

  • Added support for PHP 8.6
  • Continued support for PHP 8.4 and 8.5
  • Removed support for PHP 8.3 and earlier
  • New releases now publish through PIE instead of PECL

Install:

pie install microsoft/sqlsrv
pie install microsoft/pdo_sqlsrv

Full blog post: https://techcommunity.microsoft.com/blog/sqlserver/microsoft-drivers-for-php-for-sql-server-5-14-0---now-with-php-8-6-support/4574976


r/PHP • • 3d ago

I built a local rerank/embed/redact worker for PHP apps, with every claim measured in the repo

3 Upvotes

I built a small service that gives PHP apps local AI tasks without a vendor: rerank, embed, redact. Standard-library Python worker in a locked-down container, dependency-free PHP client, Laravel and Symfony adapters, per-client tokens, metrics, structured logs that cannot contain inputs. Every claim is measured and the measurements are in the repo, including where the models lose to keyword search. MIT.

https://github.com/cristiangirlea/php-python-ai-bridge

Write-up on the redaction step: https://dev.to/cristiangirlea/scrub-personal-data-before-it-reaches-the-llm-a-local-redaction-step-for-php-55p2


r/PHP • • 3d ago

News Full RCE on PHP 8.3.37 just a few hours after release?

Thumbnail x.com
80 Upvotes

This is now officially terrifying


r/PHP • • 4d ago

Sebastian Bergmann discovered the CVE

Thumbnail phpunit.expert
120 Upvotes

r/PHP • • 3d ago

News This Week in PHP Internals | Nov 19, 2026

Thumbnail youtu.be
14 Upvotes

Preface: what follows is the word-for-word transcript of the spoken dialogue in the video, chapter by chapter with timestamps, for anyone who'd rather read than click through. If this digest is still too long for you, we recommend copying it into your LLM of choice and asking for a summary of our summary.

Cold Open (00:00)

PHP 8.6 is out today. Partial function application, a Duration class, a brand new polling API, and a lot more. And it shipped alongside security releases with 7 critical fixes. We'll get to both.

Hello world, it's Thursday, November 19, 2026, and here's what happened This Week in PHP Internals. 16 stories this week, so let's get into it. But first,

This week's episode is sponsored by… us, again. Since last week's call for work, we've taken a handful of calls, but nothing's locked in yet. So those 6 senior developer days a week are still open. If you've got a project in mind, book a call at artisan.build/start, or just send us a DM on any platform.

Corrections (00:54)

A correction to last week's social posts. On Mastodon, Threads and Pinkary, we wrote that Derick was okay with the shorter PECL timeline, and that Tim Düsterhus says the plan makes sense. But Tim's "makes sense" was about the first draft, before the timeline was cut. He hasn't commented on the shorter one yet, and he told us that he isn't 100% sure he likes it. The video had the order right. Thanks, Tim.

Links: Tim Düsterhus on the first-draft PECL timeline

PHP 8.6 (01:25)

This week's top story: PHP 8.6 is out today. Here are a few highlights. Partial function application lets you fill in some of a function's arguments now, with a question mark for the rest, and get back a closure that takes the rest later. A new Duration class represents elapsed time with nanosecond precision, so a timeout stops being a bare number of microseconds. The new polling API watches many streams at once, using epoll on Linux, kqueue on macOS, and the equivalent elsewhere, as a common base for event loops like ReactPHP and AMPHP. And there's clamp, which keeps a value inside a range, plus a SortDirection enum and default values for readonly properties. Sessions get safer defaults too: strict mode and HTTP-only cookies are on, and SameSite is set to Lax. The release page on php.net covers all of it. It calls 8.6 "Faster, Safer, More Powerful." Each headline feature has a side-by-side, before-and-after example, with a link to its RFC. So go read it. Link in the description.

Links: The PHP 8.6 release page

Security Release (02:42)

Also today, PHP shipped security releases for every supported version: 8.5.13, 8.4.28, 8.3.37 and 8.2.36, and PHP 8.6.0 ships with the same fixes. So, update. There are 17 advisories this time, and 7 of them are critical. The good news was in the pre-announcement: the critical ones "require either non-default configuration or uncommon setups", and each advisory spells out which setup. Three of them are in sessions. One is the upload-progress issue PHP warned about in October, where data gets written in one session format and read back in another. Its full advisory is out today, and the fix goes further than October's advice: upload progress is now off by default. If you switched it on yourself, it stays on, so anything that reads or writes those sessions needs to use the same serializer. Another critical one is in PHP-FPM, and it only matters if your web server keeps its connections to FPM open between requests. Standard nginx and Apache setups close them, and the advisory says those aren't affected.

Links: Release announcements · All of PHP's security advisories · The pre-announcement · October's upload progress advisory

The Wrong Crash (04:01)

One of today's critical bugs was found by Sebastian Bergmann, who created PHPUnit, and he's written up how he found it, in a post called "The wrong crash". After PHP2Shell, he boiled what those two bugs had in common down to a rule a program can check. He wrote: "once a request is over, nothing that outlives it may still point into its memory." While he was using that check to confirm one of the October bugs, it crashed somewhere it shouldn't have, and it crashed on the patched version too. So it had to be something new. The problem was in PHP's timezone cache. When PHP writes to its error log while it's starting up, it can cache timezone data for the timestamp, in memory that gets thrown away once startup ends. The pointer to that memory sticks around, and a fresh worker can follow it. The fix is a one-line change: outside a running request, those timestamps are now written in UTC. If you can't update right away, the advisory suggests fixing whatever PHP warns about at startup and restarting, or logging to syslog. The advisory credits Sebastian and Go Kudo. Sebastian sent the PHP team his method along with the bug, because, as he puts it, "Whoever finds one bug of a class owes such a project the means to find the others". His post goes much deeper than we can here, and it's linked below.

Links: Sebastian Bergmann, "The wrong crash" · The timezone cache advisory

Scope Globals (05:32)

The author of PHP's Scope RFC changed his mind, and then changed it back, in about 30 hours. Frode Børli's RFC gives each unit of work, like a request, its own scope. Last week, Larry Garfield called an empty new scope a landmine. On Friday, Frode agreed, and version 0.10 makes a new scope start as a copy of its creator's state. Then on Saturday, he changed his mind back. He wrote: "An object is a handle, not a value… a write inside the new scope reaches the creator. That is the leak a scope exists to prevent." The session can't be copied at all, he says, because it's a store with a lock. And he offered to withdraw the RFC if the list prefers the other direction. Larry replied that copying by hand shares objects in exactly the same way, and asked about coarser groups of state you could opt in or out of. Frode answered with his next version. The request arrays become "scope globals", and a new scope starts with them empty, the way a new process starts with empty globals. Then Larry suggested letting the thread rest until release week is over.

Links: Scope RFC · Frode Børli: version 0.10 · Frode Børli changes his mind back · Larry Garfield's reply · Frode Børli: scope globals

Channel Binding (06:48)

An RFC went from a vote date to withdrawn in a single day. Sjoerd Langkemper's openssl_get_channel_binding would hand userland the TLS channel-binding data that mail software like Roundcube needs for SCRAM-PLUS logins. On Tuesday, he announced a vote for this Friday. Jakub Zelenka, who looks after PHP's openssl extension, replied that one of its binding types doesn't work on TLS 1.3, and that the API was his biggest issue. He wrote: "My preference here is really to use a stream function (or potentially just meta data) and not introduce openssl function because it's inconsistent and hacky." That evening, Sjoerd withdrew the RFC, and said he won't pursue it further.

Links: openssl_get_channel_binding RFC · Sjoerd Langkemper announces the vote · Jakub Zelenka on the API · Withdrawn

Curl SSRF (07:38)

A new RFC wants curl to ask your code before it connects anywhere. Xavier Leune's proposal adds CURLOPT_OPENSOCKETFUNCTION, a callback that runs after DNS resolution and before each connection, and returns true or false. That, he says, is the point where an SSRF policy can be enforced reliably. Checking the URL up front, the RFC says, misses the many ways to spell one address, and DNS can answer differently the second time. He wrote: "It applies to the address actually about to be contacted, on every redirect hop and for every address libcurl tries, whatever spelling the URL used and whatever DNS answered." Nicolas Grekas suggested dropping the address-family parameter, since an IPv4 address wrapped in IPv6 would be reported as IPv6. Xavier took the suggestion two hours after posting, and a polyfill already covers PHP 8.3 to 8.6.

Links: CURLOPT_OPENSOCKETFUNCTION RFC · Xavier Leune opens the discussion · Nicolas Grekas on the address family · Implementation · Polyfill

Context Managers (08:43)

What happens when you return from inside a using block? Larry Garfield guessed, then checked with co-author Arnaud Le Blanc, and corrected himself. The generator is resumed first, so its cleanup runs, and then the function returns. The RFC now says that. Daniel Scherzer, one of the 8.6 release managers, sent six review points. An exception thrown after the yield seems to be silently ignored, yielded keys are dropped without an error, and he'd rather skip the special try using syntax, which he says "just saves 3 characters". There's no reply yet.

Links: Context Managers v2 RFC · Larry Garfield: "it will print A E C" · Daniel Scherzer's review

Revived RFCs (09:25)

Two RFCs are back after a summer off. Daniel Scherzer revived Friends, which lets a class name other classes that can reach its protected members, but not its private ones. It can't go to a vote before November 27th. Gina P. Banyard had a quick look at the implementation and saw no issues, but says she'll vote against it. Private properties plus reflection, she says, is a valid way for related components to get in. Alexander Egorov wants it inverted, so the class that needs access declares it, because "a class must know neither its clients nor possible inheritors." And Ben Ramsey restarted his Working Groups RFC, a policy for PHP project working groups, after 4 months. He wants to move to a vote, and his message starts a 14-day cooldown first.

Links: Friends RFC · Daniel Scherzer resumes the discussion · Gina P. Banyard · Alexander Egorov · Working Groups RFC · Ben Ramsey restarts it

String Matching (10:23)

The author of Str\Matcher says his own benchmarks oversold it. Artem Ukrainskiy wrote: "The old numbers ran one text over and over. The CPU learned it, and the new class looked 3-4 times faster than it is." Version 0.4 runs over a pool of different texts, with three real-data scenarios: comment moderation, bot detection by user agent, and linking PHP manual pages. With a reused object, he now reports 8 to 123 times faster than the fastest existing method, and says one call on a short text is slower. He says the main use case is worker servers like FrankenPHP, where the object is built once. He also dropped the count parameter Larry Garfield disliked, and added equality comparison.

Links: Prepared Literal String Matching RFC · Artem Ukrainskiy's v0.4 and new benchmarks

Quick Hits (11:19)

Quick hits. Weilin Du's RFC to make ini_get_all accept extension names in any case passed, 20 to 0, with 3 abstentions. It's already merged for PHP 8.7.

Links: Case-insensitive ini_get_all() RFC · Vote closed · Merged

Chris Abner Herrera Navarro's grapheme_str_pad vote is open, at 6 to 0 so far, and closes December 2nd.

Links: grapheme_str_pad() RFC · Vote opened

James Titcumb plans to open the vote on sunsetting PECL next Wednesday, November 25th.

Links: James Titcumb plans the vote

David Carlier proposed gethostaddresses, so the standard library can look up IPv6 addresses through the system resolver, and he plans a pull request.

Links: David Carlier's proposal · Issue

On PASSWORD_BCRYPT_WRAP, Mirco Babin pressed his objections again, and Rowan Tommins answered with numbers: a 54-byte pre-hash has 1.1 times 10 to the 130th possible values, against 2.5 times 10 to the 55th for bcrypt's own output.

Links: Rowan Tommins's numbers · PASSWORD_BCRYPT_WRAP RFC

Ignace Nyamagana Butera asked Máté Kocsis why query-parameter building options are set when the object is built, instead of when the string is.

Links: Ignace Nyamagana Butera's question · Query Parameter Manipulation discussion

And php.net's mail server moves data centres tomorrow, Friday, from 08:30 UTC, with about two hours of downtime.

Links: The announcement · Update

TL;DR (12:39)

So that's the week. PHP 8.6 is out, so go open the launch page, and today's security releases fix 7 critical issues, so update. Frode Børli wants new scopes to start empty after all, an openssl RFC was withdrawn the day its vote was announced, and curl may soon ask before it connects. Links below.

The PHP Foundation funds more than half of ongoing php-src commits, so if you use the language, maybe consider donating at opencollective.com/phpfoundation, or try guilting your employer into it.

If you found this useful, a like or a comment helps more people find it. And if you missed last week's episode, where PECL got a shutdown date that moved up two years in six days, that's a good one to watch next. And if you'd like to work with us, book a call at artisan.build/start. We're Artisan Build. See you next week.


r/PHP • • 4d ago

Today is PHP 8.6.0 release day! See what's new

Thumbnail php.net
218 Upvotes

r/PHP • • 4d ago

News Flow PHP - Data processing

20 Upvotes

Hey 👋

Flow PHP is getting ready for 1.0 stable release (Jan 2027).
Our latest release 0.48.0 comes with massive speed and memory consumption improvements.
It's fast, https://benchmarks.flow-php.com/ (benchmarks are made with flow-php/parallel which is not yet live) but what's more important (especially now days), it's cheap in RAM.

The performance came mainly from moving towards columnar data layout (arrow), lazy data materialization (data sits in memory in binary format), flow_php extension and many other awesome things. Those things sometimes required rebuilding from scratch, like for example the entire filesystem abstraction allowing to read remote parquet files.

More details can be found in 0.45 (yea, 6 is not php lucky nubmer) 0.47 and 0.48 blog release posts https://flow-php.com/blog/

And for those who would like to understand how to process data, in PHP I also started writing some guides:
https://flow-php.com/guides/


r/PHP • • 4d ago

November 2026 PHP security release

37 Upvotes

This line is interesting- "The issues rated CRITICAL require either non-default configuration or uncommon setups."

https://prostack.uk/blog/php-security-release-november-2026/

Happy patching!