Skip to content

Commit 71ee641

Browse files
committed
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: "opcache.validate_root" is useless on Windows
2 parents 8e350a6 + 935d922 commit 71ee641

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ext/opcache/ZendAccelerator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ typedef struct _zend_accel_directives {
203203
zend_bool inherited_hack;
204204
zend_bool enable_cli;
205205
zend_bool validate_permission;
206+
#ifndef ZEND_WIN32
206207
zend_bool validate_root;
208+
#endif
207209
zend_ulong revalidate_freq;
208210
zend_ulong file_update_protection;
209211
char *error_log;

ext/opcache/zend_accelerator_module.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ ZEND_INI_BEGIN()
273273
STD_PHP_INI_BOOLEAN("opcache.use_cwd" , "1", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.use_cwd , zend_accel_globals, accel_globals)
274274
STD_PHP_INI_BOOLEAN("opcache.validate_timestamps", "1", PHP_INI_ALL , OnUpdateBool, accel_directives.validate_timestamps, zend_accel_globals, accel_globals)
275275
STD_PHP_INI_BOOLEAN("opcache.validate_permission", "0", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.validate_permission, zend_accel_globals, accel_globals)
276+
#ifndef ZEND_WIN32
276277
STD_PHP_INI_BOOLEAN("opcache.validate_root" , "0", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.validate_root , zend_accel_globals, accel_globals)
278+
#endif
277279
STD_PHP_INI_BOOLEAN("opcache.inherited_hack" , "1", PHP_INI_SYSTEM, OnUpdateBool, accel_directives.inherited_hack , zend_accel_globals, accel_globals)
278280
STD_PHP_INI_BOOLEAN("opcache.dups_fix" , "0", PHP_INI_ALL , OnUpdateBool, accel_directives.ignore_dups , zend_accel_globals, accel_globals)
279281
STD_PHP_INI_BOOLEAN("opcache.revalidate_path" , "0", PHP_INI_ALL , OnUpdateBool, accel_directives.revalidate_path , zend_accel_globals, accel_globals)
@@ -693,7 +695,9 @@ static ZEND_FUNCTION(opcache_get_configuration)
693695
add_assoc_bool(&directives, "opcache.use_cwd", ZCG(accel_directives).use_cwd);
694696
add_assoc_bool(&directives, "opcache.validate_timestamps", ZCG(accel_directives).validate_timestamps);
695697
add_assoc_bool(&directives, "opcache.validate_permission", ZCG(accel_directives).validate_permission);
698+
#ifndef ZEND_WIN32
696699
add_assoc_bool(&directives, "opcache.validate_root", ZCG(accel_directives).validate_root);
700+
#endif
697701
add_assoc_bool(&directives, "opcache.inherited_hack", ZCG(accel_directives).inherited_hack);
698702
add_assoc_bool(&directives, "opcache.dups_fix", ZCG(accel_directives).ignore_dups);
699703
add_assoc_bool(&directives, "opcache.revalidate_path", ZCG(accel_directives).revalidate_path);

0 commit comments

Comments
 (0)