Skip to content

Commit 605a8a6

Browse files
authored
fix zend_dtoa API change in 8.1.0beta1 (#487)
1 parent 058e9f5 commit 605a8a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: g_fmt.c

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,17 @@
2727
* // Teddy Grenman <[email protected]>, 2010-05-18.
2828
*/
2929

30-
#include <zend_operators.h>
30+
#include <php.h>
3131

3232
char *php_memcached_g_fmt(register char *b, double x) {
3333
register int i, k;
3434
register char *s;
35-
int decpt, j, sign;
35+
int decpt, j;
36+
#if PHP_VERSION_ID < 80100
37+
int sign;
38+
#else
39+
bool sign;
40+
#endif
3641
char *b0, *s0, *se;
3742

3843
b0 = b;

0 commit comments

Comments
 (0)