# PHP 8.6: Things are gonna get a lot more strict around here

- URL: https://talkfuse.com/story/php-8-6-things-are-gonna-get-a-lot-more-strict-around-here/
- Published: 2026-11-20T23:28:47+00:00
- Updated: 2026-11-21T01:30:25+00:00
- Original publisher: The Register
- Original article: https://www.theregister.com/devops/2026/11/20/php-86-things-are-gonna-get-a-lot-more-strict-around-here/5311486
- Topics: Cybersecurity, Software, Technology

## Key points

- PHP 8.6 tightens default session security.
- Cross-site requests will have less access to session cookies.
- Stricter string handling may make some exploits harder.

## Summary

PHP 8.6 introduces stricter security defaults for sessions and string handling, aiming to make common attacks harder to carry out. The changes follow a recent wave of serious PHP vulnerabilities and a coordinated effort by the PHP community to improve how quickly flaws are patched.

By default, PHP will reject session IDs it did not create, prevent JavaScript from reading session cookies, and withhold cookies on cross-site POST requests and certain embedded requests. The release also makes some functions report errors more clearly and treats strings containing null bytes more strictly. The article says these measures can help limit session hijacking and cross-site request forgery, but do not prevent remote code execution vulnerabilities.

---
Summarised by TalkFuse (https://talkfuse.com/). Quote the original publisher for the reporting and link this page for the summary and discussion.
