From: Max Semenik Date: Sun, 11 Jul 2010 17:34:06 +0000 (+0000) Subject: ereg is deprecated X-Git-Tag: 1.31.0-rc.0~36163 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=8f48f40b9466b669d938a5b1f3ca6502fbb58f6e;p=lhc%2Fweb%2Fwiklou.git ereg is deprecated --- diff --git a/maintenance/fuzz-tester.php b/maintenance/fuzz-tester.php index 6af8a1570c..835afe7499 100644 --- a/maintenance/fuzz-tester.php +++ b/maintenance/fuzz-tester.php @@ -2621,7 +2621,7 @@ function rerunPreviousTests() { // if file is not a test, then skip it. // Note we need to escape any periods or will be treated as "any character". $matches = array(); - if ( !ereg( "(.*)" . str_replace( ".", "\.", DATA_FILE ) . "$", $file, $matches ) ) continue; + if ( !preg_match( "/(.*)" . str_replace( ".", "\.", DATA_FILE ) . "$/", $file, $matches ) ) continue; // reload the test. $full_path = DIRECTORY . "/" . $file;