mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
Merge a number of patches.
libmemcached may return NULL as a result if the length of the value is 0. Make zval_from_payload defensive accept NULL as payload Fixed memcached-api.php to match get and get by key cast token parameter. Separated CAS tests, and new tests.
This commit is contained in:
@@ -75,9 +75,9 @@ class Memcached {
|
||||
|
||||
public function __construct( $persistent_id = '' ) {}
|
||||
|
||||
public function get( $key, &$cas_token = null, $cache_cb = null ) {}
|
||||
public function get( $key, $cache_cb = null, &$cas_token = null ) {}
|
||||
|
||||
public function getByKey( $server_key, $key, $cache_cb = null ) {}
|
||||
public function getByKey( $server_key, $key, $cache_cb = null, &$cas_token = null ) {}
|
||||
|
||||
public function getMulti( array $keys, &$cas_tokens = null, $flags = 0 ) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user