Skip to content

Commit 0d77222

Browse files
committed
Merge branch 'PHP-7.0'
* PHP-7.0: Use PHP_VERSION as OPcahce version
2 parents b65b15c + d41920c commit 0d77222

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2941,7 +2941,7 @@ void accelerator_shm_read_unlock(void)
29412941

29422942
ZEND_EXT_API zend_extension zend_extension_entry = {
29432943
ACCELERATOR_PRODUCT_NAME, /* name */
2944-
ACCELERATOR_VERSION, /* version */
2944+
PHP_VERSION, /* version */
29452945
"Zend Technologies", /* author */
29462946
"http://www.zend.com/", /* URL */
29472947
"Copyright (c) 1999-2016", /* copyright */

ext/opcache/ZendAccelerator.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#endif
2828

2929
#define ACCELERATOR_PRODUCT_NAME "Zend OPcache"
30-
#define PHP_ZENDOPCACHE_VERSION "7.0.6-dev"
31-
#define ACCELERATOR_VERSION PHP_ZENDOPCACHE_VERSION
3230
/* 2 - added Profiler support, on 20010712 */
3331
/* 3 - added support for Optimizer's encoded-only-files mode */
3432
/* 4 - works with the new Optimizer, that supports the file format with licenses */

ext/opcache/zend_accelerator_module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static zend_module_entry accel_module_entry = {
518518
NULL,
519519
NULL,
520520
zend_accel_info,
521-
ACCELERATOR_VERSION "FE",
521+
PHP_VERSION,
522522
NO_MODULE_GLOBALS,
523523
accel_post_deactivate,
524524
STANDARD_MODULE_PROPERTIES_EX
@@ -728,7 +728,7 @@ static ZEND_FUNCTION(opcache_get_configuration)
728728

729729
/*version */
730730
array_init(&version);
731-
add_assoc_string(&version, "version", ACCELERATOR_VERSION);
731+
add_assoc_string(&version, "version", PHP_VERSION);
732732
add_assoc_string(&version, "opcache_product_name", ACCELERATOR_PRODUCT_NAME);
733733
add_assoc_zval(return_value, "version", &version);
734734

0 commit comments

Comments
 (0)