From b997076dfa1edc241bada6a14392c70bcfd856ce Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 8 Apr 2008 19:25:56 +0000 Subject: [PATCH] Automatically disable PHPT if version of PHP isn't supported. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1653 48356398-32a2-884e-a903-53898d9a118a --- tests/test_files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_files.php b/tests/test_files.php index b91f9dd5..00165f74 100644 --- a/tests/test_files.php +++ b/tests/test_files.php @@ -29,6 +29,6 @@ if (!$AC['only-phpt']) { } // PHPT tests -if (!$AC['disable-phpt']) { +if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) { $phpt_dirs[] = 'HTMLPurifier/PHPT'; }