Skip to content

Commit

Permalink
Fix installing zts builds
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Nov 25, 2023
1 parent bbe1204 commit de2903a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scripts/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set_output() {
read_env() {
update="${update:-${UPDATE:-false}}"
[ "${debug:-${DEBUG:-false}}" = "true" ] && debug=debug && update=true || debug=release
[ "${phpts:-${PHPTS:-nts}}" = "ts" ] && ts=zts && update=true || ts=nts
[[ "${phpts:-${PHPTS:-nts}}" = "ts" || "${phpts:-${PHPTS:-nts}}" = "zts" ]] && ts=zts && update=true || ts=nts
fail_fast="${fail_fast:-${FAIL_FAST:-false}}"
[[ -z "${ImageOS}" && -z "${ImageVersion}" || -n ${ACT} ]] && _runner=self-hosted || _runner=github
runner="${runner:-${RUNNER:-$_runner}}"
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/win32.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ if(-not([Environment]::Is64BitOperatingSystem) -or $version -lt '7.0') {
$arch = 'x86'
}

$ts = $env:PHPTS -eq 'ts'
if($env:PHPTS -ne 'ts') {
$ts = ($env:PHPTS -match '^z?ts$')
if(-not($ts)) {
$env:PHPTS = '-nts'
} else {
$env:PHPTS = ''
Expand Down

0 comments on commit de2903a

Please sign in to comment.