php.net |  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: 2021-03-25 16:46 UTC
Votes:3
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: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.5.3 OS: win and linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arunkumar7827 at gmail dot com
New email:
PHP Version: OS:

 

 [2013-08-30 07:08 UTC] arunkumar7827 at gmail dot com
Description:
------------
<?php

  $memcache = new Memcache;
  //$memcache->connect("localhost",11211); # You might need to set "localhost" to 
"127.0.0.1"
  $memcache->addServer("localhost",11211);
  //echo "Server's version: " . $memcache->getVersion() . "<br />\n";
  $memcache->set("arun",100);
  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 
 ?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [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
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC