Skip to content

Commit 8e5789e

Browse files
[Process] Dont rely on putenv(), it fails on ZTS PHP
1 parent 03f957c commit 8e5789e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ protected function doRequestInProcess($request)
343343
{
344344
$deprecationsFile = tempnam(sys_get_temp_dir(), 'deprec');
345345
putenv('SYMFONY_DEPRECATIONS_SERIALIZE='.$deprecationsFile);
346+
$_ENV['SYMFONY_DEPRECATIONS_SERIALIZE'] = $deprecationsFile;
346347
$process = new PhpProcess($this->getScript($request), null, null);
347348
$process->run();
348349

0 commit comments

Comments
 (0)