You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release request: 6.3.0 corrupts the heap under ZTS (FrankenPHP worker mode); fixed on develop by cd2a396 #2976
Hi! In ZTS builds, 6.3.0 corrupts the heap (zend_mm_heap corrupted) when several threads create Redis objects at the same time. FrankenPHP worker mode is where this shows up. develop already fixes it, but no release has the fix yet. Could you tag a 6.3.1 (or a patch release) that includes it?
Repro. Two or more FrankenPHP worker threads under concurrent load. No connection or command is needed:
<?php// worker.php$handler = staticfunction (): void {
$redis = new \Redis();
echo'ok';
};
while (\frankenphp_handle_request($handler));
Cause.git bisect (6.3.0 → develop) lands on cd2a396 from #2879, "Initialize global object handlers once not per object creation". Before that commit, create_redis_object()memcpys into the process-global redis_object_handlers every time a Redis object is created. Under ZTS that rewrites the struct while other threads read free_obj from it. So #2879 fixes the crash already; it just hasn't been released.
The same pattern looks like it was in create_cluster_context (RedisCluster) before #2879, so RedisCluster should be affected the same way. I haven't tested that.
+1 for a release candidate. It would also unblock PHP 8.6: 6.3.0 does not compile against 8.6.0RC5, because 8.6 removed XtOffsetOf and INI_STR:
common.h:16:73: error: implicit declaration of function 'XtOffsetOf'; did you mean 'offsetof'?
library.c:142:53: error: implicit declaration of function 'INI_STR'; did you mean 'Z_STR'?
develop no longer uses either macro since #2888, so an RC would let people start testing their apps on 8.6 ahead of GA (and let installers such as install-php-extensions enable redis for 8.6).
A second reason for a new release: PHP 8.6.0 is now out. The latest tag, 6.3.0, does not compile on it (INI_STR and zval_dtor are removed), while develop builds and loads on 8.6.0 (tested on macOS arm64). A tag that includes the 8.6 fixes would let pie install phpredis/phpredis work on 8.6 without building from develop.
Activity
michael-grunder commentedon Nov 3, 2026
A release makes sense. There have been a huge number of changes since 6.3.0 so I will probably want to do a release candidate.
temp commentedon Nov 12, 2026
+1 for a release candidate. It would also unblock PHP 8.6: 6.3.0 does not compile against 8.6.0RC5, because 8.6 removed
XtOffsetOfandINI_STR:developno longer uses either macro since #2888, so an RC would let people start testing their apps on 8.6 ahead of GA (and let installers such as install-php-extensions enable redis for 8.6).tacman commentedon Nov 20, 2026
Thank you for maintaining phpredis.
A second reason for a new release: PHP 8.6.0 is now out. The latest tag, 6.3.0, does not compile on it (
INI_STRandzval_dtorare removed), whiledevelopbuilds and loads on 8.6.0 (tested on macOS arm64). A tag that includes the 8.6 fixes would letpie install phpredis/phprediswork on 8.6 without building fromdevelop.Happy to test a release candidate if that helps.
michael-grunder commentedon Nov 20, 2026
There's a 6.4.0RC1 issue and branch.
It has all of the fixes and php 8.6 support as well as several commits to maintain 6.3.0 compatibility since we can't break that until 7.
I should be able to tag and release it early next week.
feat: build PHP 8.6 extensions from pinned development commits
feat: add PHP 8.6 images (#58)