All documentation

PHPTS 2.0.14 Update: PHP 8.6 Support

Released on November 23, 2026, PHPTS 2.0.14 follows the latest PHP 8.6.0 major release and is among the first to adapt by self-compiling the php_redis, php_memcached, and php_memcache extensions; the IOCP version of Nginx has been upgraded to 1.31.9, fixing 10 security vulnerabilities (5 high-risk ones collectively referred to in the security community as "nginx2root"); PHP 8.5.12 has been upgraded to 8.5.13, fixing 18 CVE vulnerabilities; the phpts_kv extension has been completed with new phpts_kv_lock / phpts_kv_unlock cross-process mutex locks; fixed an issue where the active push debugging assistant could not send HEX data; event-triggered tasks can now select PHP 8.6 or 8.5 for different scripts.

version

Preface

PHPTS 2.0.14 was officially released on November 23, 2026. Installer download address: https://down.phpts.com/phpts.zip

2.0.14 version (2026-11-23) update notes:

  • 1. The IOCP edition Nginx has been upgraded to version 1.31.9, and the 10 security vulnerabilities fixed in the official version have been synchronized; among them, the 5 most closely watched high-risk vulnerabilities are collectively called “nginx2root” by the security community;
  • 2. Support for the newly released PHP 8.6.0 major version. Since there are not yet official versions of the php_redis.dll, php_memcached.dll, and php_memcache.dll extensions, PHPTS has compiled the DLLs itself based on the relevant source code, taking the lead in adapting to PHP 8.6;
  • 3. PHP 8.5.12 has been upgraded to version 8.5.13, fixing a total of 18 CVE vulnerabilities, including 7 critical-level vulnerabilities (CVSS score as high as 9.2) and 4 high-risk vulnerabilities;
  • 4. Added the phpts_kv inter-process shared key-value store PHP extension; the previous version's release package forgot to include it;
  • 5. Added phpts_kv_lock and phpts_kv_unlock OS-level cross-process, cross-PHP-script-lifecycle mutex locks;
  • 6. Fixed the bug where the “Active Push Debug Assistant” could not send HEX data;
  • 7. “Event-triggered tasks” now support selecting PHP 8.6 or 8.5 for different PHP scripts.

This is a release themed around security follow-up and ecosystem completion: both Nginx and PHP have been updated to the current latest security branches, and the commonly used cache extensions for PHP 8.6 have been compiled and supplied by PHPTS itself; phpts_kv and the newly added mutex locks make event scripts more convenient when collaborating across processes.

I. Support for PHP 8.6.0: commonly used cache extensions supplied as well

PHPTS 2.0.14 adds support for the PHP 8.6.0 major version, running alongside PHP 8.5 / 7.4 / 5.6, each with independent ports, independent php.ini, and independent extension switches. After PHP 8.6 was released, commonly used extensions such as php_redis, php_memcached, and php_memcache still did not have official Windows DLLs; PHPTS has compiled them based on the corresponding source code and released them with the package, so Redis and Memcached object caching can be used under PHP 8.6 out of the box.

The PHP 8.6 extensions in the installer are all built according to the new ABI: redis, memcache, memcached, mongodb, and the three PHPTS self-developed extensions (phpts_serial / phpts_mail / phpts_kv) can all be loaded directly; only xmlrpc is still on the 8.5 ABI, and the interface will mark it as unavailable and automatically comment out the corresponding extension line during startup self-healing, without affecting other extensions.

Note: The self-compiled memcache / memcached extensions do not include the session handler for “storing sessions in Memcached” (PHP 8.6 removed the old session API); object caching functionality is unaffected.

II. IOCP edition Nginx upgraded to 1.31.9: 10 security vulnerabilities fixed

The IOCP edition Nginx has been upgraded to 1.31.9, and the 10 security vulnerabilities fixed in the official version have been synchronized; among them, the 5 most closely watched high-risk vulnerabilities are collectively called “nginx2root” by the security community. This fix involves the Nginx core, and all users are advised to upgrade as soon as possible.

III. PHP 8.5 upgraded to 8.5.13

The bundled PHP 8.5 stable version has been upgraded from 8.5.12 to 8.5.13, fixing a total of 18 CVE vulnerabilities, including 7 critical-level vulnerabilities (CVSS score as high as 9.2) and 4 high-risk vulnerabilities. Sites using PHP 8.5 do not need to modify their configuration; after upgrading, restart PHP-CGI for the changes to take effect.

IV. phpts_kv enters the release package, with a new cross-process mutex lock

The 2.0.13 release package missed php_phpts_kv.dll; this time it has been added, and it is enabled by default in the Web pool and task pool. phpts_kv is an inter-process shared key-value store based on Windows named shared memory, which can share data between different PHP scripts and different process pools; together with event-triggered tasks, it is often used to register client connection IDs, which can then be used by any PHP page to actively push messages.

This time, the number of extension functions has increased from 8 to 10, adding phpts_kv_lock() and phpts_kv_unlock(): they are OS-level cross-process, cross-PHP-script-lifecycle mutex locks. Checking and writing are completed within the same named mutex, naturally atomic, so the PHP side does not need to write check-then-act patterns such as exists + set.

<?php
// 抢锁:键不存在或已过期时返回 true;TTL 秒数 = 最长持锁时间,0 = 不自动过期
if (!phpts_kv_lock('bus:rs485', 10)) {
    exit('busy');   // 其它进程 / 脚本正在占用
}

try {
    // 临界区:同一时刻只有一个 PHP 进程能进来
    // ...
} finally {
    phpts_kv_unlock('bus:rs485');
}

The lock value is fixed as phpts-lock; phpts_kv_del_by_value() always skips the lock marker, so gateway disconnection linkage will not mistakenly delete the lock; the lock can only be released by phpts_kv_unlock() or TTL expiration. Typical scenarios are RS485 half-duplex buses, serial devices, shared files, and task queuing. See “Application of phpts_kv_lock Cross-Process Mutex in RS485 Half-Duplex Bus” for details.

V. Event-triggered tasks: each script can choose PHP 8.6 or 8.5

Each rule in “Event-triggered tasks” (WebSocket / TCP / MQTT / serial port / timer) has a new “PHP Version” column, allowing it to be individually selected to be executed by the PHP 8.6 or 8.5 task pool; if not selected, it inherits the global default (8.6). The two task pools use independent php.ini and fixed ports: 8.6 → 127.0.0.1:6286, 8.5 → 127.0.0.1:6285, and do not affect each other; when starting the gateway or sub-services, the task pool for the version used by the rules will be automatically started if it is not running.

In this way, old scripts can continue to run on PHP 8.5, while new scripts can first verify new syntax and new features on 8.6 and migrate one by one.

VI. Fixed the Active Push Debug Assistant being unable to send HEX data

The bug where the “Active Push Debug Assistant” could not send HEX data has been fixed. Now messages can be sent directly in hexadecimal form, so there is no need to open another tool when debugging serial ports or TCP devices.

VII. Upgrade instructions

Download the 2.0.14 installer from the official website or use the built-in update to upgrade; old configurations are automatically compatible. This Nginx and PHP 8.5 update are both security updates, so upgrading as soon as possible is recommended; users of PHP 8.6 should confirm that their sites have switched to version 8.6 and restart PHP-CGI.

Installer download: https://down.phpts.com/phpts.zip

Comments 0 comments

No comments yet. Be the first to comment.

Leave a comment

Comments are plain text only. HTML and URLs are not allowed.

Your email will not be displayed in comments