Files
pecl-memcache/config.w32
Zaffy e090f05a05 More work on pecl-memcache (#76)
* Use zend_bool for ini bool settings

Related to #56

* Initial work for php 8

* php7 -> php8

* Add test for #53

* Fix support for binary protocol

* php8 -> src

* Backwards compatibility with php 7.3, 7.4

This will allow us to have one unified branch that will compile
under different versions of php.

* Add test for pecl bug #77900

* Fix some memory leaks

* Support for reflection

- added / updated arginfos
- fix functions returning NULL instead of advertised return type,
  For example, when memcached returned error on "delete", function
  returned null instead of false
- added tests for both php8 and 7

* Fix typo

* Update config.w32

Co-authored-by: Tyson Andre <tyson.andre@uwaterloo.ca>

Co-authored-by: Tyson Andre <tysonandre775@hotmail.com>
Co-authored-by: Tomas Srnka <tomassrnka@users.noreply.github.com>
Co-authored-by: Tyson Andre <tyson.andre@uwaterloo.ca>
2020-10-16 09:52:01 +02:00

38 lines
1.1 KiB
JavaScript

// $Id$
// vim:ft=javascript
ARG_ENABLE("memcache", "memcache support", "no");
if (PHP_MEMCACHE != "no") {
if (!PHP_ZLIB_SHARED || CHECK_LIB("zlib_a.lib", "memcache", PHP_MEMCACHE)) {
var dll = get_define('PHPDLL');
var old_conf_dir = configure_module_dirname;
if (dll.match(/^php[78]/) != null) {
configure_module_dirname = configure_module_dirname + "\\src";
} else if (dll.match(/^php5/) != null) {
ERROR("PHP 7.x required for pecl-php-memcache ver 4+. Use pecl-php-meachce ver 3.x for PHP 5.x.");
} else {
ERROR("Cannot determine PHP version from:'" + dll + "'");
}
EXTENSION("memcache", " \
memcache.c \
memcache_ascii_protocol.c \
memcache_binary_protocol.c \
memcache_consistent_hash.c \
memcache_pool.c \
memcache_queue.c \
memcache_session.c \
memcache_standard_hash.c");
configure_module_dirname = old_conf_dir;
AC_DEFINE('HAVE_MEMCACHE', 1, 'Have memcache support');
ADD_FLAG("CFLAGS_MEMCACHE", "/D HAVE_MEMCACHE_SESSION=1");
} else {
WARNING("memcache not enabled; libraries and headers not found");
}
}