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:
Andrei Zmievski
2009-06-01 13:03:11 -07:00
parent 9f8724be18
commit b57ea9d51e
6 changed files with 114 additions and 29 deletions

View File

@@ -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 ) {}