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/3475 gitorious. org/mahara/ mahara/ commit/ 48f3827ed7635ce be5594739da2e03 3d82596103
Committed: http://
Submitter: Aaron Wells (<email address hidden>)
Branch: 1.8_STABLE
commit 48f3827ed7635ce be5594739da2e03 3d82596103
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