# 如何禁用E_STRICT

I need to turn off E_STRICT. I have error_reporting = E_ALL & ~E_STRICT in my php.ini but it seems to be ignored. I tried this in my code:

ini_set('error_reporting', E_NOTICE);


## 最佳答案

error_reporting(E_ALL ^ E_STRICT);