@@ -155,7 +155,7 @@ typedef struct {
155
155
zend_long store_retry_count ;
156
156
zend_long set_udf_flags ;
157
157
158
- #if HAVE_MEMCACHED_SASL
158
+ #ifdef HAVE_MEMCACHED_SASL
159
159
zend_bool has_sasl_data ;
160
160
#endif
161
161
} php_memc_user_data_t ;
@@ -243,7 +243,7 @@ static zend_object_handlers memcached_server_object_handlers;
243
243
static zend_class_entry * memcached_server_ce = NULL ;
244
244
#endif
245
245
246
- #if HAVE_SPL
246
+ #ifdef HAVE_SPL
247
247
static zend_class_entry * spl_ce_RuntimeException = NULL ;
248
248
#endif
249
249
@@ -431,7 +431,7 @@ static
431
431
432
432
zend_bool php_memc_init_sasl_if_needed ()
433
433
{
434
- #if HAVE_MEMCACHED_SASL
434
+ #ifdef HAVE_MEMCACHED_SASL
435
435
if (MEMC_G (sasl_initialised )) {
436
436
return 1 ;
437
437
}
@@ -3273,7 +3273,7 @@ static PHP_METHOD(Memcached, isPristine)
3273
3273
static
3274
3274
void php_memc_destroy (memcached_st * memc , php_memc_user_data_t * memc_user_data )
3275
3275
{
3276
- #if HAVE_MEMCACHED_SASL
3276
+ #ifdef HAVE_MEMCACHED_SASL
3277
3277
if (memc_user_data -> has_sasl_data ) {
3278
3278
memcached_destroy_sasl_auth_data (memc );
3279
3279
}
@@ -3597,7 +3597,7 @@ zend_class_entry *php_memc_get_exception(void)
3597
3597
PHP_MEMCACHED_API
3598
3598
zend_class_entry * php_memc_get_exception_base (int root )
3599
3599
{
3600
- #if HAVE_SPL
3600
+ #ifdef HAVE_SPL
3601
3601
if (!root ) {
3602
3602
if (!spl_ce_RuntimeException ) {
3603
3603
zend_class_entry * pce ;
@@ -4311,7 +4311,7 @@ static void php_memc_register_constants(INIT_FUNC_ARGS)
4311
4311
REGISTER_MEMC_CLASS_CONST_LONG (RES_SERVER_MEMORY_ALLOCATION_FAILURE , MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE );
4312
4312
#endif
4313
4313
4314
- #if HAVE_MEMCACHED_SASL
4314
+ #ifdef HAVE_MEMCACHED_SASL
4315
4315
REGISTER_MEMC_CLASS_CONST_LONG (RES_AUTH_PROBLEM , MEMCACHED_AUTH_PROBLEM );
4316
4316
REGISTER_MEMC_CLASS_CONST_LONG (RES_AUTH_FAILURE , MEMCACHED_AUTH_FAILURE );
4317
4317
REGISTER_MEMC_CLASS_CONST_LONG (RES_AUTH_CONTINUE , MEMCACHED_AUTH_CONTINUE );
@@ -4437,7 +4437,7 @@ PHP_MINIT_FUNCTION(memcached)
4437
4437
/* {{{ PHP_MSHUTDOWN_FUNCTION */
4438
4438
PHP_MSHUTDOWN_FUNCTION (memcached )
4439
4439
{
4440
- #if HAVE_MEMCACHED_SASL
4440
+ #ifdef HAVE_MEMCACHED_SASL
4441
4441
if (MEMC_G (sasl_initialised )) {
4442
4442
sasl_done ();
4443
4443
}
@@ -4456,7 +4456,7 @@ PHP_MINFO_FUNCTION(memcached)
4456
4456
php_info_print_table_row (2 , "Version" , PHP_MEMCACHED_VERSION );
4457
4457
php_info_print_table_row (2 , "libmemcached version" , memcached_lib_version ());
4458
4458
4459
- #if HAVE_MEMCACHED_SASL
4459
+ #ifdef HAVE_MEMCACHED_SASL
4460
4460
php_info_print_table_row (2 , "SASL support" , "yes" );
4461
4461
#else
4462
4462
php_info_print_table_row (2 , "SASL support" , "no" );
0 commit comments