Skip to content

Commit 0b8182c

Browse files
author
Andrei Zmievski
committed
Add HAVE_JSON constant.
1 parent 32b9868 commit 0b8182c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

php_memcached.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,9 +2802,18 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
28022802
* Indicate whether igbinary serializer is available
28032803
*/
28042804
#ifdef HAVE_MEMCACHED_IGBINARY
2805-
REGISTER_MEMC_CLASS_CONST_LONG(IGBINARY_SUPPORT, 1);
2805+
REGISTER_MEMC_CLASS_CONST_LONG(HAVE_IGBINARY, 1);
28062806
#else
2807-
REGISTER_MEMC_CLASS_CONST_LONG(IGBINARY_SUPPORT, 0);
2807+
REGISTER_MEMC_CLASS_CONST_LONG(HAVE_IGBINARY, 0);
2808+
#endif
2809+
2810+
/*
2811+
* Indicate whether json serializer is available
2812+
*/
2813+
#ifdef HAVE_JSON_API
2814+
REGISTER_MEMC_CLASS_CONST_LONG(HAVE_JSON, 1);
2815+
#else
2816+
REGISTER_MEMC_CLASS_CONST_LONG(HAVE_JSON, 0);
28082817
#endif
28092818

28102819
/*

0 commit comments

Comments
 (0)