Debian has two php.ini files, one for CLI (/etc/php5/cli/php.ini) and another for Apache (/etc/php5/apache2/php.ini) and both are set as stated above. Even if I set error_reporting to 0 the warnings appear, so I assume that some script is forcing a different value for error_reporting.
I’ve found the source of the problem. It’s your bootstrap.php that is changing default PHP error reporting. Patching it like this shuts down these warnings;
After filled [FREEPBX-9405] which was not accepted, can any one reply to a question that I posted there;
Which PHP version(s) are officially supported by FreePBX 12?
The “errors” you list are actually warnings and are in a sub library we use. We are not in the job of fixing sub libraries that are no longer actively maintained or supported. Furthermore with the error handling setup in PHP.ini in our distro and others (PIAF) we don’t get these errors.
You then asked
Why not let the user select which type of messages he/she wants to see in their logs in php.ini?
We already do allow that. Go into /etc/freepbx.conf and put in this line:
Instead of patching bootstrap.php (which will trigger a security warning) I was able to remove PHP deprecation warnings from my logs by adding to /etc/freepbx.conf: