From 720d8fdddca1c70b1363ea3584d79c11adfe81b4 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 19 Apr 2003 18:12:07 +0000 Subject: [PATCH] MFH (pcre sanity check) --- run-tests.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/run-tests.php b/run-tests.php index 9f71f3899a..57c4b44b70 100755 --- a/run-tests.php +++ b/run-tests.php @@ -36,6 +36,27 @@ * - do not test PEAR components if base class and/or component class cannot be instanciated */ + +/* Sanity check to ensure that pcre extension needed by this script is avaliable. + * In the event it is not, print a nice error message indicating that this script will + * not run without it. + */ + +if (!extension_loaded("pcre")) { + echo <<