Sitelet https://github.com/phpredis/phpredis/issues/2650
Skip to content

hDel behaviour change between 6.1.0 and 6.2.0 #2650

Description

@simoncoggins

We started getting fatal errors in our app when we upgraded from 6.1.0 to 6.2.0 with the error:

Redis::hDel() expects at least 2 arguments, 1 given

It turns out there was a bug in our code which could result in hDel being called with only 1 argument. It was easily fixed by checking $keys wasn't empty before calling hDel().

Just thought I'd raise it here as a behaviour change in a minor version release as it doesn't seem to be noted in the changelog, and could impact others.

I'm assuming it was this change that made it more strict:

4082dd0#diff-2b6a26e1f6be5c1e65dbb4a75590772d28149f0f85b3863e83e20771ba900969R3876-R3879

Activity

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