Commit:    b34e50cc78b29f713ac4c4ecd93c069f24001cba
Author:    Dmitry Stogov <dmi...@zend.com>         Wed, 6 Mar 2013 17:49:47 
+0400
Parents:   40ce4127f6aef42aa87a3cfe67abeccad650435c
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=b34e50cc78b29f713ac4c4ecd93c069f24001cba

Log:
Fixed issue #58 (PHP-5.2 compatibility)

Bugs:
https://bugs.php.net/58

Changed paths:
  M  zend_accelerator_module.c


Diff:
diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c
index 5f7c32b..b3aac5f 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to