From: Dmitry Stogov Date: Wed, 6 Mar 2013 13:49:47 +0000 (+0400) Subject: Fixed issue #58 (PHP-5.2 compatibility) X-Git-Tag: php-5.5.0beta1~42^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b34e50cc78b29f713ac4c4ecd93c069f24001cba;p=php Fixed issue #58 (PHP-5.2 compatibility) --- 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;