I have set error_reporting = none
in /etc/php5/apache2/php.ini
and ran sudo service apache2 restart
yet when I tail /var/log/apache2/error.log
I still get stuff like PHP Notice:xxxxxxxxxxxxx
showing up.
Why is this?
I have set error_reporting = none
in /etc/php5/apache2/php.ini
and ran sudo service apache2 restart
yet when I tail /var/log/apache2/error.log
I still get stuff like PHP Notice:xxxxxxxxxxxxx
showing up.
Why is this?
Copyright © 2021 Jogjafile Inc.
You should assign
0
rather thannone
to theerror_reporting
parameter in your php.ini:The
error_reporting
parameter value is an integer bitmask where each bit represents different error level.0
means all error levels are off, including notice.You can also override default error_reporting value in your individual PHP script by using the following statement:
This will turn all error reporting off for the current script's execution only.