Php redis extended interger overflow -
why? guess overflow,but can't fix it.
<?php /*redis*/ $redis = new redis(); $redis->connect('127.0.0.1'); $res = $redis->eval('return 32140378*16777216'); var_dump($res); exit; //result:1509949440 //right:539226064027648
i have repaired myself, more details: https://github.com/phpredis/phpredis/pull/721
Comments
Post a Comment