From b34e50cc78b29f713ac4c4ecd93c069f24001cba Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 6 Mar 2013 17:49:47 +0400 Subject: [PATCH] Fixed issue #58 (PHP-5.2 compatibility) --- zend_accelerator_module.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c index 5f7c32b594..b3aac5f002 100644 --- a/zend_accelerator_module.c +++ b/zend_accelerator_module.c @@ -467,9 +467,11 @@ static ZEND_FUNCTION(accelerator_get_status) /* keep the compiler happy */ (void)ht; (void)return_value_ptr; (void)this_ptr; (void)return_value_used; +#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } +#endif if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { RETURN_FALSE; @@ -526,9 +528,11 @@ static ZEND_FUNCTION(accelerator_get_configuration) /* keep the compiler happy */ (void)ht; (void)return_value_ptr; (void)this_ptr; (void)return_value_used; +#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } +#endif array_init(return_value); @@ -588,9 +592,11 @@ static ZEND_FUNCTION(accelerator_reset) /* keep the compiler happy */ (void)ht; (void)return_value_ptr; (void)this_ptr; (void)return_value_used; +#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO if (zend_parse_parameters_none() == FAILURE) { RETURN_FALSE; } +#endif if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { RETURN_FALSE; -- 2.50.1