1098 Commits

Author SHA1 Message Date
Xander
6d8f5d524f Windows fixes (#411) 2018-11-14 16:27:53 -08:00
Michael D. Stemle, Jr
6220e207b0 In the latest zlib package for homebrew, the install target is /usr/local/opt/zlib, so I'm adding that to the list. (#410) 2018-11-14 16:25:58 -08:00
Peter Kokot
f773f278c9 Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE (#403)
Autoconf made several macros obsolete including the AC_TRY_COMPILE and
AC_TRY_LINK in 2000 and since Autoconf 2.50:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2

These macros should be replaced with the current AC_FOO_IFELSE instead.

It is fairly safe to upgrade and take the recommendation advice of autoconf
upgrade manual since the upgrade should be compatible at least with PHP
versions 5.4 and up, on some systems even with PHP 5.3. PHP versions
from 5.4 to 7.1 require Autoconf 2.59+ and PHP 7.2+ require Autoconf
2.64+.

This patch was created with the help of autoupdate script.

Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
2018-09-01 09:30:31 -07:00
Peter Kokot
58b299e585 Add configure.ac to Git ignored files (#405)
Starting with PHP 7.2, the phpize script outputs configure.ac. Earlier verisons
of phpize generated configure.in. Since configure.in was already on the
gitignore list, this PR adds configure.ac to the gitignore list.
2018-09-01 09:27:21 -07:00
Tom Van Looy
549e7c8a3a Change session_lock default ini values (#350) 2018-07-20 16:01:55 -07:00
Peter Kokot
b70b82ee4a Remove forgotten unused comment about -lpthread (#406)
The -lpthread option has been added long time ago in commit
c10de3699f

and has been since also refactored and therefore comment is not needed
anymore:
feed35e220
2018-07-20 15:57:05 -07:00
Peter Kokot
c54075a1bf Remove .cvsignore unused file (#404)
The .cvsignore file was used in CVS. In Git the .gitignore file includes
the ignored project files.
2018-07-02 10:16:12 -07:00
Peter Kokot
f5f84c592f Remove unused Git attributes ident (#402)
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-06-30 10:00:44 -07: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
893d7d5306 Expose build configuration via PECL (#383) 2018-03-29 23:42:08 -07:00
Aaron Stone
8bfdbcc906 Update for new PHP 7.3 REFCOUNT macros (#390) 2018-03-29 23:26:46 -07:00
Aaron Stone
e0ccf87c51 Avoid hanging getStats() when binary protocol and non-blocking are both enabled
Fixes #348.
2018-01-23 06:27:26 -08:00
Aaron Stone
dfcbc02693 Remove memcached.ini reference to deprecated sess_lock_max_wait setting 2018-01-23 04:13:27 -08:00
Aaron Stone
2c693c7a9b Allow connect_timeout value of -1 and show Unlimited in phpinfo() 2018-01-23 03:52:34 -08:00
Aaron Stone
f54ed299c0 Use STD_PHP_INI_BOOLEAN to correctly display php.ini booleans 2018-01-23 03:32:07 -08:00
Aaron Stone
deb451ae9e Fix wrong undefs of local macros for registering constants 2018-01-21 21:47:48 -08:00
Aaron Stone
2fc7d3659c Fix wrong INI parsing method for memcached.sess_randomize_replica_read 2018-01-21 21:46:56 -08:00
Aaron Stone
5c6de2b0e4 Add support for libmemcached encryption (#381)
This feature is fully supported in libmemcached 1.0.18 and higher,
but has a notable bug in the original implementation in libmemcached
versions 1.0.6 - 1.0.17 that the encryption key, once set, cannot be
changed otherwise all further get/set operations fail.
2018-01-20 08:04:40 -08:00
Aaron Stone
e622992e6f The configure script warns if libmemcached needs sasl.h if sasl.h cannot be found (#380) 2018-01-18 23:58:19 -08:00
Aaron Stone
7ed5b38a3e Removed ifdef 0 code and trivial block cleanup 2018-01-18 19:21:41 -08:00
Aaron Stone
c65cc1c266 Fix session persistence by checking memcached behavior values before setting (#379) 2018-01-18 12:36:04 -08:00
Aaron Stone
6767a79dc3 Supports PHP 7.0 - 7.2 2017-12-19 04:06:52 -08:00
Aaron Stone
04e404631f Bump version to 3.1.0-dev 2017-12-10 01:23:51 -08:00
Aaron Stone
809e4b078a Release notes for 3.0.4 2017-12-10 01:23:51 -08:00
Peter Kokot
f30e7428e5 Fix typo bibrary to library (#372) 2017-12-05 09:13:23 -08:00
Aaron Stone
5edd5bac25 Restore default value memcached.sess_prefix = "memc.sess.key."
Resolves #340
2017-11-20 23:49:58 -06: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
Aaron Stone
f82e6845af Use new fast_zpp parameter parsing API (#311)
The one that took a while to figure out was zpp("f!") to Z_PARAM_FUNC_EX(fci, fcc, 1, 0)
2017-11-20 23:15:34 -06:00
Aaron Stone
56145402e9 Travis CI now provides the PHP 7.2 alias 2017-07-27 00:03:48 -07:00
Aaron Stone
39bfab06c0 In PHP 7.2 the session_start() error messages have changed a bit (#359)
See PHP Bug 71038 for details https://bugs.php.net/bug.php?id=71038
Added PHP 7.2.0alpha2 to Travis CI matrix
2017-07-11 15:57:51 -07:00
Aaron Stone
973f5ec2f5 Merge pull request #360 from sodabrew/fix-memc-check-key 2017-07-11 14:23:18 -07:00
Aaron Stone
be93a459ee Fix the key validity tests to handle strings with embedded nulls 2017-07-11 14:04:01 -07:00
Aaron Stone
e91eae7be3 Split tests for invalid keys ascii and binary
Test get command for invalid keys as well as set command
2017-07-11 14:04:01 -07:00
Aaron Stone
43bbf00802 In PHP 7.2, php_errormsg is deprecated 2017-07-07 19:15:28 -07:00
Aaron Stone
bf16783ef9 Merge pull request #330 from remicollet/issue-ini
Refresh memcached.ini and set sess_binary_protocol off by default with older libmemcached
2017-06-13 10:42:33 -05:00
Tyson Andre
23cf6c60f3 Fix ReflectionMethod signatures for appendByKey,prepend, etc. (#352) 2017-06-09 13:08:33 -05:00
Xinchen Hui
5f28025c15 This will lead unexpected behavior if zval is an interned string 2017-05-23 11:43:19 +08:00
Eric Norris
14581c4604 s/encryption/compression/g (#342) 2017-05-02 13:24:34 -07:00
Tyson Andre
c23ea262f3 Document GET_EXTENDED flag. Add/rename other missing/misnamed constants. (#335) 2017-04-30 08:15:36 -07:00
Akihito Nakano
6b660bd554 Fix optional parameter getStats($type) (#337)
* Fix 'type' is optional
* Change argument name args -> type
2017-04-22 23:12:36 -07:00
Remi Collet
037ed570ba Fix build warnings (#329) 2017-02-22 00:22:11 +00:00
Remi Collet
3b3e63dac7 typo in skip message (#331) 2017-02-21 22:47:15 +00:00
Remi Collet
0a90491dd1 set sess_binary_protocol off by default with older libmemcached 2017-02-20 19:32:37 +01:00
Remi Collet
d81697f7a0 Refresh memcached.ini provided configuration
- remove deprecated options
- add missing memcached.sess_server_failure_limit option
- comment all options default value (only needed when not default value)
  see php.ini-production which follow this convention
2017-02-20 19:27:39 +01:00
Aaron Stone
466485a2ca Bump version to 3.0.3 v3.0.3 2017-02-19 19:48:43 -08:00
Aaron Stone
357efc40df Release notes for 3.0.3 2017-02-19 19:48:33 -08:00
Aaron Stone
beb58dc69f Replace traditional free with pefree to match the registered allocators, fixes #328 2017-02-19 19:30:22 -08:00
Aaron Stone
99cab0e081 Fix session-persistent test failures on older libmemcached versions 2017-02-19 17:23:35 -08:00
Xinchen Hui
a8517cd97b dev version 2017-02-19 18:34:48 +08:00
Xinchen Hui
bff303547f Fixed memleak (severs) 2017-02-19 18:32:16 +08:00