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.59.18; author taca; state Exp; branches; next 1.1; commitid lWV9NwA5pn3riUQF; 1.1 date 2025.02.22.15.27.56; author taca; state Exp; branches; next ; commitid 09vYOZ688SojJtKF; desc @@ 1.2 log @lang/php84: update to 8.4.6 This is a bug fix release. PHP 8.4.6 (2025-04-10) BCMath: * Fixed pointer subtraction for scale. Core: * Fixed property hook backing value access in multi-level inheritance. * Fixed accidentally inherited default value in overridden virtual properties. * Fixed bug GH-17376 (Broken JIT polymorphism for property hooks added to child class). * Fixed bug GH-17913 (ReflectionFunction::isDeprecated() returns incorrect results for closures created from magic __call()). * Fixed bug GH-17941 (Stack-use-after-return with lazy objects and hooks). * Fixed bug GH-17988 (Incorrect handling of hooked props without get hook in get_object_vars()). * Fixed bug GH-17998 (Skipped lazy object initialization on primed SIMPLE_WRITE cache). * Fixed bug GH-17998 (Assignment to backing value in set hook of lazy proxy calls hook again). * 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 OSS-Fuzz #403308724. * Fixed bug GH-13193 again (Significant performance degradation in 'foreach'). DBA: * Fixed assertion violation when opening the same file with dba_open multiple times. DOM: * Fixed bug GH-17991 (Assertion failure dom_attr_value_write). * Fix weird unpack behaviour in DOM. * Fixed bug GH-18090 (DOM: Svg attributes and tag names are being lowercased). * Fix xinclude destruction of live attributes. 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). LDAP: * Fixed bug GH-18015 (Error messages for ldap_mod_replace are confusing). Mbstring: * Fixed bug GH-17989 (mb_output_handler crash with unset http_output_conv_mimetypes). Opcache: * Fixed bug GH-15834 (Segfault with hook "simple get" cache slot and minimal JIT). * Fixed bug GH-17966 (Symfony JIT 1205 assertion failure). * Fixed bug GH-18037 (SEGV Zend/zend_execute.c). * Fixed bug GH-18050 (IN_ARRAY optimization in DFA pass is broken). * Fixed bug GH-18113 (stack-buffer-overflow ext/opcache/jit/ir/ir_sccp.c). * 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. Standard: * Fix memory leaks in array_any() / array_all(). 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/22 15:27:56 taca Exp $ * Add ${PHP_VER} suffix. --- build/Makefile.global.orig 2025-04-08 19:55:31.000000000 +0000 +++ build/Makefile.global @@@@ -14,26 +14,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) --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.$(SHLIB_DL_SUFFIX_NAME); \ break; \ fi; \ done; \ @@@@ -121,7 +121,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/ir/gen_ir_fold_hash rm -f ext/opcache/jit/ir/minilua rm -f ext/opcache/jit/ir/ir_fold_hash.h @@@@ -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/php84: add package version 8.4.4 PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. It is modular, and object-oriented. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The language is designed to allow web developers to write dynamically generated pages quickly. PHP 8.4 comes with numerous improvements and new features such as * Property Hooks * Asymmetric Property Visibility * Lazy Objects * #[\Deprecated] attribute * Parsing RFC1867 (multipart) requests in non-POST HTTP requests * Chaining new expressions without parentheses * Improved Debugging Info for WeakReference * Improved Debugging Info for Closure * Defining Identical Symbols in Different Namespace Blocks * And much much more... @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- build/Makefile.global.orig 2025-01-15 01:03:17.000000000 +0000 d7 1 a7 1 @@@@ -14,22 +14,22 @@@@ build-modules: $(PHP_MODULES) $(PHP_ZEND d16 5 d37 1 a37 1 + $(LN_S) $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME).$$i $(phptempdir)/libphp$(PHP_VER).$(SHLIB_DL_SUFFIX_NAME); \ d41 1 a41 1 @@@@ -117,7 +117,7 @@@@ clean: d50 1 a50 1 @@@@ -143,7 +143,7 @@@@ prof-clean: @