Skip to content

Commit 2ffcb9d

Browse files
committed
Disable memory_limit for tests
1 parent 77373f0 commit 2ffcb9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

php/BuildPhp/private/Set-PhpIniForTests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function Set-PhpIniForTests {
2323
$ini = "$BuildDirectory\phpbin\php.ini"
2424
Copy-Item "$PSScriptRoot\..\config\ini\extensions.ini" $ini
2525
Add-Content $ini "extension_dir=$BuildDirectory\phpbin\ext"
26+
Add-Content $ini "memory_limit=-1"
2627
if ($Opcache -eq "opcache") {
2728
New-Item "$BuildDirectory/file_cache" -ItemType "directory" > $null 2>&1
2829
$opcacheIni = Get-Content "$PSScriptRoot\..\config\ini\opcache-$Arch.ini" -Raw
@@ -33,4 +34,4 @@ function Set-PhpIniForTests {
3334
}
3435
end {
3536
}
36-
}
37+
}

0 commit comments

Comments
 (0)