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

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -