Visitar URL original
protocol error got as reply type byte · Issue #2829 · phpredis/phpredis · GitHub
Skip to content

protocol error got as reply type byte #2829

Description

@tillkruss

For transparency and searchability.

[19-Apr-2026 01:06:04 UTC] protocol error, got 'O' as reply type byte
[19-Apr-2026 01:06:04 UTC] protocol error, got 'a' as reply type byte
[19-Apr-2026 01:06:04 UTC] protocol error, got '
[19-Apr-2026 01:06:04 UTC] protocol error, got '
[19-Apr-2026 01:06:04 UTC] protocol error, got 'm' as reply type byte
final class Kaboom {
    public function __wakeup(): void {
        global $redis;
        $redis->pipeline();
        $redis->mget(['payload']);
        $redis->exec();
    }
}

$redis = new Redis(['host' => 'localhost', 'port' => 6379]);
$redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_PHP);

$redis->mset(['string:1' => 'foo', 'payload' => new Kaboom()]);
$redis->mget(['payload', 'string:1']);

Activity

  1. tillkruss commented on Apr 20, 2026

    @tillkruss
    MemberAuthor
  2. michael-grunder commented on Apr 20, 2026

    @michael-grunder
    Member

    That's a great reproducer, how'd you come up with it? 😄

  3. tillkruss commented on Apr 20, 2026

    @tillkruss
    MemberAuthor

    That's a great reproducer, how'd you come up with it? 😄

    Some 🧙‍♂️ in a random slack channel posted it.

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

Metadata

Metadata

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