Skip to content

The increment returns bad result code ( 3.0.0.b1 ) #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
szicsu opened this issue Apr 17, 2016 · 1 comment
Closed

The increment returns bad result code ( 3.0.0.b1 ) #243

szicsu opened this issue Apr 17, 2016 · 1 comment

Comments

@szicsu
Copy link

szicsu commented Apr 17, 2016

Sample code:

$m = new Memcached();
$m->addServer('127.0.0.1', 11211);
$result = $m->increment('keyNotExists', 1); // false
$resultCode = $m->getResultCode(); // Memcached::RES_SUCCESS, in 2.2 version: Memcached::RES_NOTFOUND

PHP version:

PHP 7.0.5-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Configuration:

memcached support => enabled
Version => 3.0.0b1
libmemcached version => 1.0.18
SASL support => yes
Session support => yes
igbinary support => yes
json support => yes
msgpack support => yes

Directive => Local Value => Master Value
memcached.sess_locking => 1 => 1
memcached.sess_lock_wait_min => 1000 => 1000
memcached.sess_lock_wait_max => 2000 => 2000
memcached.sess_lock_retries => 5 => 5
memcached.sess_lock_expire => 0 => 0
memcached.sess_binary_protocol => 1 => 1
memcached.sess_consistent_hash => 1 => 1
memcached.sess_number_of_replicas => 0 => 0
memcached.sess_randomize_replica_read => 0 => 0
memcached.sess_remove_failed_servers => 0 => 0
memcached.sess_server_failure_limit => 0 => 0
memcached.sess_connect_timeout => 0 => 0
memcached.sess_sasl_username => no value => no value
memcached.sess_sasl_password => no value => no value
memcached.sess_prefix => memc.sess. => memc.sess.
memcached.sess_persistent => 0 => 0
memcached.sess_lock_wait => not set => not set
memcached.sess_lock_max_wait => not set => not set
memcached.compression_type => fastlz => fastlz
memcached.compression_factor => 1.3 => 1.3
memcached.compression_threshold => 2000 => 2000
memcached.serializer => php => php
memcached.store_retry_count => 2 => 2
memcached.default_consistent_hash => 0 => 0
memcached.default_binary_protocol => 0 => 0
memcached.default_connect_timeout => 0 => 0

andreiz added a commit that referenced this issue Jun 12, 2016
Fix #243: Increment/decrement of an undefined key returns false with RES_SUCCESS
@sodabrew
Copy link
Contributor

sodabrew commented Nov 1, 2016

Closing, was fixed by #247

@sodabrew sodabrew closed this as completed Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants