<?php
$redis = new Redis();
$redis->connect('localhost');
$redis->set('key', 'value', 0);
Using PHP 5.6.17 and phpredis 2.2.7 this yields "SET" "key" "value". Fine.
But using PHP 7.0.2 and the current HEAD of the php7 branch the same code sends nothing to the Redis server (observed using redis-cli with the MONITOR command). I guess this is a bug because IMHO the old behaviour (0 meaning "no expiration") is more intuitive.
Using PHP 5.6.17 and phpredis 2.2.7 this yields
"SET" "key" "value". Fine.But using PHP 7.0.2 and the current HEAD of the
php7branch the same code sends nothing to the Redis server (observed usingredis-cliwith theMONITORcommand). I guess this is a bug because IMHO the old behaviour (0meaning "no expiration") is more intuitive.