From dec9d243929a08deb054cd836590c2e0d60d14c1 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 7 Mar 2011 16:25:52 +0100 Subject: [ticket/10040] Ensure the test suite runs on PHP 5.2 without E_DEPRECATED. PHPBB3-10040 --- tests/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/bootstrap.php') diff --git a/tests/bootstrap.php b/tests/bootstrap.php index c729c6e2d8..6f3c93a374 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,6 +12,10 @@ $phpbb_root_path = 'phpBB/'; $phpEx = 'php'; $table_prefix = 'phpbb_'; +if (!defined('E_DEPRECATED')) +{ + define('E_DEPRECATED', 8192); +} error_reporting(E_ALL & ~E_DEPRECATED); // If we are on PHP >= 6.0.0 we do not need some code -- cgit v1.2.1