Software 45323 Published by

PHP 8.6.1 RC1 was tagged today, delivering 780 commits focused on stability and security rather than new features. The release addresses critical OPcache JIT correctness issues and memory safety vulnerabilities, including use-after-free bugs and stack overflows across multiple extensions. Developers using PHP 8.6 in production are strongly advised to upgrade, as the patch resolves production-breaking crashes in the built-in server, FPM logging, and DOM handling. With the 8.6 line supported through November 2027, the GA release is expected within days of this candidate.



PHP 8.6.1 RC1 Tagged with 780 Bug Fixes, Hits Memory Safety and JIT Issues

PHP 8.6.1 Release Candidate 1 landed on Today, bringing 780 commits and hundreds of bug fixes to the maintenance branch. Release manager Joe Ferguson (svpernova09) tagged the candidate for the first patch release of the 8.6 line, which follows PHP 8.6.0 GA from November 19, 2026.

The RC spans 685 changed files across nearly every bundled extension. This is a pure bug-fix release, no new features. What you're looking at is the result of seven release candidates and post-GA development catching issues that slipped through the initial 8.6.0 release.

Screenshot_from_2026_06_30_15_03_26

The 780 commits, broken down

If you use OPcache with JIT enabled, the 30+ fixes in that subsystem are worth your attention. The list reads like a catalog of the kind of bugs that cause "why is this crashing randomly in production?" headaches.

Tracing JIT loops that never terminate once the buffer fills. Function JIT loops that run once or never end. Memory leaks in ASSIGN_DIM when assignments fail. SIGFPE in constant folding. A register allocation bug for traced references that breaks assignment. Double frees when destructors throw while freeing discarded temporaries. The list goes on.

"Invalid opcode 62/4/0" when assigning a reference in a return statement is the kind of error that makes you question your sanity before realizing it's a known JIT bug.

The Zend Engine and core got 28+ fixes. Use-after-free in zend_compile_const_decl() with OPcache during concurrent compilation. Use-after-free when an error handler releases a string while the "Illegal string offset" warning is raised. Anonymous class names truncated at NUL bytes in error messages, logs, and HTML/XML-RPC output. array_map() and array_filter() assertion failures after delayed out-of-memory. clone() with properties corrupting memory with JIT when __clone() keeps a reference and the result is discarded.

Extensions and the real-world impact

The extension-specific fixes span BZ2, CURL, Date, DBA, DOM, Enchant, FFI, Fileinfo, Filter, FPM, Gettext, Hash, Iconv, Intl, JSON, MBString, MySQLi, OpenSSL, PDO, PCRE, Phar, POSIX/Sockets, Reflection, Session, SimpleXML, SNMP, SOAP, Sodium, SQLite, Standard, Streams, Sysvmsg/Sysvshm, XSL, and Zip/Zlib.

Notable among those: FPM logging stack buffer overflow when log_limit exceeds 2048. MBString integer overflow in mb_convert_variables() leading to heap out-of-bounds write. DOM use-after-free in getElementById() after removing an ID. OpenSSL session reuse sharing request-lifetime callback structures with persistent streams. PDO crash on persistent DBLIB connections after error.

Two contributors did the heavy lifting. Jorg Sowa handled AST printing and export fixes, FPM stack overflow, and MBString/Intl issues. Ilia Alshanetsky (iliaal) took on DOM crashes and UAF, Gettext JIT bugs, OpenSSL session reuse, PDO crash fixes, and SimpleXML opcache crashes.

Should you upgrade?

Yes. PHP 8.6.1 RC1 is a maintenance release with hundreds of fixes discovered during the testing phase. If you use OPcache JIT, which is recommended for performance, this RC contains dozens of critical JIT correctness fixes that could cause wrong results or crashes in production.

Memory safety fixes across DOM, OpenSSL, streams, and FPM reduce the attack surface. Multiple use-after-free and stack overflow fixes are the kind of thing that matters when you're running PHP in production.

If you use the CLI built-in development server, the path handling fix addresses real-world compatibility issues with long or fragmented request paths. That's a "oh, that explains why that one endpoint kept failing" kind of fix.

The partial function application feature introduced in 8.6.0 also got several correctness fixes, stale caching in eval'd code, methods named assert() treated as global functions, arrow functions not capturing variables.

Breaking changes and deprecations

None introduced in 8.6.1 itself. But be aware of deprecations from 8.6.0 GA that may now produce warnings: return inside finally blocks, returning values from __construct() or __destruct(), using let or is as identifiers, and the deprecated mb_ereg(), mb_split(), and other mbregex functions.

If your application relies on buggy behavior that's been corrected, like fclose() previously returning true when it actually failed, you'll need to adjust. The main risk is in the fixes that correct wrong results, not in new restrictions.

Security context

No CVEs are explicitly attributed to PHP 8.6.1 RC1 in its NEWS file. However, the fixes address numerous memory safety issues that could potentially be exploited. Stack buffer overflows in FPM logging and PDO_Firebird. Heap out-of-bounds writes in MBString and DOM. Use-after-free bugs across DOM, OpenSSL callbacks, OPcache JIT, and streams filter chains. JIT code generation bugs that could produce incorrect machine code.

The CVEs fixed in PHP 8.6.0 GA remain relevant and are carried forward. That includes RCE vulnerabilities from use-after-free in magic method backtraces and timezone cache, PHP-CGI out-of-bounds read/write during PATH_INFO correction, PHP-FPM epoll UAF leading to local privilege escalation, and PHAR OpenSSL signature bypass via algorithm downgrade.

Timeline and what's next

PHP 8.6.1 GA is expected relatively soon after this RC, likely within a week or two given the stability of the fixes. The 8.6 line will receive security fixes through at least November 2027.

If you were on PHP 8.6.0 GA, upgrading to 8.6.1 RC1 is a drop-in patch upgrade. No code changes needed for the fixes themselves.

Head here to the GitHub release page.