56 Commits

Author SHA1 Message Date
Szabolcs Balogh 81b1267413 ini_set return check fixed in test 2015-11-12 15:58:16 +01:00
Szabolcs Balogh 8249dbfe37 stat malloc removed from memcache >= 1.4.0 / tests fixed 2015-11-12 12:56:24 +01:00
Herman Radtke ff0dd92d53 Fix Bug #63272 - Explicitly reserve range of flags in php_memcache.h so application code can use 2012-11-04 19:34:04 +00:00
Herman Radtke 0bd238aadd Reverted to revision 327543. Memory leaks. 2012-09-23 01:47:59 +00:00
Xinchen Hui ab6e48c952 Fixed bug #62995 (memcache client Segmentation fault)
Need be reviewed by the author later
2012-09-08 15:46:43 +00:00
Herman Radtke 7d669524ca Fixed pecl bug #16536 (Weight of 0 causes SegFault on memcache_add_server) 2010-03-24 14:48:01 +00:00
Mikael Johansson 7479cc3c68 Preparations for release 2.2.5 2009-02-27 17:46:23 +00:00
Mikael Johansson d48240849c Improved performance of consistent hash strategy
Reverted ssprintf() simplification because %s is not binary safe (values might contain \0)
Fixed compiler warnings in setoptimeout()
2009-01-15 18:11:41 +00:00
Mikael Johansson 0ce9c191f1 Merged test from non-blocking-branch 2008-06-25 20:57:20 +00:00
Mikael Johansson 1a6f1b803d Fixed PECL bug #14239 (Memcache::set() modifies value parameter) 2008-06-25 20:27:07 +00:00
Mikael Johansson c9f6ec8263 Fixed PECL bug #13546 (Session handler through unix socket) 2008-04-16 19:54:19 +00:00
Mikael Johansson a280d8d3e8 Fixed PECL bug #12883 (Breaks UTF-8 in keys) 2008-01-11 21:34:13 +00:00
Mikael Johansson d16bc83407 Added unittest for close() in loop 2008-01-10 18:33:20 +00:00
Mikael Johansson 7b2f6fa7ba Changed behaviour of close() to actually remove all servers from pool (PECL bug #12555)
Prepare for release 2.2.2
2008-01-10 18:29:57 +00:00
Mikael Johansson 0dc0ed0955 Added non-serialized test 2008-01-09 20:17:21 +00:00
Mikael Johansson e6d5c0d892 Fixed problem with unserialize and duplicate values 2008-01-09 20:06:49 +00:00
Mikael Johansson a8df7c92cd Fixed Bug #12494 Segmentation fault when Exception thrown in the callback function 2007-11-21 20:01:57 +00:00
Mikael Johansson b694a78097 Modified some unittests to run on PHP4 and PHP6
Prepare for release 2.2.1
2007-11-01 15:15:40 +00:00
Mikael Johansson 303ceb1185 Fixed problem with keys being modified in-place by some methods 2007-11-01 14:01:38 +00:00
Mikael Johansson 715af3e12b Added argument to Memcache::get() that receives the flags for retrieved value(s) 2007-10-17 19:20:14 +00:00
Mikael Johansson 74f599ab69 Fixed PECL bug 11369 ("nested" get calls in __wakeup() functions breaks)
Fixed incompatibility with standard hash strategy in previous versions
2007-10-17 18:52:02 +00:00
Mikael Johansson e565973cc0 Updated failure callback test to include new errstr and errnum parameters 2007-09-23 12:49:05 +00:00
Mikael Johansson 6da305d176 Improved error handling and reporting 2007-09-23 11:37:19 +00:00
Mikael Johansson 6d0fe595d5 Merged hash function abstraction from branch
Made consistent hashing implementation failover compatible with branch
2007-09-02 10:48:13 +00:00
Antony Dovgal f685bca500 fix PECL bug #11221 (Double free when returning cached object with __sleep) 2007-06-04 19:39:59 +00:00
Mikael Johansson ae9d2fbf79 Don't failover on "object to large" errors 2007-05-24 16:57:08 +00:00
Mikael Johansson aa1260dfd3 Fixed return type of hash strategy free_state 2007-05-01 14:15:20 +00:00
Mikael Johansson 82117c23a6 Consistent hashing support using CRC32("server:port")
memcache.hash_strategy INI directive
2007-05-01 10:25:49 +00:00
Mikael Johansson 076f27a956 Fixed PHP6 build 2007-05-01 08:52:53 +00:00
Mikael Johansson 34f60c4e39 MEMCACHE_HAVE_SESSION constant to check for session handler capability 2006-10-27 10:49:18 +00:00
Mikael Johansson b4eacbcc90 Session save handler implementation
session.save_handler = memcache
  session.save_path = "tcp://host:port?persistent=1&weight=2&timeout=2&retry_interval=15,tcp://host2:port2"
Refactorings to support the session handler
Optimizations to reduce the number of malloc's
Use --enable-debug in config.m4 to set -Wall flag
Fixed some compiler warnings about const and unsigned pointers
2006-10-26 23:27:35 +00:00
Mikael Johansson 62ca4be0a2 Added support for flush_all timestamp parameter 2006-10-16 17:31:28 +00:00
Mikael Johansson 12362c8cf7 Added addServer() domain socket test for completeness 2006-10-15 18:34:21 +00:00
Mikael Johansson 343f71eb3f Unix domain socket support
Fixed some unit tests to run properly with memcached 1.2.0
2006-10-15 18:29:11 +00:00
Mikael Johansson 50c60b9120 Some internal housekeeping and minor optimizations 2006-10-13 09:30:34 +00:00
Mikael Johansson 748575eff0 Memcache::connect() adds the server to the pool if already initialized, instead of reinitializing pool from scratch 2006-09-04 21:30:22 +00:00
Mikael Johansson 7d67a74ff0 mmc_read_value(), mmc_parse_response() passes key length to caller
Removed some unused variables (perhaps --enable-debug should turn on -Wall)
Changed some leftover INI_INT()s to use MEMCACHE_G() instead
Fixed stats parsing problem with PHP 5.1+ where add_assoc_* implicitly converts keys to integers if is_numeric
Fixed some unit tests to account for docref links
2006-09-01 10:22:41 +00:00
Mikael Johansson 9226474b00 Less string duplication in stats parsing and better unit testing
Fixed problem with stats parsing and memcached <= 1.1.11
Fixed some unit tests to account for docref links (PHP 4.4.4 ignores html_errors?)
2006-09-01 08:37:28 +00:00
Mikael Johansson ef88d4779a Statistics methods support fetching other kinds of stats (slabs, items, cachedump, ...)
Updated SKIPIF in some unit tests
2006-08-04 09:10:01 +00:00
Mikael Johansson 68851476d3 Added unit tests for new functionality 2006-08-02 10:49:25 +00:00
Mikael Johansson 6e3b9dbd77 Servers may be flagged up/down and the user may specify a error callback
Individual server params and up/down status may be changed at runtime
New methods: setServerParams(), getServerStatus()
Fixed problem with multiple free()'s on persistent connection failure
2006-08-02 10:47:25 +00:00
Antony Dovgal dfd51d656d fix SKIPIF sections 2006-05-17 21:15:18 +00:00
Antony Dovgal be96816377 fix test 2006-05-16 16:43:21 +00:00
Mikael Johansson b1aa4f6087 Moved "memcache.allow_failover" and "memcache.chunk_size" ini directives into MODULE_GLOBALS
Changed ini directives to STD_PHP_INI_ENTRY and added input validation
2006-04-28 09:55:48 +00:00
Mikael Johansson 35d7cef3d0 Added "memcache.default_port" ini directive (default 11211)
Renamed "memcache.failover" directive to more intuitive "memcache.allow_failover"
2006-02-05 13:04:40 +00:00
Mikael Johansson 06dde31e06 Added "memcache.failover" ini directive to turn failover on/off (default on)
Reordered the flush() unit tests to be run last in test suite
2006-02-05 11:15:08 +00:00
Mikael Johansson 6d60e5e159 Fixed lack of multiplier in size argument to emalloc in mmc_pool_add (bug #6595) 2006-01-26 17:57:51 +00:00
Mikael Johansson d32dc3149a Preparations for the upcoming 2.0.0 release which will have support for multiple servers and automatic compression 2005-12-21 18:21:55 +00:00
Antony Dovgal b474cec86b add SKIPIF condition 2005-12-21 11:22:01 +00:00
Antony Dovgal 0e65dc69cd add new tests 2005-12-07 10:56:27 +00:00