What's New in PHP 8.6 php.net · 64 points · 35 comments · HN thread TL;DR The PH...
HN Best 200 @best
What's New in PHP 8.6 php.net · 64 points · 35 comments · HN thread
TL;DR The PHP project's release page for PHP 8.6 (due November 19, 2026) lists the headline features: partial function application, a Duration class, an Io\Poll scalable I/O API, a clamp() function, and a SortDirection enum, plus many smaller changes and deprecations. The thread is mostly about whether PHP is still a growing language, with a same-day security advisory drawing attention away from the release itself.
- PHP 8.6 is not yet released; the scheduled date is November 19, 2026.
- Partial function application uses ? and ... placeholders and returns a Closure that is called once the remaining arguments arrive.
- The new \Time\Duration class represents elapsed time with nanosecond precision across more than 250 years, and clamp() works with any comparable value including Duration.
- Io\Poll provides a common epoll/kqueue/event ports/WSAPoll interface intended as a foundation for ReactPHP and AMPHP, without stream_select()'s 1024-connection limit.
- Stream functions can now throw StreamException with structured StreamError objects instead of emitting warnings, and SortDirection gives libraries a shared type-safe sort order enum.
- Many features are deprecated, including spl_object_hash(), mb_ereg(), mb_split(), strcoll() and is_double()/is_long()-style aliases; trim() now also strips form feeds.
Discussion The thread is a mix of positive comments on specific features, a warning about a security advisory published the same day, and a long, somewhat heated debate about whether PHP is declining. Early comments praise the ZTS overhead reduction and stream error handling, but the most upvoted replies quickly shift to a critical fix announced for the same afternoon and then to RCE comparisons with nginx, Ruby, and other stacks. The mood is skeptical and combative, with frequent jabs at PHP's reputation for security and design.
- PHP is declining and not a good choice for new projects (some): Commenters argue that cheap LLM-assisted coding makes Go or Rust viable, and that PHP is adding too many features borrowed from other languages. Others counter that it has been in decline for years and remains decently ranked on TIOBE.
- PHP's ecosystem and deployability still matter (many): Defenders point to cheap shared hosting, FTP deployment, and the size of WordPress, Laravel, Symfony and Drupal ecosystems. They argue Go or Rust cannot yet replace that breadth of tightly integrated tooling.
- Security concerns overshadow the release (many): Several commenters focus on a critical PHP fix announced for 14:00 to 14:30 UTC and on past RCE bugs. Maintainers replied that the 8.6.0 release will include all applicable fixes, and that the security team is separate from the release team.
- Other ecosystems have comparable security problems (some): Replies cite recent nginx, Ruby and Node or Django vulnerabilities to argue that PHP is not uniquely insecure and that calls to rewrite everything in Rust are unrealistic.
- Excitement about ZTS and async potential (a few): One commenter is most excited about reducing thread-safe build overhead, which could eventually make ZTS the default and enable native async similar to the parallel extension. Another worries that async support would bring in non-PHP style concerns.
- Complaints about the site and missing Unicode defaults (a few): A few commenters complain about scroll animations, which turned out to be a browser reduced-motion setting, and about PHP not defaulting to Unicode strings.
Links from the comments
- Thread linked for the same-day PHP security advisory announcement.
- PHP security archive entry for the critical fix scheduled for the same day.
- The parallel extension, cited as an existing model for native async in PHP.
- TIOBE index page for PHP, used to argue about its long-term trend.
#PHP #release #security #programmingLanguages #webDevelopment