mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
Use PHP_VERSION as OPcahce version
This commit is contained in:
parent
2eb7e75c25
commit
d41920c57d
@ -2934,7 +2934,7 @@ void accelerator_shm_read_unlock(void)
|
||||
|
||||
ZEND_EXT_API zend_extension zend_extension_entry = {
|
||||
ACCELERATOR_PRODUCT_NAME, /* name */
|
||||
ACCELERATOR_VERSION, /* version */
|
||||
PHP_VERSION, /* version */
|
||||
"Zend Technologies", /* author */
|
||||
"http://www.zend.com/", /* URL */
|
||||
"Copyright (c) 1999-2016", /* copyright */
|
||||
|
@ -27,8 +27,6 @@
|
||||
#endif
|
||||
|
||||
#define ACCELERATOR_PRODUCT_NAME "Zend OPcache"
|
||||
#define PHP_ZENDOPCACHE_VERSION "7.0.6-dev"
|
||||
#define ACCELERATOR_VERSION PHP_ZENDOPCACHE_VERSION
|
||||
/* 2 - added Profiler support, on 20010712 */
|
||||
/* 3 - added support for Optimizer's encoded-only-files mode */
|
||||
/* 4 - works with the new Optimizer, that supports the file format with licenses */
|
||||
|
@ -517,7 +517,7 @@ static zend_module_entry accel_module_entry = {
|
||||
NULL,
|
||||
NULL,
|
||||
zend_accel_info,
|
||||
ACCELERATOR_VERSION "FE",
|
||||
PHP_VERSION,
|
||||
NO_MODULE_GLOBALS,
|
||||
accel_post_deactivate,
|
||||
STANDARD_MODULE_PROPERTIES_EX
|
||||
@ -727,7 +727,7 @@ static ZEND_FUNCTION(opcache_get_configuration)
|
||||
|
||||
/*version */
|
||||
array_init(&version);
|
||||
add_assoc_string(&version, "version", ACCELERATOR_VERSION);
|
||||
add_assoc_string(&version, "version", PHP_VERSION);
|
||||
add_assoc_string(&version, "opcache_product_name", ACCELERATOR_PRODUCT_NAME);
|
||||
add_assoc_zval(return_value, "version", &version);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user