Skip to content

Commit 3c3c483

Browse files
committed
Update PHP and dependencies, added ext-encoding for experimental usage
1 parent a34e48e commit 3c3c483

2 files changed

Lines changed: 20 additions & 13 deletions

File tree

compile.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/usr/bin/env bash
2-
[ -z "$PHP_VERSION" ] && PHP_VERSION="8.1.24"
2+
[ -z "$PHP_VERSION" ] && PHP_VERSION="8.1.25"
33

44
ZLIB_VERSION="1.3"
55
GMP_VERSION="6.3.0"
6-
CURL_VERSION="curl-8_3_0"
6+
CURL_VERSION="curl-8_4_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.40"
1111
LIBJPEG_VERSION="9e"
12-
OPENSSL_VERSION="3.1.3"
12+
OPENSSL_VERSION="3.1.4"
1313
LIBZIP_VERSION="1.10.1"
14-
SQLITE3_VERSION="3430100" #3.43.1
14+
SQLITE3_VERSION="3440000" #3.44.0
1515
LIBDEFLATE_VERSION="dd12ff2b36d603dbb7fa8838fe7e7176fcbd4f6f" #1.19
1616

1717
EXT_PTHREADS_VERSION="4.2.2"
@@ -26,7 +26,8 @@ EXT_RECURSIONGUARD_VERSION="0.1.0"
2626
EXT_LIBDEFLATE_VERSION="0.2.1"
2727
EXT_MORTON_VERSION="0.1.2"
2828
EXT_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

3132
function write_out {
3233
echo "[$1] $2"
@@ -347,7 +348,7 @@ else
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"
@@ -431,25 +432,25 @@ fi
431432
if [ "$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
436437
else
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
441442
fi
442443

443444
if [ "$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

10661067
get_github_extension "arraydebug" "$EXT_ARRAYDEBUG_VERSION" "pmmp" "ext-arraydebug"
10671068

1069+
get_github_extension "encoding" "$EXT_ENCODING_VERSION" "pmmp" "ext-encoding"
1070+
10681071
write_library "PHP" "$PHP_VERSION"
10691072

10701073
write_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
11951199
write_compile

windows-compile-vs.bat

Lines changed: 6 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.1
6-
set PHP_VER=%PHP_MAJOR_VER%.24
6+
set PHP_VER=%PHP_MAJOR_VER%.25
77
set PHP_GIT_REV=php-%PHP_VER%
88
set PHP_DISPLAY_VER=%PHP_VER%
99
set PHP_SDK_VER=2.2.0
@@ -35,7 +35,8 @@ set PHP_MORTON_VER=0.1.2
3535
set PHP_LIBDEFLATE_VER=0.2.1
3636
set PHP_XXHASH_VER=0.2.0
3737
set PHP_XDEBUG_VER=3.2.2
38-
set PHP_ARRAYDEBUG_VER=0.1.0
38+
set PHP_ARRAYDEBUG_VER=0.2.0
39+
set PHP_ENCODING_VER=0.2.3
3940

4041
set script_path=%~dp0
4142
set log_file=%script_path%compile.log
@@ -269,6 +270,7 @@ call configure^
269270
--enable-chunkutils2=shared^
270271
--enable-com-dotnet^
271272
--enable-ctype^
273+
--enable-encoding=shared^
272274
--enable-fileinfo=shared^
273275
--enable-filter^
274276
--enable-hash^
@@ -363,7 +365,6 @@ if "%PM_VERSION_MAJOR%" geq "5" (
363365
(echo opcache.file_update_protection=0)>>"%php_ini%"
364366
(echo opcache.optimization_level=0x7FFEBFFF)>>"%php_ini%"
365367
(echo opcache.cache_id=PHP_BINARY ;prevent sharing SHM between different binaries - they won't work because of ASLR)>>"%php_ini%"
366-
(echo ;Optional extensions, supplied for PM3 use)>>"%php_ini%"
367368
(echo ;Optional extensions, supplied for plugin use)>>"%php_ini%"
368369
(echo extension=php_fileinfo.dll)>>"%php_ini%"
369370
(echo extension=php_gd.dll)>>"%php_ini%"
@@ -391,6 +392,8 @@ if "%PHP_JIT_ENABLE_ARG%"=="on" (
391392
(echo xdebug.profiler_output_name=cachegrind.%%s.%%p.%%r)>>"%php_ini%"
392393
(echo xdebug.gc_stats_output_name=gcstats.%%s.%%p.%%r)>>"%php_ini%"
393394
(echo xdebug.trace_output_name=trace.%%s.%%p.%%r)>>"%php_ini%"
395+
(echo ;Optional experimental extensions)>>"%php_ini%"
396+
(echo extension=php_encoding.dll)>>"%php_ini%"
394397

395398
call :pm-echo "Xdebug is included, but disabled by default. To enable it, change 'xdebug.mode' in your php.ini file."
396399

0 commit comments

Comments
 (0)