Visitar URL original
php 8.4.15 stable at detecting redis version · Issue #2783 · phpredis/phpredis · GitHub
Skip to content

php 8.4.15 stable at detecting redis version #2783

Description

@osevan

25-Nov-2025 15:04:53 Europe/Berlin] PHP Fatal error: Uncaught TypeError: Redis_Test::detectKeyDB(): Argument #1 ($info) must be of type array, false given, called in /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/RedisTest.php on line 78 and defined in /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/RedisTest.php:64
Stack trace:
#0 /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/RedisTest.php(78): Redis_Test->detectKeyDB()
#1 /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/TestSuite.php(605): Redis_Test->setUp()
#2 /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/TestRedis.php(119): TestSuite::run()
#3 {main}
thrown in /root/compile/php8.4-build/php-8.4.15/ext/phpredis/tests/RedisTest.php on line 64

when using different redis fork - i mean no keydb or valkey or redis - than this error comes.

debian sid latest updates installed

Activity

  1. michael-grunder commented on Nov 25, 2025

    @michael-grunder
    Member

    I think maybe this is a symptom of the fact that the server is down?

    $info would be false if $this->redis->info() returns false, which is what you would expect if the server can't be reached.

    Then we pass false to detectKeyDB which throws the fatal error. I can fix the fatal error by exiting on failure to execute INFO but that likely won't solve your issue

  2. michael-grunder commented on Nov 25, 2025

    @michael-grunder
    Member

    Actually it's even stranger, because for info() to return false but not throw an exception is very weird. Can you provide more iinformation? Exactly what server are you running against and how?

    If you can provide a docker container that reproduces the problem it should be simple to fix.

  3. osevan commented on Nov 27, 2025

    @osevan
    Author

    Soo you did pulled ?

    I can test in next days if fix is working

  4. osevan commented on Nov 27, 2025

    @osevan
    Author

    Btw if you want , i can be beta tester for your relay tool on my server for new redis server .

    Maybe you have matrixclient element for contact ?

  5. michael-grunder commented on Nov 27, 2025

    @michael-grunder
    Member

    I fixed the tests so that a false reply from $redis->info() won't cause a fatal type error, but we'll still need to figure out why you're seeing false from info.

    Btw if you want , i can be beta tester for your relay tool on my server for new redis server .

    Sure, feel free to download and try it out. We have several packages as well as plain binaries here

  6. osevan commented on Nov 28, 2025

    @osevan
    Author

    Maybe you have telegram or matrix element group for discussion and contact

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