head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.8 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.6 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.4 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.2 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2025.04.13.15.56.19; author taca; state Exp; branches; next 1.1; commitid JcjOrLczHBzphUQF; 1.1 date 2025.02.08.02.59.57; author taca; state Exp; branches; next ; commitid vaOX9SFIWw9C2CIF; desc @@ 1.2 log @lang/php83: update to 8.3.20 This is a bug fix release. PHP 8.3.20 (2025-04-10) Core: * Fixed bug GH-17961 (use-after-free during dl()'ed module class destruction). * Fixed bug GH-15367 (dl() of module with aliased class crashes in shutdown). * Fixed bug GH-13193 again (Significant performance degradation in 'foreach'). DOM: * Fix weird unpack behaviour in DOM. * Fix xinclude destruction of live attributes. Embed: * Fixed bug GH-8533 (Unable to link dynamic libphp on Mac). Fuzzer: * Fixed bug GH-18081 (Memory leaks in error paths of fuzzer SAPI). GD: * Fixed bug GH-17984 (calls with arguments as array with references). Intl: * Fix locale_compose and locale_lookup to work with their array argument with values as references. * Fix dateformat_format when the time is an array of references. * Fix UConverter::transcode with substitutes as references. Mbstring: * Fixed bug GH-17989 (mb_output_handler crash with unset http_output_conv_mimetypes). Opcache: * Fixed bug GH-18112 (NULL access with preloading and INI option). * Fixed bug GH-18107 (Opcache CFG jmp optimization with try-finally breaks the exception table). PDO: * Fix memory leak when destroying PDORow. SOAP: * Fixed bug #66049 (Typemap can break parsing in parse_packet_soap leading to a segfault) . SPL: * Fixed bug GH-18018 (RC1 data returned from offsetGet causes UAF in ArrayObject). Treewide: * Fixed bug GH-17736 (Assertion failure zend_reference_destroy()). Windows: * Fixed bug GH-17836 (zend_vm_gen.php shouldn't break on Windows line endings). @ text @$NetBSD: patch-build_Makefile.global,v 1.1 2025/02/08 02:59:57 taca Exp $ * Adjust PHP library name. --- build/Makefile.global.orig 2025-04-08 20:21:18.000000000 +0000 +++ build/Makefile.global @@@@ -15,26 +15,26 @@@@ build-modules: $(PHP_MODULES) $(PHP_ZEND build-binaries: $(PHP_BINARIES) -libphp.la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) +libphp$(PHP_VER).la: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(LIBTOOL) --tag=CC --mode=link $(CC) $(LIBPHP_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@@ -@@$(LIBTOOL) --silent --tag=CC --mode=install cp $@@ $(phptempdir)/$@@ >/dev/null 2>&1 -libphp.dylib: libphp.la +libphp$(PHP_VER).dylib: libphp$(PHP_VER).la $(LIBTOOL) --tag=CC --mode=link $(CC) -dynamiclib $(LIBPHP_CFLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -rpath $(phptempdir) -install_name @@rpath/$@@ $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@@ -@@$(LIBTOOL) --silent --tag=CC --mode=install cp $@@ $(phptempdir)/$@@ >/dev/null 2>&1 -libs/libphp.bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) - $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@@ && cp $@@ libs/libphp.so +libs/libphp$(PHP_VER).bundle: $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) + $(CC) $(MH_BUNDLE_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(PHP_GLOBAL_OBJS:.lo=.o) $(PHP_SAPI_OBJS:.lo=.o) $(PHP_FRAMEWORKS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $@@ && cp $@@ libs/libphp$(PHP_VER).so install: $(all_targets) $(install_targets) install-sapi: $(OVERALL_TARGET) @@echo "Installing PHP SAPI module: $(PHP_SAPI)" -@@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) - -@@if test ! -r $(phptempdir)/libphp.$(SHLIB_DL_SUFFIX_NAME); then \ + -@@if test ! -r $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME); then \ for i in 0.0.0 0.0 0; do \ - if test -r $(phptempdir)/libphp.$(SHLIB_DL_SUFFIX_NAME).$$i; then \ - $(LN_S) $(phptempdir)/libphp.$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp.$(SHLIB_DL_SUFFIX_NAME); \ + if test -r $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME).$$i; then \ + $(LN_S) $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME); \ break; \ fi; \ done; \ @@@@ -122,7 +122,7 @@@@ clean: find . -name \*.la -o -name \*.a | xargs rm -f find . -name \*.so | xargs rm -f find . -name .libs -a -type d|xargs rm -rf - rm -f libphp.la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + rm -f libphp$(PHP_VER).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* rm -f ext/opcache/jit/zend_jit_x86.c rm -f ext/opcache/jit/zend_jit_arm64.c rm -f ext/opcache/minilua @@@@ -147,7 +147,7 @@@@ prof-clean: find . -name \*.lo -o -name \*.o | xargs rm -f find . -name \*.la -o -name \*.a | xargs rm -f find . -name \*.so | xargs rm -f - rm -f libphp.la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* + rm -f libphp$(PHP_VER).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/* prof-use: CCACHE_DISABLE=1 $(MAKE) PROF_FLAGS=-fprofile-use all @ 1.1 log @lang/php83: multiple PHP support @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- build/Makefile.global.orig 2024-12-17 11:39:23.000000000 +0000 d7 1 a7 1 @@@@ -15,22 +15,22 @@@@ build-modules: $(PHP_MODULES) $(PHP_ZEND d16 5 d41 1 a41 1 @@@@ -118,7 +118,7 @@@@ clean: d50 1 a50 1 @@@@ -143,7 +143,7 @@@@ prof-clean: @