Bug #54360 [Opn->Bgs]: memcache client library uses 32bit for increment/decrement

From: Date: Thu, 24 Mar 2011 06:27:47 +0000
Subject: Bug #54360 [Opn->Bgs]: memcache client library uses 32bit for increment/decrement
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-159740@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54360&edit=1

 ID:                 54360
 Updated by:         aharvey@php.net
 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


Thread (2 messages)

« previous php.bugs (#159740) next »