Skip to content

Commit

Permalink
Merge pull request #186 from joanhey/fix-major-version
Browse files Browse the repository at this point in the history
Fix php 8 major version
  • Loading branch information
rryqszq4 authored Feb 18, 2024
2 parents f30f254 + 826ca8f commit 2eb6241
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/ngx-php/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ${NGX_PATH}/nginx -V
export PATH=${NGX_PATH}:$PATH
NGX_MODULE_PATH=`pwd`'/nginx/modules'
if [ -d "${NGX_MODULE_PATH}" ]; then
for file in `\find ${NGX_MODULE_PATH} -name '*.so'`; do
for file in `\find ${NGX_MODULE_PATH} -name '*.so' | sort -h | xargs find`; do
TEST_NGINX_LOAD_MODULES="${TEST_NGINX_LOAD_MODULES}${file} "
done
export TEST_NGINX_LOAD_MODULES
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- "t/**"
- "third_party/**"
- ".github/**"
- "config"
pull_request:
paths:
- "src/**"
- "t/**"
- "third_party/**"
- ".github/**"
- "config"

# later try to pass it, and not repeat it in workflows
env:
Expand Down
4 changes: 2 additions & 2 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ if [ -z "$NGX_PHP_INCS" ]; then
fi

if [ -z "$NGX_PHP_LIBS" ]; then
PHP_VERSION="`$PHP_CONFIG --version`"
PHP_MAJOR_VERSION=`echo $PHP_VERSION | sed -e "s#\.[0-9]*##g"`
PHP_VERSION="`$PHP_CONFIG --vernum`"
PHP_MAJOR_VERSION=`echo $PHP_VERSION | cut -b 1`
if [ $PHP_MAJOR_VERSION -ge "8" ]; then
PHP_MAJOR_VERSION=""
fi
Expand Down
5 changes: 1 addition & 4 deletions t/025-opcache.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# vim:set ft= ts=4 sw=4 et fdm=marker:

use Test::Nginx::Socket 'no_plan';
use Test::Nginx::Socket skip_all => "Skip";

$ENV{'TEST_NGINX_BUILD_DIR'} = $ENV{'TRAVIS_BUILD_DIR'};

Expand Down Expand Up @@ -36,8 +36,6 @@ location = /jit {
# JIT only added in PHP8
echo "JIT enabled\n";
} else {
# set at runtime, as is not enabled from php.ini
# ini_set("opcache.jit", "tracing");
echo opcache_get_status()["jit"]["enabled"] ? "JIT enabled\n" : "JIT disabled";
}
';
Expand All @@ -48,7 +46,6 @@ GET /jit
JIT enabled
=== TEST 3: JIT ini values
show .ini valude
--- http_config
Expand Down

0 comments on commit 2eb6241

Please sign in to comment.