mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
This commit is contained in:
commit
b8c1b5e9fa
2 changed files with 16 additions and 3 deletions
|
@ -24,7 +24,7 @@ echo str_repeat('asdfghjkl', 150000) . "\n";
|
|||
EOT;
|
||||
|
||||
$tester = new FPM\Tester($cfg, $code);
|
||||
$tester->start();
|
||||
$tester->start(extensions: ['session']);
|
||||
$tester->expectLogStartNotices();
|
||||
$tester
|
||||
->request(
|
||||
|
|
|
@ -379,12 +379,17 @@ class Tester
|
|||
* @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.
|
||||
*
|
||||
* @return bool
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function start(array $extraArgs = [], bool $forceStderr = true, bool $daemonize = false)
|
||||
{
|
||||
public function start(
|
||||
array $extraArgs = [],
|
||||
bool $forceStderr = true,
|
||||
bool $daemonize = false,
|
||||
array $extensions = []
|
||||
) {
|
||||
$configFile = $this->createConfig();
|
||||
$desc = $this->outDesc ? [] : [1 => array('pipe', 'w'), 2 => array('redirect', 1)];
|
||||
|
||||
|
@ -399,6 +404,14 @@ class Tester
|
|||
$cmd[] = '-F';
|
||||
}
|
||||
|
||||
$extensionDir = getenv('TEST_FPM_EXTENSION_DIR');
|
||||
if ($extensionDir) {
|
||||
$cmd[] = '-dextension_dir=' . $extensionDir;
|
||||
foreach ($extensions as $extension) {
|
||||
$cmd[] = '-dextension=' . $extension;
|
||||
}
|
||||
}
|
||||
|
||||
if (getenv('TEST_FPM_RUN_AS_ROOT')) {
|
||||
$cmd[] = '--allow-to-run-as-root';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue