|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
30 + 12 = ?
Subscribe to this entry?

 [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-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 16:01:23 2020 UTC