Mwalker has submitted this change and it was merged.

Change subject: Don't enable E_STRICT by default.
......................................................................


Don't enable E_STRICT by default.

Even without displaying the errors, this is really expensive, and not necessary
on production.  You can still display E_STRICT if it is set in your php.ini.

Change-Id: I020ed72784b3f2916faed594b6bb4604906a0094
---
M includes/bootstrap.inc
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Mwalker: Verified; Looks good to me, approved



diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 728e4ec..b83fe60 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -665,7 +665,7 @@
   $_GET['q'] = request_path();
 
   // Enforce E_ALL, but allow users to set levels not part of E_ALL.
-  error_reporting(E_ALL | error_reporting());
+  error_reporting((E_ALL & ~E_STRICT) | error_reporting());
 
   // Override PHP settings required for Drupal to work properly.
   // sites/default/default.settings.php contains more runtime settings.

-- 
To view, visit https://gerrit.wikimedia.org/r/60348
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I020ed72784b3f2916faed594b6bb4604906a0094
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm/drupal
Gerrit-Branch: master
Gerrit-Owner: Adamw <awi...@wikimedia.org>
Gerrit-Reviewer: Mwalker <mwal...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to