amnuts / opcache-gui

A clean, effective and responsive interface for Zend OPcache
1.21k stars 197 forks source link

Add a Test if opcache extension is working #20

Closed bbalet closed 7 years ago

bbalet commented 7 years ago

Hi,

You test if the extension is loaded, but you don't test if it is working or not. If the extension is not working, the functions opcache_get_status() and opcache_get_configuration() would return FALSE. This causes an error in compileState function when you try to merge the various status arrays (they would be boolean values instead of arrays).

amnuts commented 7 years ago

Thanks for the feedback. There's now a check in place for installed opcache but not turned on.