@@ -55,34 +55,9 @@ public function getIniDirectives()
5555 {
5656 $ directives = $ this ->configData ['directives ' ];
5757
58- $ memory_consumption = $ this ->byteFormatter ->format ($ directives ['opcache.memory_consumption ' ]);
58+ $ directives [ ' opcache. memory_consumption' ] = $ this ->byteFormatter ->format ($ directives ['opcache.memory_consumption ' ]);
5959
60- return [
61- 'opcache.enable ' => $ directives ['opcache.enable ' ],
62- 'opcache.enable_cli ' => $ directives ['opcache.enable_cli ' ],
63- 'opcache.use_cwd ' => $ directives ['opcache.use_cwd ' ],
64- 'opcache.validate_timestamps ' => $ directives ['opcache.validate_timestamps ' ],
65- 'opcache.inherited_hack ' => $ directives ['opcache.inherited_hack ' ],
66- 'opcache.dups_fix ' => $ directives ['opcache.dups_fix ' ],
67- 'opcache.revalidate_path ' => $ directives ['opcache.revalidate_path ' ],
68- 'opcache.log_verbosity_level ' => $ directives ['opcache.log_verbosity_level ' ],
69- 'opcache.memory_consumption ' => $ memory_consumption ,
70- 'opcache.interned_strings_buffer ' => $ directives ['opcache.interned_strings_buffer ' ],
71- 'opcache.max_accelerated_files ' => $ directives ['opcache.max_accelerated_files ' ],
72- 'opcache.max_wasted_percentage ' => $ directives ['opcache.max_wasted_percentage ' ],
73- 'opcache.consistency_checks ' => $ directives ['opcache.consistency_checks ' ],
74- 'opcache.force_restart_timeout ' => $ directives ['opcache.force_restart_timeout ' ],
75- 'opcache.revalidate_freq ' => $ directives ['opcache.revalidate_freq ' ],
76- 'opcache.preferred_memory_model ' => $ directives ['opcache.preferred_memory_model ' ],
77- 'opcache.blacklist_filename ' => $ directives ['opcache.blacklist_filename ' ],
78- 'opcache.max_file_size ' => $ directives ['opcache.max_file_size ' ],
79- 'opcache.error_log ' => $ directives ['opcache.error_log ' ],
80- 'opcache.protect_memory ' => $ directives ['opcache.protect_memory ' ],
81- 'opcache.save_comments ' => $ directives ['opcache.save_comments ' ],
82- 'opcache.fast_shutdown ' => $ directives ['opcache.fast_shutdown ' ],
83- 'opcache.enable_file_override ' => $ directives ['opcache.enable_file_override ' ],
84- 'opcache.optimization_level ' => $ directives ['opcache.optimization_level ' ],
85- ];
60+ return $ directives ;
8661 }
8762
8863 /**
0 commit comments