From: Nikita Popov Date: Fri, 21 Jun 2019 15:08:24 +0000 (+0200) Subject: run-tests: Don't die unnecessarily X-Git-Tag: php-7.4.0alpha3~194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74a7d0084629d6f2e092ce5823af03d868aba19a;p=php run-tests: Don't die unnecessarily die/exit leak memory, don't use them if we don't need to. --- diff --git a/run-tests.php b/run-tests.php index 9d20304c25..c684a06576 100755 --- a/run-tests.php +++ b/run-tests.php @@ -63,7 +63,7 @@ function main() if (getenv("TEST_PHP_WORKER")) { $workerID = intval(getenv("TEST_PHP_WORKER")); run_worker(); - die; + return; } define('INIT_DIR', getcwd()); @@ -733,7 +733,7 @@ HELP; exit(1); } - exit(0); + return; } } @@ -1731,11 +1731,9 @@ function run_worker() { "type" => "error", "msg" => "Unrecognised message type: $command[type]" ]); - die; + break 2; } } - - die; } //