@@ -273,7 +273,9 @@ ZEND_INI_BEGIN()
273
273
STD_PHP_INI_BOOLEAN ("opcache.use_cwd" , "1" , PHP_INI_SYSTEM , OnUpdateBool , accel_directives .use_cwd , zend_accel_globals , accel_globals )
274
274
STD_PHP_INI_BOOLEAN ("opcache.validate_timestamps" , "1" , PHP_INI_ALL , OnUpdateBool , accel_directives .validate_timestamps , zend_accel_globals , accel_globals )
275
275
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
276
277
STD_PHP_INI_BOOLEAN ("opcache.validate_root" , "0" , PHP_INI_SYSTEM , OnUpdateBool , accel_directives .validate_root , zend_accel_globals , accel_globals )
278
+ #endif
277
279
STD_PHP_INI_BOOLEAN ("opcache.inherited_hack" , "1" , PHP_INI_SYSTEM , OnUpdateBool , accel_directives .inherited_hack , zend_accel_globals , accel_globals )
278
280
STD_PHP_INI_BOOLEAN ("opcache.dups_fix" , "0" , PHP_INI_ALL , OnUpdateBool , accel_directives .ignore_dups , zend_accel_globals , accel_globals )
279
281
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)
693
695
add_assoc_bool (& directives , "opcache.use_cwd" , ZCG (accel_directives ).use_cwd );
694
696
add_assoc_bool (& directives , "opcache.validate_timestamps" , ZCG (accel_directives ).validate_timestamps );
695
697
add_assoc_bool (& directives , "opcache.validate_permission" , ZCG (accel_directives ).validate_permission );
698
+ #ifndef ZEND_WIN32
696
699
add_assoc_bool (& directives , "opcache.validate_root" , ZCG (accel_directives ).validate_root );
700
+ #endif
697
701
add_assoc_bool (& directives , "opcache.inherited_hack" , ZCG (accel_directives ).inherited_hack );
698
702
add_assoc_bool (& directives , "opcache.dups_fix" , ZCG (accel_directives ).ignore_dups );
699
703
add_assoc_bool (& directives , "opcache.revalidate_path" , ZCG (accel_directives ).revalidate_path );
0 commit comments