From 7f7ea6843265ea29b0cc302921b986a034602491 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Sat, 9 Nov 2024 19:13:09 -0500 Subject: [PATCH] [fix] Remove occurrences of E_STRICT Signed-off-by: Edward Z. Yang --- configdoc/generate.php | 2 +- tests/common.php | 2 +- tests/index.php | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configdoc/generate.php b/configdoc/generate.php index e0c4e674..275415af 100644 --- a/configdoc/generate.php +++ b/configdoc/generate.php @@ -16,7 +16,7 @@ TODO: */ if (version_compare(PHP_VERSION, '5.2', '<')) exit('PHP 5.2+ required.'); -error_reporting(E_ALL | E_STRICT); +error_reporting(E_ALL); // load dual-libraries require_once dirname(__FILE__) . '/../extras/HTMLPurifierExtras.auto.php'; diff --git a/tests/common.php b/tests/common.php index db416ffa..7c914115 100644 --- a/tests/common.php +++ b/tests/common.php @@ -48,7 +48,7 @@ if ( is_string($GLOBALS['HTMLPurifierTest']['PEAR']) ) { } // after external libraries are loaded, turn on compile time errors -error_reporting(E_ALL | E_STRICT); +error_reporting(E_ALL); // initialize extra HTML Purifier libraries require '../extras/HTMLPurifierExtras.auto.php'; diff --git a/tests/index.php b/tests/index.php index c0ee2491..82f1151c 100644 --- a/tests/index.php +++ b/tests/index.php @@ -23,9 +23,8 @@ * $test_files) do not have underscores in their names. */ -// HTML Purifier runs error free on E_STRICT, so if code reports -// errors, we want to know about it. -error_reporting(E_ALL | E_STRICT); +// HTML Purifier runs error free. +error_reporting(E_ALL); // Because we always want to know about errors, and because SimpleTest // will notify us about them, logging the errors to stderr is