From 8f48f40b9466b669d938a5b1f3ca6502fbb58f6e Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sun, 11 Jul 2010 17:34:06 +0000 Subject: [PATCH] ereg is deprecated --- maintenance/fuzz-tester.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1