-
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?
-
G girish moved this topic from Support on
-
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 inphp.ini.You can toggle the reporting itself using
display_errors = ondirective in php.inihttps://rollbar.com/blog/what-is-the-quickest-way-to-show-all-php-errors has a good overview.
-
@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 inphp.ini.You can toggle the reporting itself using
display_errors = ondirective in php.inihttps://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
-
@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
-
@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 inphp.ini.You can toggle the reporting itself using
display_errors = ondirective in php.inihttps://rollbar.com/blog/what-is-the-quickest-way-to-show-all-php-errors has a good overview.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login