|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2013-10-30 19:39 UTC] pajoye@php.net
  [2013-10-31 17:41 UTC] petermck at google dot com
  [2021-03-25 16:46 UTC] cmb@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: cmb
  [2021-03-25 16:46 UTC] cmb@php.net
 | |||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ php > $memcache = new Memcached; php > $memcache->addServer('localhost', 11211) or die ("Could not connect"); php > var_dump($memcache->set('key', 9223372036854775807)); bool(true) php > var_dump($memcache->increment('key')); int(-9223372036854775808) The negative return value is a consequence of memcache->increment's use of atol to parse the results i.e. ... *number = (long) atol(mmc->inbuf); return 1; } memcache->increment should return the same thing as memcache->get for the key after increment. Though I'm not sure if the clipping behavior of memcache->get is correct either: php > var_dump($memcache->get('key')); int(9223372036854775807)