memcached extension based on libmemcached library
Clone or download
petk and sodabrew 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
Latest commit f773f27 Sep 1, 2018
Permalink
Failed to load latest commit information.
.travis Adjust the Travis CI matrix: PHP 7.0 and 7.1, fewer revisions of libm… Dec 7, 2016
fastlz remove svn files Nov 26, 2009
server-example Added more examples Nov 15, 2013
tests Avoid hanging getStats() when binary protocol and non-blocking are bo… Jan 23, 2018
.gitignore Add configure.ac to Git ignored files (#405) Sep 1, 2018
.travis.yml Update for new PHP 7.3 REFCOUNT macros (#390) Mar 30, 2018
CREDITS Release 0.1.4. Feb 13, 2009
ChangeLog Release notes for 3.0.4 Dec 10, 2017
LICENSE Update license to 3.01. Moved session handler support to separate fil… Nov 4, 2010
README.markdown Supports PHP 7.0 - 7.2 Dec 19, 2017
config.m4 Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE (#403) Sep 1, 2018
config.w32 Remove unused Git attributes ident (#402) Jun 30, 2018
g_fmt.c Fix warning: label 'done' defined but not used [-Wunused-label] Nov 19, 2013
g_fmt.h Convert float to ascii using g_fmt and zend_dtoa. May 2, 2011
memcached-api.php Add support for libmemcached encryption (#381) Jan 20, 2018
memcached.ini Change session_lock default ini values (#350) Jul 20, 2018
package.xml Expose build configuration via PECL (#383) Mar 30, 2018
php_libmemcached_compat.c Replace traditional free with pefree to match the registered allocato… Feb 20, 2017
php_libmemcached_compat.h Update warning for touch command in binary protocol mode with libmemc… Feb 12, 2017
php_memcached.c Change session_lock default ini values (#350) Jul 20, 2018
php_memcached.h Remove unused Git attributes ident (#402) Jun 30, 2018
php_memcached_private.h Remove unused Git attributes ident (#402) Jun 30, 2018
php_memcached_server.c Fix compiling with memcached binary protocol enabled (#312) Feb 7, 2017
php_memcached_server.h PHP7 Support Feb 3, 2015
php_memcached_session.c Add INI setting to choose session consistent hash (ketama or ketama_w… Apr 9, 2018
php_memcached_session.h Cleaning up driver for php7. WIP Jan 29, 2016

README.markdown

Build Status

Build Status

Description

This is the PECL memcached extension, using the libmemcached library to connect to memcached servers.

memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Building

$ phpize
$ ./configure
$ make
$ make test

Dependencies

php-memcached 3.x:

  • Supports PHP 7.0 - 7.2.
  • Requires libmemcached 1.x or higher.
  • Optionally supports igbinary 2.0 or higher.
  • Optionally supports msgpack 2.0 or higher.

php-memcached 2.x:

  • Supports PHP 5.2 - 5.6.
  • Requires libmemcached 0.44 or higher.
  • Optionally supports igbinary 1.0 or higher.
  • Optionally supports msgpack 0.5 or higher.

libmemcached version 1.0.18 or higher is recommended for best performance and compatibility with memcached servers.

igbinary is a faster and more compact binary serializer for PHP data structures. When installing php-memcached from source code, the igbinary module must be installed first so that php-memcached can access its C header files. Load both modules in your php.ini at runtime to begin using igbinary.

msgpack is a faster and more compact data structure representation that is interoperable with msgpack implementations for other languages. When installing php-memcached from source code, the msgpack module must be installed first so that php-memcached can access its C header files. Load both modules in your php.ini at runtime to begin using msgpack.