Edit report at http://bugs.php.net/bug.php?id=54360&edit=1
ID: 54360 Updated by: [email protected] Reported by: jakub dot lopuszanski at nasza-klasa dot pl Summary: memcache client library uses 32bit for increment/decrement -Status: Open +Status: Bogus Type: Bug Package: Unknown/Other Function Operating System: debian PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Please report this on the PECL bug tracker at http://pecl.php.net/bugs/report.php?package=memcache Previous Comments: ------------------------------------------------------------------------ [2011-03-23 14:34:34] jakub dot lopuszanski at nasza-klasa dot pl Description: ------------ even if you compile everything on 64-bit machine, the code of static int mmc_incr_decr(mmc_t *mmc, int cmd, char *key, int key_len, int value, long *number TSRMLS_DC) /* {{{ */ still forces the value to be 32 bit signed integer, even though specification says about 64bit integers Test script: --------------- $memcache->increment('whatever',3000000000); Expected result: ---------------- incrementing by 3 000 000 000 Actual result: -------------- trying to "increment" by negative value ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54360&edit=1
