search

Home  >  Q&A  >  body text

php7.2 redis->ping() return value

Excuse me, what should be the return value of $redis->ping() in php7.2?

Before using php5.6, it always returned PONG, and the manual also said this

But after upgrading to 7.2, I suddenly found that a 1 was returned. I don’t know why

melo.jijimelo.jiji1992 days ago1866

reply all(1)I'll reply

  • 世

    2021-06-21 16:59:11

    This "1" returns the true value true. It also means there is a reply and the connection is successful.

    reply
    0
  • Cancelreply