11#! /usr/bin/env bash
2- [ -z " $PHP_VERSION " ] && PHP_VERSION=" 8.1.24 "
2+ [ -z " $PHP_VERSION " ] && PHP_VERSION=" 8.1.25 "
33
44ZLIB_VERSION=" 1.3"
55GMP_VERSION=" 6.3.0"
6- CURL_VERSION=" curl-8_3_0 "
6+ CURL_VERSION=" curl-8_4_0 "
77YAML_VERSION=" 0.2.5"
88LEVELDB_VERSION=" 1c7564468b41610da4f498430e795ca4de0931ff"
99LIBXML_VERSION=" 2.10.1" # 2.10.2 requires automake 1.16.3, which isn't easily available on Ubuntu 20.04
1010LIBPNG_VERSION=" 1.6.40"
1111LIBJPEG_VERSION=" 9e"
12- OPENSSL_VERSION=" 3.1.3 "
12+ OPENSSL_VERSION=" 3.1.4 "
1313LIBZIP_VERSION=" 1.10.1"
14- SQLITE3_VERSION=" 3430100 " # 3.43.1
14+ SQLITE3_VERSION=" 3440000 " # 3.44.0
1515LIBDEFLATE_VERSION=" dd12ff2b36d603dbb7fa8838fe7e7176fcbd4f6f" # 1.19
1616
1717EXT_PTHREADS_VERSION=" 4.2.2"
@@ -26,7 +26,8 @@ EXT_RECURSIONGUARD_VERSION="0.1.0"
2626EXT_LIBDEFLATE_VERSION=" 0.2.1"
2727EXT_MORTON_VERSION=" 0.1.2"
2828EXT_XXHASH_VERSION=" 0.2.0"
29- EXT_ARRAYDEBUG_VERSION=" 0.1.0"
29+ EXT_ARRAYDEBUG_VERSION=" 0.2.0"
30+ EXT_ENCODING_VERSION=" 0.2.3"
3031
3132function write_out {
3233 echo " [$1 ] $2 "
347348 LDFLAGS=" $LDFLAGS -Wl,-rpath,@loader_path/../lib" ;
348349 export DYLD_LIBRARY_PATH=" @loader_path/../lib"
349350 fi
350- CFLAGS=" $CFLAGS -Qunused-arguments -Wno-error=unused-command-line-argument-hard-error-in-future "
351+ CFLAGS=" $CFLAGS -Qunused-arguments"
351352 GMP_ABI=" 64"
352353 OPENSSL_TARGET=" darwin64-x86_64-cc"
353354 CMAKE_GLOBAL_EXTRA_FLAGS=" -DCMAKE_OSX_ARCHITECTURES=x86_64"
431432if [ " $mtune " != " none" ]; then
432433 $CC -march=$march -mtune=$mtune $CFLAGS -o test test.c >> " $DIR /install.log" 2>&1
433434 if [ $? -eq 0 ]; then
434- CFLAGS=" -march=$march -mtune=$mtune -fno-gcse $CFLAGS "
435+ CFLAGS=" -march=$march -mtune=$mtune $CFLAGS "
435436 fi
436437else
437438 $CC -march=$march $CFLAGS -o test test.c >> " $DIR /install.log" 2>&1
438439 if [ $? -eq 0 ]; then
439- CFLAGS=" -march=$march -fno-gcse $CFLAGS "
440+ CFLAGS=" -march=$march $CFLAGS "
440441 fi
441442fi
442443
443444if [ " $DO_OPTIMIZE " != " no" ]; then
444445 # FLAGS_LTO="-fvisibility=hidden -flto"
445446 CFLAGS=" $CFLAGS -O2"
446- GENERIC_CFLAGS=" $CFLAGS -ftree-vectorize -fomit-frame-pointer -funswitch-loops -fivopts "
447+ GENERIC_CFLAGS=" $CFLAGS -ftree-vectorize -fomit-frame-pointer"
447448 $CC $CFLAGS $GENERIC_CFLAGS -o test test.c >> " $DIR /install.log" 2>&1
448449 if [ $? -eq 0 ]; then
449450 CFLAGS=" $CFLAGS $GENERIC_CFLAGS "
450451 fi
451452 # clang does not understand the following and will fail
452- GCC_CFLAGS=" $CFLAGS -funsafe-loop-optimizations -fpredictive-commoning -ftracer -ftree-loop-im -frename-registers -fcx-limited-range"
453+ GCC_CFLAGS=" $CFLAGS -funsafe-loop-optimizations -fpredictive-commoning -ftracer -ftree-loop-im -frename-registers -fcx-limited-range -funswitch-loops -fivopts -fno-gcse "
453454 $CC $CFLAGS $GCC_CFLAGS -o test test.c >> " $DIR /install.log" 2>&1
454455 if [ $? -eq 0 ]; then
455456 CFLAGS=" $CFLAGS $GCC_CFLAGS "
@@ -1065,6 +1066,8 @@ get_github_extension "xxhash" "$EXT_XXHASH_VERSION" "pmmp" "ext-xxhash"
10651066
10661067get_github_extension " arraydebug" " $EXT_ARRAYDEBUG_VERSION " " pmmp" " ext-arraydebug"
10671068
1069+ get_github_extension " encoding" " $EXT_ENCODING_VERSION " " pmmp" " ext-encoding"
1070+
10681071write_library " PHP" " $PHP_VERSION "
10691072
10701073write_configure
@@ -1190,6 +1193,7 @@ $HAVE_MYSQLI \
11901193--enable-recursionguard \
11911194--enable-xxhash \
11921195--enable-arraydebug \
1196+ --enable-encoding \
11931197$HAVE_VALGRIND \
11941198$CONFIGURE_FLAGS >> " $DIR /install.log" 2>&1
11951199write_compile
0 commit comments