]> granicus.if.org Git - php/commitdiff
Fixed issue #58 (PHP-5.2 compatibility)
authorDmitry Stogov <dmitry@zend.com>
Wed, 6 Mar 2013 13:49:47 +0000 (17:49 +0400)
committerDmitry Stogov <dmitry@zend.com>
Wed, 6 Mar 2013 13:49:47 +0000 (17:49 +0400)
zend_accelerator_module.c

index 5f7c32b594e31d0156be4dddb4c070594f5d9d85..b3aac5f00277cc52e1e6cf79d0b902d8ac54b5f1 100644 (file)
@@ -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;