We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b9868 commit 0b8182cCopy full SHA for 0b8182c
php_memcached.c
@@ -2802,9 +2802,18 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
2802
* Indicate whether igbinary serializer is available
2803
*/
2804
#ifdef HAVE_MEMCACHED_IGBINARY
2805
- REGISTER_MEMC_CLASS_CONST_LONG(IGBINARY_SUPPORT, 1);
+ REGISTER_MEMC_CLASS_CONST_LONG(HAVE_IGBINARY, 1);
2806
#else
2807
- REGISTER_MEMC_CLASS_CONST_LONG(IGBINARY_SUPPORT, 0);
+ 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);
2817
#endif
2818
2819
/*
0 commit comments