0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 16:31:53 +00:00

[fix] Remove occurrences of E_STRICT

Signed-off-by: Edward Z. Yang <ezyang@meta.com>
This commit is contained in:
Edward Z. Yang 2024-11-09 19:13:09 -05:00
parent cb56001e54
commit 7f7ea68432
3 changed files with 4 additions and 5 deletions

View File

@ -16,7 +16,7 @@ TODO:
*/ */
if (version_compare(PHP_VERSION, '5.2', '<')) exit('PHP 5.2+ required.'); 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 // load dual-libraries
require_once dirname(__FILE__) . '/../extras/HTMLPurifierExtras.auto.php'; require_once dirname(__FILE__) . '/../extras/HTMLPurifierExtras.auto.php';

View File

@ -48,7 +48,7 @@ if ( is_string($GLOBALS['HTMLPurifierTest']['PEAR']) ) {
} }
// after external libraries are loaded, turn on compile time errors // 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 // initialize extra HTML Purifier libraries
require '../extras/HTMLPurifierExtras.auto.php'; require '../extras/HTMLPurifierExtras.auto.php';

View File

@ -23,9 +23,8 @@
* $test_files) do not have underscores in their names. * $test_files) do not have underscores in their names.
*/ */
// HTML Purifier runs error free on E_STRICT, so if code reports // HTML Purifier runs error free.
// errors, we want to know about it. error_reporting(E_ALL);
error_reporting(E_ALL | E_STRICT);
// Because we always want to know about errors, and because SimpleTest // Because we always want to know about errors, and because SimpleTest
// will notify us about them, logging the errors to stderr is // will notify us about them, logging the errors to stderr is