Bug 1268746: In PHP 5.4 E_ALL changed to include E_STRICT, causing Mahara to throw
a lot of strict standards errors. This should silence most of them.
HOWEVER, because most strict standards happen at compile-time, this will have no
effect on strict standards errors caused in the files that have already been
loaded by the time we call error_reporting() and set_error_handler(), which includes:
- The file invoked directly by the URL
- init.php
- errors.php
- config.php
- config-defaults.php
Reviewed: https:/ /reviews. mahara. org/2904 gitorious. org/mahara/ mahara/ commit/ 8d17e0710ed5300 1be9b74013784c1 f7e5806b58
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: master
commit 8d17e0710ed5300 1be9b74013784c1 f7e5806b58
Author: Aaron Wells <email address hidden>
Date: Tue Jan 14 12:35:48 2014 +1300
Silence most E_STRICT errors
Bug 1268746: In PHP 5.4 E_ALL changed to include E_STRICT, causing Mahara to throw
a lot of strict standards errors. This should silence most of them.
HOWEVER, because most strict standards happen at compile-time, this will have no handler( ), which includes:
effect on strict standards errors caused in the files that have already been
loaded by the time we call error_reporting() and set_error_
- The file invoked directly by the URL
- init.php
- errors.php
- config.php
- config-defaults.php
Change-Id: I7a7fdf7facb1f3 0e186a0e8a27f1c 3b7473200da