0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-16 17:35:19 +00:00

Recent PHPs default to display_error=0, override this in index.php

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Edward Z. Yang 2019-07-14 14:04:12 -04:00
parent 7cfc44654a
commit abba77a80b

View File

@ -33,6 +33,10 @@ error_reporting(E_ALL | E_STRICT);
// exercises an error condition to detect for it.
ini_set('log_errors', false);
// But make it easier for us to debug if there is some misconfiguration
// in the initial setup of the tests.
ini_set('display_errors', true);
define('HTMLPurifierTest', 1);
define('HTMLPURIFIER_SCHEMA_STRICT', true); // validate schemas
chdir(dirname(__FILE__));