Skip to content

Commit 8c5e69c

Browse files
committed
Remove occurrences of E_STRICT
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
1 parent cb56001 commit 8c5e69c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

configdoc/generate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
if (version_compare(PHP_VERSION, '5.2', '<')) exit('PHP 5.2+ required.');
19-
error_reporting(E_ALL | E_STRICT);
19+
error_reporting(E_ALL);
2020

2121
// load dual-libraries
2222
require_once dirname(__FILE__) . '/../extras/HTMLPurifierExtras.auto.php';

tests/common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function test_autoload($class)
4848
}
4949

5050
// after external libraries are loaded, turn on compile time errors
51-
error_reporting(E_ALL | E_STRICT);
51+
error_reporting(E_ALL);
5252

5353
// initialize extra HTML Purifier libraries
5454
require '../extras/HTMLPurifierExtras.auto.php';

tests/index.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
* $test_files) do not have underscores in their names.
2424
*/
2525

26-
// HTML Purifier runs error free on E_STRICT, so if code reports
27-
// errors, we want to know about it.
28-
error_reporting(E_ALL | E_STRICT);
26+
// HTML Purifier runs error free.
27+
error_reporting(E_ALL);
2928

3029
// Because we always want to know about errors, and because SimpleTest
3130
// will notify us about them, logging the errors to stderr is

0 commit comments

Comments
 (0)