ereg is deprecated
authorMax Semenik <maxsem@users.mediawiki.org>
Sun, 11 Jul 2010 17:34:06 +0000 (17:34 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Sun, 11 Jul 2010 17:34:06 +0000 (17:34 +0000)
maintenance/fuzz-tester.php

index 6af8a15..835afe7 100644 (file)
@@ -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;