init
This commit is contained in:
24
web10/tools/php82.ps1
Normal file
24
web10/tools/php82.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
param(
|
||||
[Parameter(ValueFromRemainingArguments = $true)]
|
||||
[string[]]$Args
|
||||
)
|
||||
|
||||
$php = "D:/phpstudy_pro/Extensions/php/php8.2.9nts/php.exe"
|
||||
$extDir = "D:/phpstudy_pro/Extensions/php/php8.2.9nts/ext"
|
||||
$iniPath = Join-Path $PSScriptRoot "php82.ini"
|
||||
|
||||
$env:PHPRC = $iniPath
|
||||
$env:PHP_INI_SCAN_DIR = ""
|
||||
$phpArgs = @(
|
||||
"-n",
|
||||
"-d", "extension_dir=$extDir",
|
||||
"-d", "extension=openssl",
|
||||
"-d", "extension=mbstring",
|
||||
"-d", "extension=fileinfo",
|
||||
"-d", "extension=curl",
|
||||
"-d", "extension=zip",
|
||||
"-d", "extension=pdo_mysql"
|
||||
)
|
||||
|
||||
& $php @phpArgs @Args
|
||||
exit $LASTEXITCODE
|
||||
Reference in New Issue
Block a user