https://bugzilla.wikimedia.org/show_bug.cgi?id=43092
Web browser: ---
Bug ID: 43092
Summary: Warn if error_reporting has E_STRICT
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Installer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
I have experienced already several reports of people in mediawiki.org's
Project:Support_desk and extensions talk pages about getting weird "Strict
Standards" errors.
One of those errors is:
Strict Standards: date_default_timezone_get(): It is not safe to rely on the
system's timezone settings
This happens because since PHP >= 5.4.0, E_STRICT became part of E_ALL in
error_reporting, and seeing how many people are asking for help about this (in
general, not only for MediaWiki) on internet makes me think it's a common
environment on many systems.
Having a check on the installer to detect this configuration and issue a
warning like "Your PHP configuration includes E_STRICT in error_reporting. This
is not a recommended setting for production environments" should help people to
early-identify this problem.
On an ideal world, MediaWiki shouldn't issue a E_STRICT under any circumstance.
But it seems it's not always possible (being the date_default_timezone_get() an
example because of a misconfigured PHP), and some extensions may issue some of
them also.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l