note 91892 added to function.memcache-increment
| From: | ian at blip dot fm | Date: | Tue, 30 Jun 2009 23:28:46 +0000 |
| Subject: | note 91892 added to function.memcache-increment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157734@lists.php.net to get a copy of this message | ||
Be careful to use Memcache::decrement() and never Memcache::increment() with a negative value.
The check that prevents Memcache::decrement() from going negative is not in place with
Memcache::increment(), so you can end up with a garbage integer on the order of 18 quintillion
stored in place of the expected value.
----
Server IP: 208.69.120.35
Probable Submitter: 69.181.205.152
----
Manual Page -- http://www.php.net/manual/en/function.memcache-increment.php
Edit -- https://master.php.net/note/edit/91892
Del: integrated -- https://master.php.net/note/delete/91892/integrated
Del: useless -- https://master.php.net/note/delete/91892/useless
Del: bad code -- https://master.php.net/note/delete/91892/bad+code
Del: spam -- https://master.php.net/note/delete/91892/spam
Del: non-english -- https://master.php.net/note/delete/91892/non-english
Del: in docs -- https://master.php.net/note/delete/91892/in+docs
Del: other reasons-- https://master.php.net/note/delete/91892
Reject -- https://master.php.net/note/reject/91892
Search -- https://master.php.net/manage/user-notes.php