|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65588 in memcache decrement method can not return negative value
Submitted: 2013-08-30 07:08 UTC Modified: 2015-03-05 08:29 UTC
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: arunkumar7827 at gmail dot com Assigned:
Status: Open Package: memcache (PECL)
PHP Version: 5.5.3 OS: win and linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: arunkumar7827 at gmail dot com
New email:
PHP Version: OS:


 [2013-08-30 07:08 UTC] arunkumar7827 at gmail dot com

  $memcache = new Memcache;
  //$memcache->connect("localhost",11211); # You might need to set "localhost" to 
  //echo "Server's version: " . $memcache->getVersion() . "<br />\n";
  echo  "my value=>".$memcache->get("arun");
  echo "<br>after decrement=>".$memcache->decrement("arun",10);
  echo "<br>after decrement=>".$memcache->decrement("arun",110);
// here it have to return -10 but its return 0 


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 16 15:01:23 2021 UTC