Set JIT related ini values on PHP 8

This commit is contained in:
Shivam Mathur 2020-12-17 13:59:27 +05:30
parent b3cd6b4dab
commit ff5499165a
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ export tick="✓"
export cross="✗" export cross="✗"
export curl_opts=(-sL) export curl_opts=(-sL)
export old_versions="5.[3-5]" export old_versions="5.[3-5]"
export jit_versions="8.[0-1]"
export tool_path_dir="/usr/local/bin" export tool_path_dir="/usr/local/bin"
export composer_bin="$HOME/.composer/vendor/bin" export composer_bin="$HOME/.composer/vendor/bin"
export composer_json="$HOME/.composer/composer.json" export composer_json="$HOME/.composer/composer.json"

View File

@ -157,7 +157,6 @@ setup_php() {
version=$1 version=$1
dist=$2 dist=$2
nightly_versions="8.1" nightly_versions="8.1"
jit_versions="8.[0-1]"
brew_prefix="$(brew --prefix)" brew_prefix="$(brew --prefix)"
tap_dir="$brew_prefix"/Homebrew/Library/Taps tap_dir="$brew_prefix"/Homebrew/Library/Taps
export HOMEBREW_NO_INSTALL_CLEANUP=1 export HOMEBREW_NO_INSTALL_CLEANUP=1

View File

@ -281,6 +281,7 @@ setup_php() {
sudo rm -rf /usr/local/bin/phpunit >/dev/null 2>&1 sudo rm -rf /usr/local/bin/phpunit >/dev/null 2>&1
sudo chmod 777 "${ini_file[@]}" "$pecl_file" "${tool_path_dir:?}" sudo chmod 777 "${ini_file[@]}" "$pecl_file" "${tool_path_dir:?}"
sudo cp "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/" sudo cp "$dist"/../src/configs/*.json "$RUNNER_TOOL_CACHE/"
[[ "$version" =~ ${jit_versions:?} ]] && echo -e "opcache.enable=1\nopcache.jit_buffer_size=256M\nopcache.jit=1235" | sudo tee -a "${ini_file[@]}" >/dev/null 2>&1
add_log "${tick:?}" "PHP" "$status PHP $semver" add_log "${tick:?}" "PHP" "$status PHP $semver"
} }