Skip to content

6.4.0 #3002

Open
Open

Description

@michael-grunder

I put together a 6.4.0RC1 release branch

There are a few changes in this release branch that remove or modify fixes that have landed on develop
because I want to avoid backward compatibility breakage.

🤖 summary of the changes

We reviewed 6.4.0RC1 against 6.3.0 and adjusted the release branch to preserve
existing application behavior, including cases where historical signatures or
semantics are imperfect:

  • Preserved existing RedisCluster return declarations. We dropped return-type
    corrections for lmove, blmove, expiremember, expirememberat, lpos, and
    zmscore because they made subclasses compatible with 6.3.0 fail to load.
  • Preserved the RedisCluster::zRevRangeByLex signature. We dropped changes to
    parameter names, the parameter list, and the declared return type to keep
    existing named-argument calls and subclasses working.
  • Kept client objects serializable. We removed the blanket serialization ban
    on Redis, RedisArray, RedisCluster, and RedisSentinel, preserving custom
    serialization and restoration hooks. Targeted RedisCluster initialization
    protects objects restored without calling their constructor.
  • Restored historical command-argument conversion. Arguments using PHP string
    conversion again turn false into an empty string and format floats according
    to PHP's precision setting. This preserves Lua inputs and hash-field identity
    while retaining the new command builder.
  • Preserved literal SORT STORE destinations. The destination remains exactly
    as supplied, without automatically applying the client's key prefix. This
    avoids writing to a different key or double-prefixing an existing destination;
    cluster slot validation remains in place.
  • Preserved SET comparison and option semantics. IFEQ continues to accept
    an already serialized or compressed comparison operand without encoding it
    again. Existing option-value handling also remains intact: for example,
    ['GET' => 'NX'] still means NX, preventing unintended overwrites.

These changes preserve established 6.3.0 contracts while keeping the release's
new commands, internal refactors, and safety fixes. Compatibility checks included
reflection and subclass comparisons, targeted Redis and RedisCluster regressions,
and Valgrind checks for restored client objects.

#2976

cc @remicollet

Activity

  1. remicollet commented on Nov 13, 2026

    @remicollet
    Collaborator

    Only a quick test (as I will be offline until Wednesday)

    • With PHP 8.4.27 / Redis 8.12RC3: OK
    • With PHP 8.4.27 / Valkey 9.2.0RC2: OK
    • with PHP 8.6.0RC7:

    Some warnings

    Warning: Class TestHandler implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0 in /work/GIT/pecl-and-ext/redis/tests/regenerateSessionId.php on line 30
    

    And 1 failure

    testAnonymousClassSerializationFailure                         [FAILED]
    
    Assertion failed: testAnonymousClassSerializationFailure - [no match '/Serialization of 'class@anonymous' is not allowed/']
                      /work/GIT/pecl-and-ext/redis/tests/TestSuite.php:366 (assertThrowsMatch) [no match '/Serialization of 'class@anonymous' is not allowed/']
                      /work/GIT/pecl-and-ext/redis/tests/RedisTest.php:10546 (testAnonymousClassSerializationFailure) [no match '/Serialization of 'class@anonymous' is not allowed/']
    
    
  2. michael-grunder commented on Nov 13, 2026

    @michael-grunder
    MemberAuthor

    Thanks!

    The test failure is because I reworked the serialization protection in the release branch in such a way that it will not break backward compatibility with subclasses. We still prevent deserialization from crashing anything but don't modify the arginfo files.

    I also added the create_sid method so that warning should be gone too.

  3. SnowySailor commented on Nov 15, 2026

    @SnowySailor
    Contributor

    Any possibility we could include the socket disconnections from #3005 to address the desync problem in this release? Just trying to determine when we should expect it to be generally available.

  4. michael-grunder commented on Nov 15, 2026

    @michael-grunder
    MemberAuthor

    Yep I already cherry-picked the commits into the release branch

  5. SnowySailor commented on Nov 15, 2026

    @SnowySailor
    Contributor

    Awesome, thank you!

  6. michael-grunder commented on Nov 20, 2026

    @michael-grunder
    MemberAuthor

    I'm going to aim to release this over the weekend since PHP 8.6 is now released.

    I want to go over the changes one more time to make sure frameworks that subclass Redis or RedisCluster don't face BC breakage.

  7. michael-grunder commented on Nov 23, 2026

    @michael-grunder
    MemberAuthor

    Release candidate is out

    https://github.com/phpredis/phpredis/releases#release-6.4.0RC1
    https://pecl.php.net/package/redis/6.4.0RC1

    Please report any issues so we can fix them before GA

  8. changed the title [-]6.4.0RC1[/-] [+]6.4.0[/+] on Nov 23, 2026
  9. michael-grunder commented on Nov 23, 2026

    @michael-grunder
    MemberAuthor

    I've put together a working 6.4.0RC2 branch.

    I figure we can continue using this thread for the overall release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions