mirror of
https://github.com/php-win-ext/php-memcached.git
synced 2026-03-24 00:52:18 +01:00
1eac9f8b8e8998f2feefc47d3aa80cfe93da22af
Use PHP_VERSION_ID instead of _MSC_VER to select the right headers. win32/php_stdint.h was removed in PHP 8.0.0 and php_stdint.h file was removed in PHP 8.2.0 entirely: https://github.com/php/php-src/blob/PHP-8.2/UPGRADING.INTERNALS#L26
Build Steps for Windows ------------------------- Follow https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2#building_pecl_extensions - Add igbinary module to pecl directory if support desired - Download/Compile libmemcached & add to deps folders (includes & lib). Lib should be named memcache.lib - Important for 32bit: libmemcached must be built with _USE_32BIT_TIME_T defined (confirmed on PHP 7.2, VC15) - https://github.com/yshurik/libmemcached-win/tree/1.0.18 is confirmed working - To use the dll on the releases page you'd likely need to change the header files to use __time64_t instead of time_t - Enable all options desired: --enable-memcached=shared --enable-memcached-session --enable-memcached-json - for igbinary, add --enable-memcached-igbinary --enable-igbinary=shared - Run nmake
Description
Languages
C
57%
PHP
39%
M4
3.6%
JavaScript
0.4%