From: Ilia Alshanetsky Date: Sat, 19 Apr 2003 18:12:07 +0000 (+0000) Subject: MFH (pcre sanity check) X-Git-Tag: php-4.3.2RC2~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=720d8fdddca1c70b1363ea3584d79c11adfe81b4;p=php MFH (pcre sanity check) --- 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 <<