com php-src: Fixed compatibility with 5.2 and 5.3: zend_accel erator_module.c
| From: | Dmitry Stogov | Date: | Thu, 14 Feb 2013 14:36:07 +0000 |
| Subject: | com php-src: Fixed compatibility with 5.2 and 5.3: zend_accel erator_module.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71547@lists.php.net to get a copy of this message | ||
Commit: aef92d22d591026c259abc125bd8f390fc78efca
Author: Dmitry Stogov <dmitry@zend.com> Thu, 14 Feb 2013 18:36:07 +0400
Parents: 5cd7c775452d53300cc84c1fc3274cd1e89c5c2f
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aef92d22d591026c259abc125bd8f390fc78efca
Log:
Fixed compatibility with 5.2 and 5.3
Changed paths:
M zend_accelerator_module.c
Diff:
diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c
index 658dba6..1e3f589 100644
--- a/zend_accelerator_module.c
+++ b/zend_accelerator_module.c
@@ -534,7 +534,9 @@ static ZEND_FUNCTION(accelerator_get_configuration)
add_assoc_long(directives, "zend_optimizerplus.log_verbosity_level",
ZCG(accel_directives).log_verbosity_level);
add_assoc_long(directives, "zend_optimizerplus.memory_consumption",
ZCG(accel_directives).memory_consumption);
+#if ZEND_EXTENSION_API_NO > PHP_5_3_X_API_NO
add_assoc_long(directives,
"zend_optimizerplus.interned_strings_buffer",ZCG(accel_directives).interned_strings_buffer);
+#endif
add_assoc_long(directives, "zend_optimizerplus.max_accelerated_files",
ZCG(accel_directives).max_accelerated_files);
add_assoc_double(directives, "zend_optimizerplus.max_wasted_percentage",
ZCG(accel_directives).max_wasted_percentage);
add_assoc_long(directives, "zend_optimizerplus.consistency_checks",
ZCG(accel_directives).consistency_checks);