[php-src] PHP-8.2: Fix FPM tester default env vars change

From: Date: Sat, 30 Mar 2024 14:38:10 +0000
Subject: [php-src] PHP-8.2: Fix FPM tester default env vars change
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-127896@lists.php.net to get a copy of this message
Author: Jakub Zelenka (bukka) Date: 2024-03-30T14:37:54Z Commit: https://github.com/php/php-src/commit/9b1d2e93b81d404815361398cea7a62bf84041e9 Raw diff: https://github.com/php/php-src/commit/9b1d2e93b81d404815361398cea7a62bf84041e9.diff Fix FPM tester default env vars change This broke cloexec test Changed paths: M sapi/fpm/tests/tester.inc Diff: diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc index ff834c329fa5..ed0988f883ac 100644 --- a/sapi/fpm/tests/tester.inc +++ b/sapi/fpm/tests/tester.inc @@ -417,11 +417,12 @@ class Tester /** * Start PHP-FPM master process * - * @param array $extraArgs Command extra arguments. - * @param bool $forceStderr Whether to output to stderr so error log is used. - * @param bool $daemonize Whether to start FPM daemonized - * @param array $extensions List of extension to add if shared build used. - * @param array $iniEntries List of ini entries to use. + * @param array $extraArgs Command extra arguments. + * @param bool $forceStderr Whether to output to stderr so error log is used. + * @param bool $daemonize Whether to start FPM daemonized + * @param array $extensions List of extension to add if shared build used. + * @param array $iniEntries List of ini entries to use. + * @param array|null $envVars List of env variable to execute FPM with or null to use the current ones. * * @return bool * @throws \Exception @@ -432,7 +433,7 @@ class Tester bool $daemonize = false, array $extensions = [], array $iniEntries = [], - array $envVars = [], + ?array $envVars = null, ) { $configFile = $this->createConfig(); $desc = $this->outDesc ? [] : [1 => array('pipe', 'w'), 2 => array('redirect', 1)];

« previous php.cvs (#127896) next »