Skip to content

Commit fa468c8

Browse files
author
Andrei Zmievski
committed
Register constant IGBINARY_SUPPORT
1 parent 7edcdf9 commit fa468c8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

php_memcached.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2723,6 +2723,16 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
27232723
REGISTER_MEMC_CLASS_CONST_LONG(OPT_PREFIX_KEY, MEMC_OPT_PREFIX_KEY);
27242724
REGISTER_MEMC_CLASS_CONST_LONG(OPT_SERIALIZER, MEMC_OPT_SERIALIZER);
27252725

2726+
2727+
/*
2728+
* Indicate whether igbinary serializer is available
2729+
*/
2730+
#ifdef HAVE_MEMCACHED_IGBINARY
2731+
REGISTER_MEMC_CLASS_CONST_BOOL(IGBINARY_SUPPORT, 1);
2732+
#else
2733+
REGISTER_MEMC_CLASS_CONST_BOOL(IGBINARY_SUPPORT, 0);
2734+
#endif
2735+
27262736
/*
27272737
* libmemcached behavior options
27282738
*/

0 commit comments

Comments
 (0)