Skip to content

Commit 0a41a03

Browse files
authored
Fix oci setup
1 parent dbdb32b commit 0a41a03

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

.github/workflows/php80.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
6464
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
6565
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
66-
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
66+
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
6767
- name: Patch Tools
6868
run: |
6969
$git_location="C:\Program Files\Git\cmd\git.exe"
@@ -79,6 +79,8 @@ jobs:
7979
((Get-Content -path $snap_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $snap_script_location
8080
((Get-Content -path $branch_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $branch_script_location
8181
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
82+
((Get-Content -path $config_location -Raw) -replace "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
83+
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
8284
- name: build PHP
8385
run: |
8486
C:\php-snap-build\php-sdk\bin\vswhere

.github/workflows/php81.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
6464
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
6565
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
66-
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
66+
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
6767
- name: Patch Tools
6868
run: |
6969
$git_location="C:\Program Files\Git\cmd\git.exe"
@@ -79,6 +79,8 @@ jobs:
7979
((Get-Content -path $snap_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $snap_script_location
8080
((Get-Content -path $branch_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $branch_script_location
8181
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
82+
((Get-Content -path $config_location -Raw) -replace "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
83+
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
8284
- name: build PHP
8385
run: |
8486
C:\php-snap-build\php-sdk\bin\vswhere

.github/workflows/phpmaster.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
Invoke-WebRequest -UseBasicParsing -Uri https://download.oracle.com/otn_software/nt/instantclient/instantclient-sdk-$suffix.zip -OutFile $oci_dir\sdk.zip
6464
Expand-Archive -Path $oci_dir\instantclient.zip -DestinationPath $oci_dir -Force
6565
Expand-Archive -Path $oci_dir\sdk.zip -DestinationPath $oci_dir -Force
66-
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_12_1
66+
Get-ChildItem $oci_dir | ?{ $_.PSIsContainer } | Rename-Item -NewName instantclient_19_9
6767
- name: Patch Tools
6868
run: |
6969
$git_location="C:\Program Files\Git\cmd\git.exe"
@@ -79,6 +79,8 @@ jobs:
7979
((Get-Content -path $snap_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $snap_script_location
8080
((Get-Content -path $branch_script_location -Raw) -replace "0, 7", "0, 10") | Set-Content -Path $branch_script_location
8181
((Get-Content -path $config_location -Raw) -replace "pgo=1", "pgo=0") | Set-Content -Path $config_location
82+
((Get-Content -path $config_location -Raw) -replace "instantclient_12_1", "instantclient_19_9") | Set-Content -Path $config_location
83+
((Get-Content -path $config_location -Raw) -replace "oci8-12c", "oci8-19") | Set-Content -Path $config_location
8284
- name: build PHP
8385
run: |
8486
C:\php-snap-build\php-sdk\bin\vswhere

scripts/Get-Php.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $semver = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/$branc
4343
Invoke-WebRequest -UseBasicParsing -Uri "https://github.com/shivammathur/php-builder-windows/releases/download/php$Version/php-$semver$ts-Win32-vs16-$Architecture.zip" -OutFile $Path\master.zip
4444
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
4545
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
46-
Move-Item -Path $Path\ext\php_oci8_12c.dll -Destination $Path\ext\php_oci8.dll -Force
46+
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force
4747
$ts = 'nts'
4848
if($ThreadSafe) {
4949
$ts = 'ts'

scripts/Get-PhpNightly.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if($Version -match '8.[0-1]') {
4040
Expand-Archive -Path $Path\master.zip -DestinationPath $Path -Force
4141
Copy-Item $Path\php.ini-production -Destination $Path\php.ini
4242
}
43-
Move-Item -Path $Path\ext\php_oci8_12c.dll -Destination $Path\ext\php_oci8.dll -Force
43+
Move-Item -Path $Path\ext\php_oci8*.dll -Destination $Path\ext\php_oci8.dll -Force
4444
$ts = 'nts'
4545
if($ThreadSafe) {
4646
$ts = 'ts'

0 commit comments

Comments
 (0)