Skip to content

Commit 374014f

Browse files
committed
Prefix build directory with a string
run-tests.php mangles sendmail_path if the directory starts with a digit
1 parent b61dfa4 commit 374014f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php/BuildPhp/public/Invoke-PhpBuild.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Invoke-PhpBuild {
4040

4141
$tempDirectory = [System.IO.Path]::GetTempPath()
4242

43-
$buildDirectory = [System.IO.Path]::Combine($tempDirectory, [System.Guid]::NewGuid().ToString())
43+
$buildDirectory = [System.IO.Path]::Combine($tempDirectory, ("php-" + [System.Guid]::NewGuid().ToString()))
4444

4545
New-Item "$buildDirectory" -ItemType "directory" -Force > $null 2>&1
4646

php/BuildPhp/public/Invoke-PhpTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Invoke-PhpTests {
4747

4848
$tempDirectory = [System.IO.Path]::GetTempPath()
4949

50-
$buildDirectory = [System.IO.Path]::Combine($tempDirectory, [System.Guid]::NewGuid().ToString())
50+
$buildDirectory = [System.IO.Path]::Combine($tempDirectory, ("php-" + [System.Guid]::NewGuid().ToString()))
5151

5252
$testsDirectory = "tests"
5353

0 commit comments

Comments
 (0)