]> granicus.if.org Git - php/commitdiff
Don't pass null to strlen()
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 30 Nov 2020 16:01:09 +0000 (17:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 1 Dec 2020 11:36:18 +0000 (12:36 +0100)
run-tests.php

index d0eaa2b638726be2786eaac6c4e3f7de40dcd500..5cb376cba29a7ddc335b6a96cc7f8c64a6046214 100755 (executable)
@@ -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 {