Last modified: 2014-08-16 10:52:24 UTC
(From Erik Bernhardson) HHVM's Redis::get() returns null on failure, while pecl-redis' Redis::get() returns false on failure. There's no good way to distinguish the two classes with same name. The Flow extension works around this when calling getMulti(), by filtering out false values; see I6d81d4a1bc6745 .
Confirmed. Minimal case: $ php5 -r '$redis = new Redis; $redis->connect("localhost"); var_dump($redis->get("nonexistent-key"));' bool(false) $ hhvm --php -r '$redis = new Redis; $redis->connect("localhost"); var_dump($redis->get("nonexistent-key"));' NULL
Submitted a fix upstream: https://github.com/facebook/hhvm/pull/3318
(In reply to Ori Livneh from comment #2) > Submitted a fix upstream: https://github.com/facebook/hhvm/pull/3318 Got merged: https://github.com/facebook/hhvm/commit/47b3503c741d2124ed972d1e617eb712148c92c8 What's left to do here?