summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-11-30 17:01:09 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-12-01 12:36:18 +0100
commit6fdc988592bfaecfcf99a88faac8d343d3a90a8d (patch)
tree2fd88144a35b6741e2098101d171884f8f7d9e36 /run-tests.php
parent715d89e16693f0523e3daf1e0a140a358475deca (diff)
downloadphp-git-6fdc988592bfaecfcf99a88faac8d343d3a90a8d.tar.gz
Don't pass null to strlen()
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
1 files changed, 1 insertions, 1 deletions
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 {