websupport-sk / pecl-memcache

PHP Extension - Memcache module with support of newer PHP 7.x and PHP 8.x
https://pecl.php.net/package/memcache
Other
328 stars 101 forks source link

[Windows] Fix PHP 8+ compatibility #110

Closed Jan-E closed 1 year ago

Jan-E commented 1 year ago

Use stdint.h for PHP 8.0, 8.1, 8.2 et cetera. Otherwise keep using win32/php_stdint,h Added some indentation to clarify the if/else/endif construction

_MSC_VER 1920 = Visual Studio 2019 version 16.0.0 or VS16, which is used for PHP8 on Windows.

tomassrnka commented 1 year ago

Thank you! merged. It fails the github actions, but that's due time-ing out, it works OK in my docker test images.