From 6fdc988592bfaecfcf99a88faac8d343d3a90a8d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 30 Nov 2020 17:01:09 +0100 Subject: Don't pass null to strlen() --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run-tests.php') diff --git a/run-tests.php b/run-tests.php index d0eaa2b638..5cb376cba2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -699,7 +699,7 @@ function main(): void $environment['TEST_PHP_EXECUTABLE'] = $php; } - if (strlen($conf_passed)) { + if ($conf_passed !== null) { if (IS_WINDOWS) { $pass_options .= " -c " . escapeshellarg($conf_passed); } else { -- cgit v1.2.1