diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 0696c5b4ac..e95323a2e0 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -419,7 +419,8 @@ function benchmark_pcre_backtracking( $pattern, $subject, $strategy ) { preg_match( $pattern, $subject ); break; case 'match_all': - preg_match_all( $pattern, $subject ); + $matches = array(); + preg_match_all( $pattern, $subject, $matches ); break; }