Recently we migrated PHP version of our webapp from version 5.[something] to 7.2, and our apache2 php.ini
is setup to avoid notices logging both in the server and the browser. I am told that before the migration the setup worked fine, but now notices show up all over the place.
This is the setup:
error_reporting = E_ALL & ~E_NOTICE
I have tried
error_reporting = E_ALL ^ (E_DEPRECATED & E_NOTICE)
too, to no avail. There is no .htaccess
file overriding the setup and when I set the error_reporting
variable to something different the application reports a change in the error_reporting state, it's just that when I specify that I don't want the E_NOTICEs, the setup does not work.
This is the snippet of configuration that deals with the errors:
display_errors = On
;error_reporting = E_ALL ^ E_DEPRECATED
;error_reporting = E_ALL ^ (E_DEPRECATED & E_NOTICE)
;error_reporting = E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR
error_reporting = E_ALL & ~E_NOTICE
;E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
We would like to avoid logging the notices both in the server and in the browser. Any ideas on what may be wrong?
Thanks!