Error Reporting PHP in LAMP
I wonder how turn off error reporting through php.ini for
E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
Is it possible to set this through php.ini? Because i have tried to set the configuration as mentioned in php core but seems didnt work, or any other way to set this on?
@firmansi Not a PHP developer, so take this with a grain of salt.
I think you have to call
error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT)somewhere in your app's start up logic. This is not a PHP directive that can be set in
You can toggle the reporting itself using
display_errors = ondirective in php.ini
https://rollbar.com/blog/what-is-the-quickest-way-to-show-all-php-errors has a good overview.
@girish thanks for the response, actually i am trying to install vtiger using the LAMP app, and according to its manual, i have to turn the reports off and i did it through php.ini, so i think the rational is when i turn of reports off then the error reporting will do the same