Skip to content

Commit 0502620

Browse files
authored
Merge branch 'pmmp:stable' into main
2 parents 5f8bb4f + 6b605ed commit 0502620

2 files changed

Lines changed: 21 additions & 12 deletions

File tree

compile.sh

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
#!/bin/bash
2-
[ -z "$PHP_VERSION" ] && PHP_VERSION="8.0.24"
2+
[ -z "$PHP_VERSION" ] && PHP_VERSION="8.0.26"
33

4-
ZLIB_VERSION="1.2.11" #1.2.12 breaks on macOS and probably cross-compile too due to ignoring $CC
4+
ZLIB_VERSION="1.2.13"
55
GMP_VERSION="6.2.1"
6-
CURL_VERSION="curl-7_85_0"
6+
CURL_VERSION="curl-7_86_0"
77
YAML_VERSION="0.2.5"
88
LEVELDB_VERSION="1c7564468b41610da4f498430e795ca4de0931ff"
99
LIBXML_VERSION="2.10.1" #2.10.2 requires automake 1.16.3, which isn't easily available on Ubuntu 20.04
1010
LIBPNG_VERSION="1.6.38"
1111
LIBJPEG_VERSION="9e"
12-
OPENSSL_VERSION="1.1.1p" #1.1.1q breaks on macOS (https://github.com/openssl/openssl/issues/18720)
12+
OPENSSL_VERSION="1.1.1s"
1313
LIBZIP_VERSION="1.9.2"
1414
SQLITE3_YEAR="2022"
15-
SQLITE3_VERSION="3390400" #3.39.4
15+
SQLITE3_VERSION="3400000" #3.40.0
1616
LIBDEFLATE_VERSION="0d1779a071bcc636e5156ddb7538434da7acad22" #1.14
1717

1818
EXT_PTHREADS_VERSION="4.1.4"
1919
EXT_YAML_VERSION="2.2.2"
2020
EXT_LEVELDB_VERSION="317fdcd8415e1566fc2835ce2bdb8e19b890f9f3"
2121
EXT_CHUNKUTILS2_VERSION="0.3.3"
22-
EXT_XDEBUG_VERSION="3.1.5"
23-
EXT_IGBINARY_VERSION="3.2.7"
22+
EXT_XDEBUG_VERSION="3.1.6"
23+
EXT_IGBINARY_VERSION="3.2.12"
2424
EXT_CRYPTO_VERSION="0.3.2"
2525
EXT_RECURSIONGUARD_VERSION="0.1.0"
2626
EXT_LIBDEFLATE_VERSION="0.1.0"
@@ -303,7 +303,7 @@ fi
303303

304304
if [ "$DO_OPTIMIZE" != "no" ]; then
305305
#FLAGS_LTO="-fvisibility=hidden -flto"
306-
CFLAGS="$CFLAGS -O2 -ffast-math -ftree-vectorize -fomit-frame-pointer -funswitch-loops -fivopts"
306+
CFLAGS="$CFLAGS -O2 -ftree-vectorize -fomit-frame-pointer -funswitch-loops -fivopts"
307307
if [ "$COMPILE_TARGET" != "mac-x86-64" ] && [ "$COMPILE_TARGET" != "mac-arm64" ]; then
308308
CFLAGS="$CFLAGS -funsafe-loop-optimizations -fpredictive-commoning -ftracer -ftree-loop-im -frename-registers -fcx-limited-range"
309309
fi
@@ -335,7 +335,10 @@ echo "}" >> test.c
335335

336336
type $CC >> "$DIR/install.log" 2>&1 || { echo >&2 "[ERROR] Please install \"$CC\""; exit 1; }
337337

338-
[ -z "$THREADS" ] && THREADS=1;
338+
if [ -z "$THREADS" ]; then
339+
write_out "WARNING" "Only 1 thread is used by default. Increase thread count using -j (e.g. -j 4) to compile faster."
340+
THREADS=1;
341+
fi
339342
[ -z "$march" ] && march=native;
340343
[ -z "$mtune" ] && mtune=native;
341344
[ -z "$CFLAGS" ] && CFLAGS="";
@@ -1065,6 +1068,12 @@ if [ "$HAVE_OPCACHE" == "yes" ]; then
10651068
echo "opcache.jit=off" >> "$INSTALL_DIR/bin/php.ini"
10661069
echo "opcache.jit_buffer_size=128M" >> "$INSTALL_DIR/bin/php.ini"
10671070
fi
1071+
if [ "$COMPILE_TARGET" == "mac-"* ]; then
1072+
#we don't have permission to allocate executable memory on macOS due to not being codesigned
1073+
#workaround this for now by disabling PCRE JIT
1074+
echo "" >> "$INSTALL_DIR/bin/php.ini"
1075+
echo "pcre.jit=off" >> "$INSTALL_DIR/bin/php.ini"
1076+
fi
10681077

10691078
echo " done!"
10701079

windows-compile-vs.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
REM For future users: This file MUST have CRLF line endings. If it doesn't, lots of inexplicable undesirable strange behaviour will result.
44
REM Also: Don't modify this version with sed, or it will screw up your line endings.
55
set PHP_MAJOR_VER=8.0
6-
set PHP_VER=%PHP_MAJOR_VER%.24
6+
set PHP_VER=%PHP_MAJOR_VER%.26
77
set PHP_GIT_REV=php-%PHP_VER%
88
set PHP_DISPLAY_VER=%PHP_VER%
99
set PHP_SDK_VER=2.2.0
@@ -26,14 +26,14 @@ set LIBDEFLATE_VER=0d1779a071bcc636e5156ddb7538434da7acad22
2626
set PHP_PTHREADS_VER=4.1.4
2727
set PHP_YAML_VER=2.2.2
2828
set PHP_CHUNKUTILS2_VER=0.3.3
29-
set PHP_IGBINARY_VER=3.2.7
29+
set PHP_IGBINARY_VER=3.2.12
3030
set PHP_LEVELDB_VER=317fdcd8415e1566fc2835ce2bdb8e19b890f9f3
3131
set PHP_CRYPTO_VER=0.3.2
3232
set PHP_RECURSIONGUARD_VER=0.1.0
3333
set PHP_MORTON_VER=0.1.2
3434
set PHP_LIBDEFLATE_VER=0.1.0
3535
set PHP_XXHASH_VER=0.1.1
36-
set PHP_XDEBUG_VER=3.1.5
36+
set PHP_XDEBUG_VER=3.1.6
3737

3838
set script_path=%~dp0
3939
set log_file=%script_path%compile.log

0 commit comments

Comments
 (0)