Skip to content

Commit 1eac9f8

Browse files
authored
PHP 8 compatibility Windows (#528)
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
1 parent 6a58af6 commit 1eac9f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: php_memcached_private.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
#include <ext/standard/basic_functions.h>
4949

5050
#ifdef PHP_WIN32
51-
# if PHP_VERSION_ID >= 80000
52-
# include "php_stdint.h"
53-
#else
54-
# include "win32/php_stdint.h"
55-
#endif
51+
# if PHP_VERSION_ID >= 80000
52+
# include <stdint.h>
53+
#else
54+
# include "win32/php_stdint.h"
55+
#endif
5656
#else
5757
/* Used to store the size of the block */
5858
# if defined(HAVE_INTTYPES_H)

0 commit comments

Comments
 (0)