Aaron Stone
7120d80cb9
Set TCP_NODELAY when setting binary protocol ( #421 )
...
* Set TCP_NODELAY when setting binary protocol
* Add braces to the check_set_behavior macro
2020-10-09 03:23:41 -07:00
Aaron Stone
5d154be286
Remove stray instances of TSRMLS_CC macro
...
This macro was defined empty in PHP 7.x, and removed in PHP 8.x.
2019-10-03 16:25:36 -07:00
Aaron Stone
0b79956e6d
Error message if old PERSISTENT=n flag is used in session.save_path
2018-12-21 01:28:03 -08:00
Aaron Stone
f4dafd207e
Add INI setting to choose session consistent hash (ketama or ketama_weighted) ( #392 )
...
Provides a new INI option to select the same consistent hash behavior as
older versions of php-memcached, to aid in migration from PHP 5.x to PHP
7.x. When `memcached_sess_consistent_hash_type` is set to `ketama` or
`ketama_weighted`, that sets either MEMCACHED_BEHAVIOR_KETAMA or
MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED, respectively.
Resolves #344
2018-04-08 19:41:01 -07:00
Aaron Stone
8bfdbcc906
Update for new PHP 7.3 REFCOUNT macros ( #390 )
2018-03-29 23:26:46 -07:00
Aaron Stone
c65cc1c266
Fix session persistence by checking memcached behavior values before setting ( #379 )
2018-01-18 12:36:04 -08:00
Tom Van Looy
3f1362ae8b
Remove unused defines MEMC_SESS_DEFAULT_LOCK_WAIT and MEMC_SESS_LOCK_EXPIRATION ( #354 )
2017-11-20 23:18:26 -06:00
Xinchen Hui
bff303547f
Fixed memleak (severs)
2017-02-19 18:32:16 +08:00
Xinchen Hui
1e7e4eedb6
Fixed issue #327
2017-02-19 18:26:55 +08:00
Aaron Stone
f7c92b0699
Update warning for touch command in binary protocol mode with libmemcached < 1.0.18 ( #322 )
2017-02-12 15:56:22 +00:00
Aaron Stone
fa620a48c4
Restore php_libmemcached_compat with workaround for missing memcached_exists ( #314 )
...
This partially reverts commit c564fd875e from #295
2017-02-07 12:34:07 +00:00
dyeldandi
e1932dceb6
Added error reporting to session code ( #301 )
2017-01-24 11:37:37 +00:00
Aris Buzachis
493d6911bf
fix: 0 max_execution_time ini value ( #266 )
...
It seems that zend_ini_long doesn't work anymore with ZEND_STRS
and that the extesion should use ZEND_STRL, back again.
2017-01-22 21:37:42 +00:00
Arjen
c564fd875e
Cleanup all checks for unsupported libmemcached versions ( #295 )
2017-01-20 13:26:57 +00:00
Aaron Stone
957024f777
Consistently use #ifdef instead of #if for autoconf definitions
2016-10-11 07:53:47 -07:00
Xinchen Hui
8b27e5a079
Merge branch 'master' into php7
...
Conflicts:
php_memcached.c
php_memcached_session.c
2016-07-23 11:33:53 +08:00
Paul Werelds
27fa80fb26
Adds a missed SASL presence constraint
2016-02-12 15:52:45 +01:00
Manabu Matsui
27a22f3c0a
fix expiration
2016-02-08 15:35:46 +09:00
Mikko
782077ce57
Fix json serializer
2016-01-31 23:11:11 +00:00
Mikko
bdd0911a9b
Update to a simpler object structure, make session config match old setting names, key validation removed etc
2016-01-31 16:07:48 +00:00
Mikko
c15d792ec3
Clean up session code, start on the whole i_obj/m_obj confusion
2016-01-30 11:41:57 +00:00
Mikko
dc5b22a8da
Cleaning up driver for php7. WIP
2016-01-29 14:58:50 +00:00
Mikko
7cb0c48c8d
Fixes to session
2016-01-21 13:42:17 +00:00
Mikko Koppanen
0dae7f29fa
Merge pull request #164 from yohgaki/php7
...
Use new session save handler
2016-01-20 23:53:12 +00:00
Yasuo Ohgaki
bd32183067
Fixed session read return value
2016-01-16 06:19:50 +09:00
Alex Samorukov
23db27a09b
check if session was allocated on PS_OPEN_FUNC
2015-11-12 23:20:44 +01:00
Alex Samorukov
d68098e61d
check if session was allocated on PS_OPEN_FUNC
2015-11-12 23:11:50 +01:00
Yasuo Ohgaki
0021b5c083
Use new session save handler
2015-02-12 13:28:52 +09:00
Rasmus Lerdorf
399b86bdcd
More tests pass now
2015-02-03 12:35:55 -08:00
Rasmus Lerdorf
949195d28b
PHP7 Support
2015-02-03 08:02:42 -08:00
Mikko
85ca1f1b9d
This should resolve #144
2014-09-01 16:28:07 +03:00
Mikko
feed35e220
Version based tests: Do version checks in one place, fix check when setting options
2013-11-25 13:27:55 +08:00
Mikko
a437602912
Reorganise headers a bit, include everything in the private header
2013-11-24 13:48:52 +08:00
Mikko
26ac8bd9cb
Refactor SASL support checking, move "unnecessary" things to private header, move travis script to .travis dir
2013-11-24 00:00:59 +08:00
Remi Collet
61896ac127
Fix: warning: 'plist_key_len' may be used uninitialized in this function [-Wmaybe-uninitialized] (false positive, juste to make gcc happy)
2013-11-19 15:17:35 +01:00
Eric Merrill
b0cdcb3444
More granular session locking support
...
Adding memcached.sess_lock_max_wait, which sets how long
a incoming lock request will wait for the lock before
dying.
And memcached.sess_lock_expire, which sets how long until
the lock expires, independent of the current
max_execution_time.
2013-10-22 19:01:43 -04:00
Mikko
47f6ff1060
Added support for libmemcached 0.44 and up. Testing for now
2013-10-19 00:35:46 +08:00
Mikko
e9bf97d286
Fix typo and the build
2013-10-18 19:17:23 +08:00
Mikko
15cf784d4c
Fixed memleak with session sasl credentials. Fixed pointer deref
2013-10-18 18:43:30 +08:00
Mikko
028323610c
Added support for session sasl
2013-10-18 04:24:25 +08:00
Ilia Alshanetsky
e781e16987
Merge branch 'FixIssue53' of https://github.com/Vendini/php-memcached into Vendini-FixIssue53
...
Conflicts:
php_memcached.h
php_memcached_session.c
2013-03-03 10:20:43 -05:00
Mitch Hagstrand
7e3bc8b0ee
Removed memcached.sess_consistent_hashing option.
...
1. Removed memcached.sess_consistent_hashing which is a lesser version of memcached.sess_consistent_hash
2. Added default value for memcached.sess_consistent_hash
2013-01-14 00:40:49 -08:00
xoJIog
07879fb6a9
php_memcached_session.c added connect timeout
2012-11-20 11:11:28 +02:00
Ilia Alshanetsky
40ce9b4633
Merge branch 'master' of https://github.com/Vendini/php-memcached into Vendini-master
...
Conflicts:
memcached.ini
php_memcached.c
php_memcached.h
php_memcached_session.c
2012-11-10 10:21:47 -05:00
Ilia Alshanetsky
1162d10312
Merge pull request #23 from dclaisse/session_consistent_hashing
...
add consistent hashing option for session handling
2012-11-03 11:36:19 -07:00
Ilia Alshanetsky
1f3ae25320
Merge pull request #30 from gureedo/master
...
session replication feature
2012-11-03 11:32:09 -07:00
Ilia Alshanetsky
3574b28758
Fixed bug #36 (Allow memcached.sess_prefix to be blank)
2012-11-03 14:30:05 -04:00
Mitch Hagstrand
faf84af789
Added Memcached Session Replicas by changes below
...
1. Allow for automatic removal of failed server to session handler (MEMCACHED_BEHAVIOR_REMOVE_FAILED_SERVERS)
2. Allow X number of replicas (MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)
3. Added option for consistent hasing (MEMCACHED_BEHAVIOR_KETAMA)
4. Added error msg when session handler couldn't obtain a lock
2012-10-04 23:44:56 -07:00
gureedo
d9a01a3d77
session replica options
2012-08-29 18:16:12 +06:00
Andrei Zmievski
47172e18a1
Drop libmemcached 0.x series support, release 2.1.0.
2012-08-06 21:57:39 -07:00