From b0a8402560036291cf6e1884c94ddc19c881ad53 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Mon, 18 Apr 2011 23:36:47 +0000 Subject: [PATCH] Follow-up r86113: define E_DEPRECATED for PHP 5.2 --- includes/GlobalFunctions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index c88c89a721..ff596621ed 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1777,6 +1777,10 @@ function wfSuppressWarnings( $end = false ) { } } else { if ( !$suppressCount ) { + // E_DEPRECATED is undefined in PHP 5.2 + if( !defined( 'E_DEPRECATED' ) ){ + define( 'E_DEPRECATED', 8192 ); + } $originalLevel = error_reporting( E_ALL & ~( E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_DEPRECATED ) ); } ++$suppressCount; -- 2.20.1