aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MOVED1
-rw-r--r--lang/Makefile1
-rw-r--r--lang/php80-legacy/Makefile125
-rw-r--r--lang/php80-legacy/Makefile.inc67
-rw-r--r--lang/php80-legacy/distinfo3
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__API.h10
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__alloc.c138
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__alloc.h11
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__execute__API.c33
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__hash.c43
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__hash.h10
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__llist.c11
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__multiply.h20
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__strtod.c20
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__types.h35
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__vm__def.h41
-rw-r--r--lang/php80-legacy/files/patch-Zend_zend__vm__execute.h334
-rw-r--r--lang/php80-legacy/files/patch-build_Makefile.global19
-rw-r--r--lang/php80-legacy/files/patch-configure.ac45
-rw-r--r--lang/php80-legacy/files/patch-ext_libxml_libxml.c44
-rw-r--r--lang/php80-legacy/files/patch-ext_mysqli_mysqli__api.c12
-rw-r--r--lang/php80-legacy/files/patch-ext_mysqli_mysqli__nonapi.c12
-rw-r--r--lang/php80-legacy/files/patch-ext_mysqli_mysqli__prop.c12
-rw-r--r--lang/php80-legacy/files/patch-ext_mysqli_php__mysqli__structs.h11
-rw-r--r--lang/php80-legacy/files/patch-ext_openssl_openssl.c12
-rw-r--r--lang/php80-legacy/files/patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h11
-rw-r--r--lang/php80-legacy/files/patch-ext_posix_posix.c38
-rw-r--r--lang/php80-legacy/files/patch-ext_session_session.c11
-rw-r--r--lang/php80-legacy/files/patch-ext_zlib_zlib.c10
-rw-r--r--lang/php80-legacy/files/patch-main_SAPI.c26
-rw-r--r--lang/php80-legacy/files/patch-main_main.c29
-rw-r--r--lang/php80-legacy/files/patch-main_php__variables.c38
-rw-r--r--lang/php80-legacy/files/patch-main_rfc1867.c68
-rw-r--r--lang/php80-legacy/files/patch-sapi_apache2handler_config.m411
-rw-r--r--lang/php80-legacy/files/patch-sapi_fpm_config.m411
-rw-r--r--lang/php80-legacy/files/patch-sapi_fpm_www.conf.in17
-rw-r--r--lang/php80-legacy/files/php-fpm.in66
-rw-r--r--lang/php80-legacy/pkg-descr30
-rw-r--r--lang/php80-legacy/pkg-plist312
39 files changed, 1 insertions, 1747 deletions
diff --git a/MOVED b/MOVED
index a29bfe12bf1e..08206a05ebfb 100644
--- a/MOVED
+++ b/MOVED
@@ -5811,3 +5811,4 @@ deskutils/tasksh||2026-11-10|Has expired: No upstream activity over the last 4 y
games/polyglot||2026-11-10|Has expired: Obsolete software, original master site is no longer available
devel/p5-Device-USB||2026-11-10|Has expired: Upstream advises it as deprecated and noo longer suitable for use
sysutils/mapchan||2026-11-10|Has expired: Incomplete implementation and does not work as intended anymore
+lang/php80-legacy||2026-11-15|No longer required in the cluster
diff --git a/lang/Makefile b/lang/Makefile
index b0a8ac4f01db..b5e885651cfb 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -276,7 +276,6 @@
SUBDIR += pfe
SUBDIR += pharo
SUBDIR += php-mode.el
- SUBDIR += php80-legacy
SUBDIR += php82
SUBDIR += php82-extensions
SUBDIR += php83
diff --git a/lang/php80-legacy/Makefile b/lang/php80-legacy/Makefile
deleted file mode 100644
index ed1aef0e72c8..000000000000
--- a/lang/php80-legacy/Makefile
+++ /dev/null
@@ -1,125 +0,0 @@
-PORTNAME= php80
-DISTVERSION= 8.0.30
-PORTREVISION= 1
-CATEGORIES= lang devel www
-MASTER_SITES= PHP
-DISTNAME= php-${DISTVERSION}
-DIST_SUBDIR= php
-
-MAINTAINER= bofh@FreeBSD.org
-COMMENT= PHP Scripting Language
-WWW= https://www.php.net/
-
-LICENSE= PHP301
-
-.if !defined(WITH_CLUSTER_ALLOW_TECHNICAL_DEBTS)
-IGNORE= PHP 8.0 is EOL; set WITH_CLUSTER_ALLOW_TECHNICAL_DEBTS=yes in make.conf to build it
-.endif
-
-ONLY_FOR_ARCHS= amd64
-ONLY_FOR_ARCHS_REASON= only built and tested on amd64 for a single deployment
-
-BUILD_DEPENDS= re2c>0:devel/re2c
-LIB_DEPENDS= \
- libargon2.so:security/libargon2 \
- libcurl.so:ftp/curl \
- libfreetype.so:print/freetype2 \
- libgd.so:graphics/gd \
- libonig.so:devel/oniguruma \
- libpcre2-8.so:devel/pcre2 \
- libpng.so:graphics/png \
- libzip.so:archivers/libzip
-
-USES= autoreconf:build compiler:c11 cpe gettext gnome jpeg localbase \
- pkgconfig ssl tar:xz
-CPE_PRODUCT= php
-USE_GNOME= libxml2
-USE_RC_SUBR= php-fpm
-
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=\
- --disable-all \
- --disable-cgi \
- --enable-ctype \
- --enable-dom \
- --enable-fileinfo \
- --enable-filter \
- --enable-fpm \
- --enable-gd \
- --enable-mbstring \
- --enable-mysqlnd \
- --enable-opcache \
- --enable-pcntl \
- --enable-posix \
- --enable-simplexml \
- --program-prefix="" \
- --with-config-file-scan-dir=${PREFIX}/etc/php \
- --with-curl=${LOCALBASE} \
- --with-external-gd \
- --with-external-pcre=${LOCALBASE} \
- --with-fpm-user=${WWWOWN} \
- --with-fpm-group=${WWWGRP} \
- --with-gettext=${LOCALBASE} \
- --with-layout=GNU \
- --with-libxml \
- --with-mysqli=mysqlnd \
- --with-openssl \
- --with-password-argon2=${LOCALBASE} \
- --with-zip \
- --with-zlib=/usr
-CONFIGURE_ENV+= ac_cv_decimal_fp_supported="no" \
- lt_cv_path_SED="sed" \
- OPENSSL_CFLAGS="-I${OPENSSLINC}" \
- OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
- PHP_OPENSSL=yes
-
-DESTDIRNAME= INSTALL_ROOT
-
-LDFLAGS= -L${OPENSSLLIB} -lcrypto -lssl
-LIBS+= -lpthread
-
-CONFLICTS_INSTALL= php[0-9][0-9]${PKGNAMESUFFIX}
-
-PHP_SAPI=cli fpm
-
-OPTIONS_DEFINE=PHPDBG DEBUG DTRACE
-OPTIONS_SUB= yes
-
-PHPDBG_DESC= Interactive PHP debugger
-
-DEBUG_CONFIGURE_ENABLE=debug
-DTRACE_CONFIGURE_ENABLE=dtrace
-PHPDBG_CONFIGURE_ENABLE=phpdbg
-PHPDBG_VARS= PHP_SAPI+=phpdbg
-
-.include <bsd.port.options.mk>
-
-.if ( ${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
-CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L
-.endif
-
-.if ${PORT_OPTIONS:MPHPDBG} && ${PORT_OPTIONS:MDEBUG}
-CONFIGURE_ARGS+=--enable-phpdbg-debug
-.endif
-
-post-patch:
- @${TOUCH} ${WRKSRC}/ext/php_config.h
- @${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \
- ${WRKSRC}/sapi/fpm/php-fpm.conf.in
-
-pre-configure:
- @(cd ${WRKSRC} && ${SETENV} MAKE=${MAKE_CMD} ./buildconf --force)
-
-test: build
- @(cd ${WRKSRC} && ${MAKE} test)
-
-post-install:
- ${INSTALL_DATA} ${WRKSRC}/php.ini-development ${WRKSRC}/php.ini-production \
- ${STAGEDIR}/${PREFIX}/etc
- ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/php
- ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/sbin/php-fpm
-
-post-install-PHPDBG-on:
- ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/phpdbg
-
-.include <bsd.port.mk>
diff --git a/lang/php80-legacy/Makefile.inc b/lang/php80-legacy/Makefile.inc
deleted file mode 100644
index 40a3c05a910b..000000000000
--- a/lang/php80-legacy/Makefile.inc
+++ /dev/null
@@ -1,67 +0,0 @@
-PKGNAMEPREFIX= php80-
-
-.if !defined(WITH_CLUSTER_ALLOW_TECHNICAL_DEBTS)
-IGNORE= PHP 8.0 is EOL; set WITH_CLUSTER_ALLOW_TECHNICAL_DEBTS=yes in make.conf to build it
-.endif
-
-BUILD_DEPENDS= ${LOCALBASE}/bin/phpize:lang/php80-legacy \
- autoconf>0:devel/autoconf
-RUN_DEPENDS= ${LOCALBASE}/include/php/main/php.h:lang/php80-legacy
-
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--with-php-config=${LOCALBASE}/bin/php-config
-
-PHP_EXT_DIR= 20200930
-PHP_EXT_INI_FILE= etc/php/ext-${PHP_MOD_PRIO}-${PHP_MODNAME}.ini.sample
-PHP_HEADER_DIRS= .
-PHP_MOD_PRIO= 20
-PHP_MODNAME= ${PORTNAME}
-
-PLIST_SUB= PHP_EXT_DIR=${PHP_EXT_DIR}
-
-PHP_EXT_PKGMESSAGE= ${WRKDIR}/php-ext-pkg-message
-_PKGMESSAGES+= ${PHP_EXT_PKGMESSAGE}
-
-pre-configure:
- @${ECHO_MSG} "===> PHPizing for ${PKGNAME}"
- @(cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${LOCALBASE}/bin/phpize)
-
-do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
- @${INSTALL_LIB} ${WRKSRC}/modules/${PHP_MODNAME}.so \
- ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}
-.for header in ${PHP_HEADER_DIRS}
- @${MKDIR} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
- @${INSTALL_DATA} ${WRKSRC}/${header}/*.h \
- ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/${header}
-.endfor
- @${RM} ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
- @${EGREP} "#define (COMPILE|HAVE|USE)_" ${WRKSRC}/config.h \
- > ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME}/config.h
- @${MKDIR} ${STAGEDIR}${PREFIX}/etc/php
- @${ECHO_CMD} "extension=${PHP_MODNAME}.so" > ${STAGEDIR}${PREFIX}/${PHP_EXT_INI_FILE}
-
-post-stage:
- @${ECHO_CMD} "lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" \
- >> ${TMPPLIST}
- @${FIND} -P ${STAGEDIR}${PREFIX}/include/php/ext/${PHP_MODNAME} ! -type d 2>/dev/null | \
- ${SED} -ne 's,^${STAGEDIR}${PREFIX}/,,p' >> ${TMPPLIST}
- @${ECHO_CMD} "@postexec echo \#include \\\"ext/${PHP_MODNAME}/config.h\\\" >> %D/include/php/ext/php_config.h" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "@preunexec cp %D/include/php/ext/php_config.h %D/include/php/ext/php_config.h.orig" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "@preunexec grep -v ext/${PHP_MODNAME}/config.h %D/include/php/ext/php_config.h.orig > %D/include/php/ext/php_config.h || true" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "@preunexec ${RM} %D/include/php/ext/php_config.h.orig" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "@sample ${PHP_EXT_INI_FILE}" \
- >> ${TMPPLIST}
- @${ECHO_CMD} "[" > ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "{" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} " message: <<EOD" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "This file has been added to automatically load the installed extension:" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "${PREFIX}/${PHP_EXT_INI_FILE}" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "EOD" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} " type: install" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "}" >> ${PHP_EXT_PKGMESSAGE}
- @${ECHO_CMD} "]" >> ${PHP_EXT_PKGMESSAGE}
diff --git a/lang/php80-legacy/distinfo b/lang/php80-legacy/distinfo
deleted file mode 100644
index 319cd667cf03..000000000000
--- a/lang/php80-legacy/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1691355820
-SHA256 (php/php-8.0.30.tar.xz) = 216ab305737a5d392107112d618a755dc5df42058226f1670e9db90e77d777d9
-SIZE (php/php-8.0.30.tar.xz) = 10821076
diff --git a/lang/php80-legacy/files/patch-Zend_zend__API.h b/lang/php80-legacy/files/patch-Zend_zend__API.h
deleted file mode 100644
index 36c959525bbe..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__API.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- Zend/zend_API.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_API.h
-@@ -428,6 +428,7 @@ ZEND_API const char *zend_get_type_by_const(int type);
-
- #define array_init(arg) ZVAL_ARR((arg), zend_new_array(0))
- #define array_init_size(arg, size) ZVAL_ARR((arg), zend_new_array(size))
-+#define array_init_singleton(arg) ZVAL_ARR((arg), zend_new_array_singleton())
- ZEND_API void object_init(zval *arg);
- ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *ce);
- ZEND_API zend_result object_and_properties_init(zval *arg, zend_class_entry *ce, HashTable *properties);
diff --git a/lang/php80-legacy/files/patch-Zend_zend__alloc.c b/lang/php80-legacy/files/patch-Zend_zend__alloc.c
deleted file mode 100644
index fd7db8fc4564..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__alloc.c
+++ /dev/null
@@ -1,138 +0,0 @@
---- Zend/zend_alloc.c.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_alloc.c
-@@ -57,6 +57,7 @@
- #include "zend_operators.h"
- #include "zend_multiply.h"
- #include "zend_bitset.h"
-+#include "zend_execute.h"
- #include <signal.h>
-
- #ifdef HAVE_UNISTD_H
-@@ -363,9 +364,44 @@ static ZEND_COLD ZEND_NORETURN void zend_mm_panic(cons
- #if ZEND_DEBUG && defined(HAVE_KILL) && defined(HAVE_GETPID)
- kill(getpid(), SIGSEGV);
- #endif
-- exit(1);
-+ _exit(1);
- }
-
-+ZEND_API ZEND_COLD ZEND_NORETURN void zend_mm_safe_error_ex(const char *format, ...)
-+{
-+ zend_string *script_filename = NULL;
-+ uint32_t script_lineno = 0;
-+
-+ if (zend_is_executing()) {
-+ script_filename = zend_get_executed_filename_ex();
-+ script_lineno = zend_get_executed_lineno();
-+ } else if (zend_is_compiling()) {
-+ script_filename = zend_get_compiled_filename();
-+ script_lineno = zend_get_compiled_lineno();
-+ }
-+
-+ va_list args;
-+ va_start(args, format);
-+
-+ char buf[1024];
-+ vsnprintf(buf, sizeof(buf), format, args);
-+
-+ va_end(args);
-+
-+ fprintf(stderr,
-+ "\nFatal error: %s in %s on line %d\n",
-+ buf,
-+ script_filename ? ZSTR_VAL(script_filename) : "Unknown",
-+ script_lineno);
-+
-+ /* See http://support.microsoft.com/kb/190351 */
-+# ifdef ZEND_WIN32
-+ fflush(stderr);
-+# endif
-+
-+ _exit(1);
-+}
-+
- static ZEND_COLD ZEND_NORETURN void zend_mm_safe_error(zend_mm_heap *heap,
- const char *format,
- size_t limit,
-@@ -375,22 +411,14 @@ static ZEND_COLD ZEND_NORETURN void zend_mm_safe_error
- #endif
- size_t size)
- {
-+ (void) heap;
-
-- heap->overflow = 1;
-- zend_try {
-- zend_error_noreturn(E_ERROR,
-- format,
-- limit,
-+ zend_mm_safe_error_ex(format, limit,
- #if ZEND_DEBUG
-- filename,
-- lineno,
-+ filename,
-+ lineno,
- #endif
-- size);
-- } zend_catch {
-- } zend_end_try();
-- heap->overflow = 0;
-- zend_bailout();
-- exit(1);
-+ size);
- }
-
- #ifdef _WIN32
-@@ -1318,7 +1346,7 @@ static zend_always_inline void *zend_mm_alloc_heap(zen
- size = MAX(size, 1);
- size = ZEND_MM_ALIGNED_SIZE(size) + ZEND_MM_ALIGNED_SIZE(sizeof(zend_mm_debug_info));
- if (UNEXPECTED(size < real_size)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu + %zu)", ZEND_MM_ALIGNED_SIZE(real_size), ZEND_MM_ALIGNED_SIZE(sizeof(zend_mm_debug_info)));
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%zu + %zu)", ZEND_MM_ALIGNED_SIZE(real_size), ZEND_MM_ALIGNED_SIZE(sizeof(zend_mm_debug_info)));
- return NULL;
- }
- #endif
-@@ -1762,7 +1790,7 @@ static void *zend_mm_alloc_huge(zend_mm_heap *heap, si
- void *ptr;
-
- if (UNEXPECTED(new_size < size)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu + %zu)", size, alignment);
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%zu + %zu)", size, alignment);
- }
-
- #if ZEND_MM_LIMIT
-@@ -2618,7 +2646,7 @@ ZEND_API char* ZEND_FASTCALL _estrdup(const char *s ZE
-
- length = strlen(s);
- if (UNEXPECTED(length + 1 == 0)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (1 * %zu + 1)", length);
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (1 * %zu + 1)", length);
- }
- p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
- memcpy(p, s, length+1);
-@@ -2630,7 +2658,7 @@ ZEND_API char* ZEND_FASTCALL _estrndup(const char *s,
- char *p;
-
- if (UNEXPECTED(length + 1 == 0)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (1 * %zu + 1)", length);
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (1 * %zu + 1)", length);
- }
- p = (char *) _emalloc(length + 1 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
- memcpy(p, s, length);
-@@ -2644,7 +2672,7 @@ ZEND_API char* ZEND_FASTCALL zend_strndup(const char *
- char *p;
-
- if (UNEXPECTED(length + 1 == 0)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (1 * %zu + 1)", length);
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (1 * %zu + 1)", length);
- }
- p = (char *) malloc(length + 1);
- if (UNEXPECTED(p == NULL)) {
-@@ -3048,7 +3076,7 @@ static ZEND_COLD ZEND_NORETURN void zend_out_of_memory
- static ZEND_COLD ZEND_NORETURN void zend_out_of_memory(void)
- {
- fprintf(stderr, "Out of memory\n");
-- exit(1);
-+ _exit(1);
- }
-
- ZEND_API void * __zend_malloc(size_t len)
diff --git a/lang/php80-legacy/files/patch-Zend_zend__alloc.h b/lang/php80-legacy/files/patch-Zend_zend__alloc.h
deleted file mode 100644
index 517eafe03e9c..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__alloc.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- Zend/zend_alloc.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_alloc.h
-@@ -403,6 +403,8 @@ size_t zend_mm_globals_size(void);
- size_t zend_mm_globals_size(void);
- #endif
-
-+ZEND_API ZEND_COLD ZEND_NORETURN void zend_mm_safe_error_ex(const char *format, ...);
-+
- END_EXTERN_C()
-
- #endif
diff --git a/lang/php80-legacy/files/patch-Zend_zend__execute__API.c b/lang/php80-legacy/files/patch-Zend_zend__execute__API.c
deleted file mode 100644
index b6a24bbf97c2..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__execute__API.c
+++ /dev/null
@@ -1,33 +0,0 @@
---- Zend/zend_execute_API.c.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_execute_API.c
-@@ -334,10 +334,21 @@ void shutdown_executor(void) /* {{{ */
- gc_collect_cycles();
- }
- #endif
-+ } else {
-+ /* may be used by zend_error_zstr_at before init_executor */
-+ ZVAL_UNDEF(&EG(user_error_handler));
-+ ZVAL_UNDEF(&EG(user_exception_handler));
-+ memset(&EG(user_error_handlers_error_reporting), 0, sizeof(EG(user_error_handlers_error_reporting)));
-+ memset(&EG(user_error_handlers), 0, sizeof(EG(user_error_handlers)));
-+ memset(&EG(user_exception_handlers), 0, sizeof(EG(user_exception_handlers)));
- }
-
- zend_objects_store_free_object_storage(&EG(objects_store), fast_shutdown);
-
-+ /* may be used by zend_error_zstr_at before init_executor */
-+ EG(error_handling) = EH_NORMAL;
-+ EG(exception) = NULL;
-+
- zend_weakrefs_shutdown();
-
- zend_try {
-@@ -354,6 +365,8 @@ void shutdown_executor(void) /* {{{ */
- zend_hash_discard(EG(function_table), EG(persistent_functions_count));
- zend_hash_discard(EG(class_table), EG(persistent_classes_count));
- zend_cleanup_internal_classes();
-+ EG(objects_store).object_buckets = NULL;
-+ EG(objects_store).top = 1;
- } else {
- zend_vm_stack_destroy();
-
diff --git a/lang/php80-legacy/files/patch-Zend_zend__hash.c b/lang/php80-legacy/files/patch-Zend_zend__hash.c
deleted file mode 100644
index 521a319b111f..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__hash.c
+++ /dev/null
@@ -1,43 +0,0 @@
---- Zend/zend_hash.c.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_hash.c
-@@ -119,7 +119,7 @@ static zend_always_inline uint32_t zend_hash_check_siz
- if (nSize <= HT_MIN_SIZE) {
- return HT_MIN_SIZE;
- } else if (UNEXPECTED(nSize >= HT_MAX_SIZE)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%u * %zu + %zu)", nSize, sizeof(Bucket), sizeof(Bucket));
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%u * %zu + %zu)", nSize, sizeof(Bucket), sizeof(Bucket));
- }
-
- #ifdef ZEND_WIN32
-@@ -273,6 +273,13 @@ ZEND_API HashTable* ZEND_FASTCALL _zend_new_array_0(vo
- return ht;
- }
-
-+ZEND_API HashTable* ZEND_FASTCALL zend_new_array_singleton(void)
-+{
-+ HashTable *ht = _zend_new_array_0();
-+ ht->nTableSize = 1;
-+ return ht;
-+}
-+
- ZEND_API HashTable* ZEND_FASTCALL _zend_new_array(uint32_t nSize)
- {
- HashTable *ht = emalloc(sizeof(HashTable));
-@@ -304,7 +311,7 @@ static void ZEND_FASTCALL zend_hash_packed_grow(HashTa
- {
- HT_ASSERT_RC1(ht);
- if (ht->nTableSize >= HT_MAX_SIZE) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%u * %zu + %zu)", ht->nTableSize * 2, sizeof(Bucket), sizeof(Bucket));
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%u * %zu + %zu)", ht->nTableSize * 2, sizeof(Bucket), sizeof(Bucket));
- }
- ht->nTableSize += ht->nTableSize;
- HT_SET_DATA_ADDR(ht, perealloc2(HT_GET_DATA_ADDR(ht), HT_SIZE_EX(ht->nTableSize, HT_MIN_MASK), HT_USED_SIZE(ht), GC_FLAGS(ht) & IS_ARRAY_PERSISTENT));
-@@ -1190,7 +1197,7 @@ static void ZEND_FASTCALL zend_hash_do_resize(HashTabl
- pefree(old_data, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT);
- zend_hash_rehash(ht);
- } else {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%u * %zu + %zu)", ht->nTableSize * 2, sizeof(Bucket) + sizeof(uint32_t), sizeof(Bucket));
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%u * %zu + %zu)", ht->nTableSize * 2, sizeof(Bucket) + sizeof(uint32_t), sizeof(Bucket));
- }
- }
-
diff --git a/lang/php80-legacy/files/patch-Zend_zend__hash.h b/lang/php80-legacy/files/patch-Zend_zend__hash.h
deleted file mode 100644
index c308b33fce45..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__hash.h
+++ /dev/null
@@ -1,10 +0,0 @@
---- Zend/zend_hash.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_hash.h
-@@ -296,6 +296,7 @@ ZEND_API HashTable* ZEND_FASTCALL _zend_new_array_0(vo
- #endif
-
- ZEND_API HashTable* ZEND_FASTCALL _zend_new_array_0(void);
-+ZEND_API HashTable* ZEND_FASTCALL zend_new_array_singleton(void);
- ZEND_API HashTable* ZEND_FASTCALL _zend_new_array(uint32_t size);
- ZEND_API HashTable* ZEND_FASTCALL zend_new_pair(zval *val1, zval *val2);
- ZEND_API uint32_t zend_array_count(HashTable *ht);
diff --git a/lang/php80-legacy/files/patch-Zend_zend__llist.c b/lang/php80-legacy/files/patch-Zend_zend__llist.c
deleted file mode 100644
index 84fe172c1d7c..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__llist.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- Zend/zend_llist.c.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_llist.c
-@@ -112,6 +112,8 @@ ZEND_API void zend_llist_destroy(zend_llist *l)
- current = next;
- }
-
-+ l->head = NULL;
-+ l->tail = NULL;
- l->count = 0;
- }
-
diff --git a/lang/php80-legacy/files/patch-Zend_zend__multiply.h b/lang/php80-legacy/files/patch-Zend_zend__multiply.h
deleted file mode 100644
index 0e6b0f888e81..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__multiply.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- Zend/zend_multiply.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_multiply.h
-@@ -321,7 +321,7 @@ static zend_always_inline size_t zend_safe_address_gua
- size_t ret = zend_safe_address(nmemb, size, offset, &overflow);
-
- if (UNEXPECTED(overflow)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
-+ zend_mm_safe_error_ex("Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
- return 0;
- }
- return ret;
-@@ -334,7 +334,7 @@ static zend_always_inline size_t zend_safe_addmult(siz
- size_t ret = zend_safe_address(nmemb, size, offset, &overflow);
-
- if (UNEXPECTED(overflow)) {
-- zend_error_noreturn(E_ERROR, "Possible integer overflow in %s (%zu * %zu + %zu)", message, nmemb, size, offset);
-+ zend_mm_safe_error_ex("Possible integer overflow in %s (%zu * %zu + %zu)", message, nmemb, size, offset);
- return 0;
- }
- return ret;
diff --git a/lang/php80-legacy/files/patch-Zend_zend__strtod.c b/lang/php80-legacy/files/patch-Zend_zend__strtod.c
deleted file mode 100644
index 0617ee954ea4..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__strtod.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- Zend/zend_strtod.c.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_strtod.c
-@@ -603,7 +603,7 @@ Balloc
- rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong));
- if (!rv) {
- FREE_DTOA_LOCK(0);
-- zend_error_noreturn(E_ERROR, "Balloc() failed to allocate memory");
-+ zend_mm_safe_error_ex("Balloc() failed to allocate memory");
- }
- #else
- len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1)
-@@ -616,7 +616,7 @@ Balloc
- rv = (Bigint*)MALLOC(len*sizeof(double));
- if (!rv) {
- FREE_DTOA_LOCK(0);
-- zend_error_noreturn(E_ERROR, "Balloc() failed to allocate memory");
-+ zend_mm_safe_error_ex("Balloc() failed to allocate memory");
- }
- #endif
- rv->k = k;
diff --git a/lang/php80-legacy/files/patch-Zend_zend__types.h b/lang/php80-legacy/files/patch-Zend_zend__types.h
deleted file mode 100644
index 11135cb534c2..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__types.h
+++ /dev/null
@@ -1,35 +0,0 @@
---- Zend/zend_types.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_types.h
-@@ -439,17 +439,21 @@ struct _zend_array {
- # define HT_HASH_RESET(ht) do { \
- char *p = (char*)&HT_HASH(ht, (ht)->nTableMask); \
- size_t size = HT_HASH_SIZE((ht)->nTableMask); \
-- __m128i xmm0 = _mm_setzero_si128(); \
-- xmm0 = _mm_cmpeq_epi8(xmm0, xmm0); \
-- ZEND_ASSERT(size >= 64 && ((size & 0x3f) == 0)); \
-- do { \
-- _mm_storeu_si128((__m128i*)p, xmm0); \
-- _mm_storeu_si128((__m128i*)(p+16), xmm0); \
-- _mm_storeu_si128((__m128i*)(p+32), xmm0); \
-- _mm_storeu_si128((__m128i*)(p+48), xmm0); \
-- p += 64; \
-- size -= 64; \
-- } while (size != 0); \
-+ if (UNEXPECTED(size < 64)) { \
-+ memset(p, HT_INVALID_IDX, size); \
-+ } else { \
-+ __m128i xmm0 = _mm_setzero_si128(); \
-+ xmm0 = _mm_cmpeq_epi8(xmm0, xmm0); \
-+ ZEND_ASSERT(size >= 64 && ((size & 0x3f) == 0)); \
-+ do { \
-+ _mm_storeu_si128((__m128i*)p, xmm0); \
-+ _mm_storeu_si128((__m128i*)(p+16), xmm0); \
-+ _mm_storeu_si128((__m128i*)(p+32), xmm0); \
-+ _mm_storeu_si128((__m128i*)(p+48), xmm0); \
-+ p += 64; \
-+ size -= 64; \
-+ } while (size != 0); \
-+ } \
- } while (0)
- #else
- # define HT_HASH_RESET(ht) \
diff --git a/lang/php80-legacy/files/patch-Zend_zend__vm__def.h b/lang/php80-legacy/files/patch-Zend_zend__vm__def.h
deleted file mode 100644
index dae59405cb74..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__vm__def.h
+++ /dev/null
@@ -1,41 +0,0 @@
---- Zend/zend_vm_def.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_vm_def.h
-@@ -408,7 +408,7 @@ ZEND_VM_HANDLER(8, ZEND_CONCAT, CONST|TMPVAR|CV, CONST
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -417,6 +417,9 @@ ZEND_VM_HANDLER(8, ZEND_CONCAT, CONST|TMPVAR|CV, CONST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -3157,6 +3160,9 @@ ZEND_VM_COLD_CONSTCONST_HANDLER(53, ZEND_FAST_CONCAT,
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -3164,6 +3170,9 @@ ZEND_VM_COLD_CONSTCONST_HANDLER(53, ZEND_FAST_CONCAT,
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
diff --git a/lang/php80-legacy/files/patch-Zend_zend__vm__execute.h b/lang/php80-legacy/files/patch-Zend_zend__vm__execute.h
deleted file mode 100644
index ba565b3a58d5..000000000000
--- a/lang/php80-legacy/files/patch-Zend_zend__vm__execute.h
+++ /dev/null
@@ -1,334 +0,0 @@
---- Zend/zend_vm_execute.h.orig 2026-10-21 15:33:56 UTC
-+++ Zend/zend_vm_execute.h
-@@ -6348,6 +6348,9 @@ static ZEND_VM_COLD ZEND_OPCODE_HANDLER_RET ZEND_FASTC
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -6355,6 +6358,9 @@ static ZEND_VM_COLD ZEND_OPCODE_HANDLER_RET ZEND_FASTC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -8225,7 +8231,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -8234,6 +8240,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -8641,6 +8650,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -8648,6 +8660,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -10613,7 +10628,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -10622,6 +10637,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -11029,6 +11047,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -11036,6 +11057,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -14644,7 +14668,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -14653,6 +14677,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -15374,6 +15401,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -15381,6 +15411,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -16067,7 +16100,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -16076,6 +16109,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -16797,6 +16833,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -16804,6 +16843,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -17744,7 +17786,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -17753,6 +17795,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -18112,6 +18157,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -18119,6 +18167,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -39226,7 +39277,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -39235,6 +39286,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -41677,6 +41731,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -41684,6 +41741,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -42951,7 +43011,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -42960,6 +43020,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -45331,6 +45394,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -45338,6 +45404,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -48150,7 +48219,7 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- size_t len = ZSTR_LEN(op1_str);
-
- if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-- zend_error_noreturn(E_ERROR, "Integer overflow in memory allocation");
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
- }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -48159,6 +48228,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_CONC
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
-@@ -50629,6 +50701,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) {
- size_t len = ZSTR_LEN(op1_str);
-
-+ if (UNEXPECTED(len > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_extend(op1_str, len + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str) + len, ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
- ZVAL_NEW_STR(EX_VAR(opline->result.var), str);
-@@ -50636,6 +50711,9 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL ZEND_FAST
- zend_string_release_ex(op2_str, 0);
- }
- } else {
-+ if (UNEXPECTED(ZSTR_LEN(op1_str) > ZSTR_MAX_LEN - ZSTR_LEN(op2_str))) {
-+ zend_mm_safe_error_ex("Integer overflow in memory allocation");
-+ }
- str = zend_string_alloc(ZSTR_LEN(op1_str) + ZSTR_LEN(op2_str), 0);
- memcpy(ZSTR_VAL(str), ZSTR_VAL(op1_str), ZSTR_LEN(op1_str));
- memcpy(ZSTR_VAL(str) + ZSTR_LEN(op1_str), ZSTR_VAL(op2_str), ZSTR_LEN(op2_str)+1);
diff --git a/lang/php80-legacy/files/patch-build_Makefile.global b/lang/php80-legacy/files/patch-build_Makefile.global
deleted file mode 100644
index 4b838d157941..000000000000
--- a/lang/php80-legacy/files/patch-build_Makefile.global
+++ /dev/null
@@ -1,19 +0,0 @@
---- build/Makefile.global.orig 2019-08-06 06:54:07 UTC
-+++ build/Makefile.global
-@@ -89,14 +89,14 @@ test: all
- @if test ! -z "$(PHP_EXECUTABLE)" && test -x "$(PHP_EXECUTABLE)"; then \
- INI_FILE=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r 'echo php_ini_loaded_file();' 2> /dev/null`; \
- if test "$$INI_FILE"; then \
-- $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini; \
-+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_FILE" > $(top_builddir)/tmp-php.ini || :; \
- else \
- echo > $(top_builddir)/tmp-php.ini; \
- fi; \
- INI_SCANNED_PATH=`$(PHP_EXECUTABLE) -d 'display_errors=stderr' -r '$$a = explode(",\n", trim(php_ini_scanned_files())); echo $$a[0];' 2> /dev/null`; \
- if test "$$INI_SCANNED_PATH"; then \
- INI_SCANNED_PATH=`$(top_srcdir)/build/shtool path -d $$INI_SCANNED_PATH`; \
-- $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini; \
-+ $(EGREP) -h -v $(PHP_DEPRECATED_DIRECTIVES_REGEX) "$$INI_SCANNED_PATH"/*.ini >> $(top_builddir)/tmp-php.ini || :; \
- fi; \
- TEST_PHP_EXECUTABLE=$(PHP_EXECUTABLE) \
- TEST_PHP_SRCDIR=$(top_srcdir) \
diff --git a/lang/php80-legacy/files/patch-configure.ac b/lang/php80-legacy/files/patch-configure.ac
deleted file mode 100644
index 09dc2448b502..000000000000
--- a/lang/php80-legacy/files/patch-configure.ac
+++ /dev/null
@@ -1,45 +0,0 @@
---- configure.ac.orig 2023-06-07 17:25:45 UTC
-+++ configure.ac
-@@ -55,6 +55,7 @@ AH_BOTTOM([
-
- #include <string.h>
-
-+#include <ext/php_config.h>
- #endif /* PHP_CONFIG_H */
- ])
-
-@@ -273,7 +274,6 @@ sinclude(Zend/Zend.m4)
-
- dnl ----------------------------------------------------------------------------
-
--PTHREADS_CHECK
- PHP_HELP_SEPARATOR([SAPI modules:])
- PHP_SHLIB_SUFFIX_NAMES
- PHP_BUILD_PROGRAM
-@@ -613,7 +613,7 @@ memmem \
- AX_FUNC_WHICH_GETHOSTBYNAME_R
-
- dnl Some systems (like OpenSolaris) do not have nanosleep in libc.
--PHP_CHECK_FUNC_LIB(nanosleep, rt)
-+PHP_CHECK_FUNC(nanosleep, rt)
-
- dnl Haiku does not have network api in libc.
- PHP_CHECK_FUNC_LIB(setsockopt, network)
-@@ -1262,7 +1262,7 @@ EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
- EXPANDED_DATADIR=$datadir
- EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
- EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
--INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
-+INCLUDE_PATH=.:${prefix}/share/pear
-
- exec_prefix=$old_exec_prefix
- libdir=$old_libdir
-@@ -1449,7 +1449,7 @@ PHP_SUBST(all_targets)
- PHP_SUBST(install_targets)
- PHP_SUBST(install_binary_targets)
-
--PHP_INSTALL_HEADERS([Zend/ TSRM/ include/ main/ main/streams/])
-+PHP_INSTALL_HEADERS([Zend/ TSRM/ main/ main/streams/])
-
- PHP_ADD_SOURCES(TSRM, TSRM.c, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
-
diff --git a/lang/php80-legacy/files/patch-ext_libxml_libxml.c b/lang/php80-legacy/files/patch-ext_libxml_libxml.c
deleted file mode 100644
index 4f7aa403adce..000000000000
--- a/lang/php80-legacy/files/patch-ext_libxml_libxml.c
+++ /dev/null
@@ -1,44 +0,0 @@
---- ext/libxml/libxml.c.orig 2023-08-03 17:13:08 UTC
-+++ ext/libxml/libxml.c
-@@ -428,7 +428,7 @@ php_libxml_output_buffer_create_filename(const char *U
- static xmlOutputBufferPtr
- php_libxml_output_buffer_create_filename(const char *URI,
- xmlCharEncodingHandlerPtr encoder,
-- int compression ATTRIBUTE_UNUSED)
-+ int compression ZEND_ATTRIBUTE_UNUSED)
- {
- xmlOutputBufferPtr ret;
- xmlURIPtr puri;
-@@ -481,7 +481,11 @@ static void _php_libxml_free_error(void *ptr)
- xmlResetError((xmlErrorPtr) ptr);
- }
-
-+#if LIBXML_VERSION >= 21200
-+static void _php_list_set_error_structure(const xmlError *error, const char *msg)
-+#else
- static void _php_list_set_error_structure(xmlErrorPtr error, const char *msg)
-+#endif
- {
- xmlError error_copy;
- int ret;
-@@ -732,7 +736,11 @@ PHP_LIBXML_API void php_libxml_ctx_warning(void *ctx,
- va_end(args);
- }
-
-+#if LIBXML_VERSION >= 21200
-+PHP_LIBXML_API void php_libxml_structured_error_handler(void *userData, const xmlError *error)
-+#else
- PHP_LIBXML_API void php_libxml_structured_error_handler(void *userData, xmlErrorPtr error)
-+#endif
- {
- _php_list_set_error_structure(error, NULL);
-
-@@ -1035,7 +1043,7 @@ PHP_FUNCTION(libxml_get_last_error)
- /* {{{ Retrieve last error from libxml */
- PHP_FUNCTION(libxml_get_last_error)
- {
-- xmlErrorPtr error;
-+ const xmlError *error;
-
- ZEND_PARSE_PARAMETERS_NONE();
-
diff --git a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__api.c b/lang/php80-legacy/files/patch-ext_mysqli_mysqli__api.c
deleted file mode 100644
index 535503954e3d..000000000000
--- a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__api.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- ext/mysqli/mysqli_api.c.orig 2020-09-29 22:36:51 UTC
-+++ ext/mysqli/mysqli_api.c
-@@ -29,7 +29,9 @@
- #include "zend_smart_str.h"
- #include "php_mysqli_structs.h"
- #include "mysqli_priv.h"
-+#if defined(MYSQLI_USE_MYSQLND)
- #include "ext/mysqlnd/mysql_float_to_double.h"
-+#endif
-
- #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num))
-
diff --git a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__nonapi.c b/lang/php80-legacy/files/patch-ext_mysqli_mysqli__nonapi.c
deleted file mode 100644
index ddcd59d8aaa4..000000000000
--- a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__nonapi.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- ext/mysqli/mysqli_nonapi.c.orig 2023-06-07 17:25:45 UTC
-+++ ext/mysqli/mysqli_nonapi.c
-@@ -26,7 +26,9 @@
- #include "php_ini.h"
- #include "ext/standard/info.h"
- #include "zend_smart_str.h"
-+#if defined(MYSQLI_USE_MYSQLND)
- #include "php_mysqli_structs.h"
-+#endif
- #include "mysqli_priv.h"
- #define ERROR_ARG_POS(arg_num) (getThis() ? (arg_num-1) : (arg_num))
-
diff --git a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__prop.c b/lang/php80-legacy/files/patch-ext_mysqli_mysqli__prop.c
deleted file mode 100644
index 10a1da771df9..000000000000
--- a/lang/php80-legacy/files/patch-ext_mysqli_mysqli__prop.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- ext/mysqli/mysqli_prop.c.orig 2023-06-07 17:25:45 UTC
-+++ ext/mysqli/mysqli_prop.c
-@@ -24,7 +24,9 @@
- #include "php.h"
- #include "php_ini.h"
- #include "ext/standard/info.h"
-+#if defined(MYSQLI_USE_MYSQLND)
- #include "php_mysqli_structs.h"
-+#endif
- #include "mysqli_priv.h"
-
- #define CHECK_STATUS(value, quiet) \
diff --git a/lang/php80-legacy/files/patch-ext_mysqli_php__mysqli__structs.h b/lang/php80-legacy/files/patch-ext_mysqli_php__mysqli__structs.h
deleted file mode 100644
index 8ec5c54d9890..000000000000
--- a/lang/php80-legacy/files/patch-ext_mysqli_php__mysqli__structs.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- ext/mysqli/php_mysqli_structs.h.orig 2023-06-07 17:25:45 UTC
-+++ ext/mysqli/php_mysqli_structs.h
-@@ -34,7 +34,7 @@
- #define FALSE 0
- #endif
-
--#ifdef MYSQLI_USE_MYSQLND
-+#if defined(MYSQLI_USE_MYSQLND)
- #include "ext/mysqlnd/mysqlnd.h"
- #include "mysqli_mysqlnd.h"
- #else
diff --git a/lang/php80-legacy/files/patch-ext_openssl_openssl.c b/lang/php80-legacy/files/patch-ext_openssl_openssl.c
deleted file mode 100644
index 61ed805aa166..000000000000
--- a/lang/php80-legacy/files/patch-ext_openssl_openssl.c
+++ /dev/null
@@ -1,12 +0,0 @@
---- ext/openssl/openssl.c.orig 2023-08-02 14:33:58 UTC
-+++ ext/openssl/openssl.c
-@@ -1325,7 +1325,9 @@ PHP_MINIT_FUNCTION(openssl)
- REGISTER_LONG_CONSTANT("OPENSSL_CMS_NOSIGS", CMS_NOSIGS, CONST_CS|CONST_PERSISTENT);
-
- REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_PADDING", RSA_PKCS1_PADDING, CONST_CS|CONST_PERSISTENT);
-+#if OPENSSL_VERSION_NUMBER < 0x30000000
- REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
-+#endif
- REGISTER_LONG_CONSTANT("OPENSSL_NO_PADDING", RSA_NO_PADDING, CONST_CS|CONST_PERSISTENT);
- REGISTER_LONG_CONSTANT("OPENSSL_PKCS1_OAEP_PADDING", RSA_PKCS1_OAEP_PADDING, CONST_CS|CONST_PERSISTENT);
-
diff --git a/lang/php80-legacy/files/patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h b/lang/php80-legacy/files/patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h
deleted file mode 100644
index a77bd2dd4d91..000000000000
--- a/lang/php80-legacy/files/patch-ext_pcre_pcre2lib_sljit_sljitConfigInternal.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- ext/pcre/pcre2lib/sljit/sljitConfigInternal.h.orig 2023-06-07 17:25:45 UTC
-+++ ext/pcre/pcre2lib/sljit/sljitConfigInternal.h
-@@ -317,7 +317,7 @@ extern "C" {
- /* Instruction cache flush. */
- /****************************/
-
--#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin)
-+#if (!defined SLJIT_CACHE_FLUSH && defined __has_builtin && !defined SLJIT_CONFIG_PPC_32)
- #if __has_builtin(__builtin___clear_cache)
-
- #define SLJIT_CACHE_FLUSH(from, to) \
diff --git a/lang/php80-legacy/files/patch-ext_posix_posix.c b/lang/php80-legacy/files/patch-ext_posix_posix.c
deleted file mode 100644
index c7b2b3f81503..000000000000
--- a/lang/php80-legacy/files/patch-ext_posix_posix.c
+++ /dev/null
@@ -1,38 +0,0 @@
---- ext/posix/posix.c.orig 2023-08-03 17:13:08 UTC
-+++ ext/posix/posix.c
-@@ -795,7 +795,7 @@ PHP_FUNCTION(posix_getgrnam)
- #if defined(ZTS) && defined(HAVE_GETGRNAM_R) && defined(_SC_GETGR_R_SIZE_MAX)
- buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
- if (buflen < 1) {
-- RETURN_FALSE;
-+ buflen = 1024;
- }
- buf = emalloc(buflen);
- try_again:
-@@ -851,7 +851,7 @@ PHP_FUNCTION(posix_getgrgid)
-
- grbuflen = sysconf(_SC_GETGR_R_SIZE_MAX);
- if (grbuflen < 1) {
-- RETURN_FALSE;
-+ grbuflen = 1024;
- }
-
- grbuf = emalloc(grbuflen);
-@@ -925,7 +925,7 @@ PHP_FUNCTION(posix_getpwnam)
- #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWNAM_R)
- buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
- if (buflen < 1) {
-- RETURN_FALSE;
-+ buflen = 1024;
- }
- buf = emalloc(buflen);
- pw = &pwbuf;
-@@ -980,7 +980,7 @@ PHP_FUNCTION(posix_getpwuid)
- #if defined(ZTS) && defined(_SC_GETPW_R_SIZE_MAX) && defined(HAVE_GETPWUID_R)
- pwbuflen = sysconf(_SC_GETPW_R_SIZE_MAX);
- if (pwbuflen < 1) {
-- RETURN_FALSE;
-+ pwbuflen = 1024;
- }
- pwbuf = emalloc(pwbuflen);
-
diff --git a/lang/php80-legacy/files/patch-ext_session_session.c b/lang/php80-legacy/files/patch-ext_session_session.c
deleted file mode 100644
index 1eca3a98037e..000000000000
--- a/lang/php80-legacy/files/patch-ext_session_session.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- ext/session/session.c.orig 2026-10-21 15:33:56 UTC
-+++ ext/session/session.c
-@@ -3017,7 +3017,7 @@ static int php_session_rfc1867_callback(unsigned int e
- if (php_session_rfc1867_orig_callback) {
- retval = php_session_rfc1867_orig_callback(event, event_data, extra);
- }
-- if (!PS(rfc1867_enabled)) {
-+ if (!PS(rfc1867_enabled) || true) {
- return retval;
- }
-
diff --git a/lang/php80-legacy/files/patch-ext_zlib_zlib.c b/lang/php80-legacy/files/patch-ext_zlib_zlib.c
deleted file mode 100644
index 3918357c13ac..000000000000
--- a/lang/php80-legacy/files/patch-ext_zlib_zlib.c
+++ /dev/null
@@ -1,10 +0,0 @@
---- ext/zlib/zlib.c.orig 2026-10-22 02:28:48 UTC
-+++ ext/zlib/zlib.c
-@@ -1420,6 +1420,7 @@ static PHP_RINIT_FUNCTION(zlib)
- /* {{{ PHP_RINIT_FUNCTION */
- static PHP_RINIT_FUNCTION(zlib)
- {
-+ ZLIBG(output_compression) = 0;
- ZLIBG(compression_coding) = 0;
- if (!ZLIBG(handler_registered)) {
- ZLIBG(output_compression) = ZLIBG(output_compression_default);
diff --git a/lang/php80-legacy/files/patch-main_SAPI.c b/lang/php80-legacy/files/patch-main_SAPI.c
deleted file mode 100644
index cf4231e744de..000000000000
--- a/lang/php80-legacy/files/patch-main_SAPI.c
+++ /dev/null
@@ -1,26 +0,0 @@
---- main/SAPI.c.orig 2026-10-21 15:33:56 UTC
-+++ main/SAPI.c
-@@ -503,18 +503,23 @@ SAPI_API void sapi_deactivate_module(void)
- }
- if (SG(request_info).auth_user) {
- efree(SG(request_info).auth_user);
-+ SG(request_info).auth_user = NULL;
- }
- if (SG(request_info).auth_password) {
- efree(SG(request_info).auth_password);
-+ SG(request_info).auth_password = NULL;
- }
- if (SG(request_info).auth_digest) {
- efree(SG(request_info).auth_digest);
-+ SG(request_info).auth_digest = NULL;
- }
- if (SG(request_info).content_type_dup) {
- efree(SG(request_info).content_type_dup);
-+ SG(request_info).content_type_dup = NULL;
- }
- if (SG(request_info).current_user) {
- efree(SG(request_info).current_user);
-+ SG(request_info).current_user = NULL;
- }
- if (sapi_module.deactivate) {
- sapi_module.deactivate();
diff --git a/lang/php80-legacy/files/patch-main_main.c b/lang/php80-legacy/files/patch-main_main.c
deleted file mode 100644
index ef62a3bac3ad..000000000000
--- a/lang/php80-legacy/files/patch-main_main.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- main/main.c.orig 2026-10-21 15:33:56 UTC
-+++ main/main.c
-@@ -1847,6 +1847,8 @@ void php_request_shutdown(void *dummy)
-
- for (i=0; i<NUM_TRACK_VARS; i++) {
- zval_ptr_dtor(&PG(http_globals)[i]);
-+ /* May be accessed before php_request_startup() */
-+ ZVAL_UNDEF(&PG(http_globals)[i]);
- }
- } zend_end_try();
-
-@@ -1878,6 +1880,7 @@ void php_request_shutdown(void *dummy)
-
- /* 15. Free Willy (here be crashes) */
- zend_interned_strings_deactivate();
-+ clear_last_error();
- zend_try {
- shutdown_memory_manager(CG(unclean_shutdown) || !report_memleaks, 0);
- } zend_end_try();
-@@ -1901,6 +1904,9 @@ void php_request_shutdown(void *dummy)
- #ifdef HAVE_DTRACE
- DTRACE_REQUEST_SHUTDOWN(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), (char *)SAFE_FILENAME(SG(request_info).request_method));
- #endif /* HAVE_DTRACE */
-+
-+ /* May be accessed before php_request_startup() */
-+ PG(modules_activated) = 0;
- }
- /* }}} */
-
diff --git a/lang/php80-legacy/files/patch-main_php__variables.c b/lang/php80-legacy/files/patch-main_php__variables.c
deleted file mode 100644
index 489b4b796f54..000000000000
--- a/lang/php80-legacy/files/patch-main_php__variables.c
+++ /dev/null
@@ -1,38 +0,0 @@
---- main/php_variables.c.orig 2026-10-21 15:33:56 UTC
-+++ main/php_variables.c
-@@ -213,7 +213,7 @@ PHPAPI void php_register_variable_ex(const char *var_n
- }
-
- if (!index) {
-- array_init(&gpc_element);
-+ array_init_singleton(&gpc_element);
- if ((gpc_element_p = zend_hash_next_index_insert(symtable1, &gpc_element)) == NULL) {
- zend_array_destroy(Z_ARR(gpc_element));
- zval_ptr_dtor_nogc(val);
-@@ -224,7 +224,7 @@ PHPAPI void php_register_variable_ex(const char *var_n
- gpc_element_p = zend_symtable_str_find(symtable1, index, index_len);
- if (!gpc_element_p) {
- zval tmp;
-- array_init(&tmp);
-+ array_init_singleton(&tmp);
- gpc_element_p = zend_symtable_str_update_ind(symtable1, index, index_len, &tmp);
- } else {
- if (Z_TYPE_P(gpc_element_p) == IS_INDIRECT) {
-@@ -232,7 +232,7 @@ PHPAPI void php_register_variable_ex(const char *var_n
- }
- if (Z_TYPE_P(gpc_element_p) != IS_ARRAY) {
- zval_ptr_dtor_nogc(gpc_element_p);
-- array_init(gpc_element_p);
-+ array_init_singleton(gpc_element_p);
- } else {
- SEPARATE_ARRAY(gpc_element_p);
- }
-@@ -424,7 +424,7 @@ SAPI_API SAPI_TREAT_DATA_FUNC(php_default_treat_data)
- case PARSE_POST:
- case PARSE_GET:
- case PARSE_COOKIE:
-- array_init(&array);
-+ array_init_singleton(&array);
- switch (arg) {
- case PARSE_POST:
- zval_ptr_dtor_nogc(&PG(http_globals)[TRACK_VARS_POST]);
diff --git a/lang/php80-legacy/files/patch-main_rfc1867.c b/lang/php80-legacy/files/patch-main_rfc1867.c
deleted file mode 100644
index 68fc91bfeaa4..000000000000
--- a/lang/php80-legacy/files/patch-main_rfc1867.c
+++ /dev/null
@@ -1,68 +0,0 @@
---- main/rfc1867.c.orig 2026-10-21 15:33:56 UTC
-+++ main/rfc1867.c
-@@ -390,6 +390,14 @@ static int find_boundary(multipart_buffer *self, char
- return 0;
- }
-
-+static zend_bool php_mime_should_save_hdr(const char *name)
-+{
-+ return !strcasecmp(name, "Content-Disposition")
-+ || !strcasecmp(name, "Content-Type");
-+}
-+
-+static char *php_mime_get_hdr_value(zend_llist header, char *key);
-+
- /* parse headers */
- static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header)
- {
-@@ -430,10 +438,16 @@ static int multipart_buffer_headers(multipart_buffer *
- }
-
- *value = '\0';
-- do { value++; } while (isspace(*value));
-
-- key = estrdup(line);
-- smart_string_appends(&buf_value, value);
-+ /* Keep only headers we use, and ignore duplicates */
-+ if (!php_mime_should_save_hdr(line)
-+ || php_mime_get_hdr_value(*header, line)) {
-+ key = NULL;
-+ } else {
-+ key = estrdup(line);
-+ do { value++; } while (isspace((unsigned char)*value));
-+ smart_string_appends(&buf_value, value);
-+ }
- } else if (buf_value.c) { /* If no ':' on the line, add to previous line */
- smart_string_appends(&buf_value, line);
- } else {
-@@ -507,11 +521,11 @@ static char *php_ap_getword(const zend_encoding *encod
- return res;
- }
-
--static char *substring_conf(char *start, int len, char quote)
-+static char *substring_conf(char *start, size_t len, char quote)
- {
- char *result = emalloc(len + 1);
- char *resp = result;
-- int i;
-+ size_t i;
-
- for (i = 0; i < len && start[i] != quote; ++i) {
- if (start[i] == '\\' && (start[i + 1] == '\\' || (quote && start[i + 1] == quote))) {
-@@ -539,14 +553,14 @@ static char *php_ap_getword_conf(const zend_encoding *
- char quote = *str;
-
- str++;
-- return substring_conf(str, (int)strlen(str), quote);
-+ return substring_conf(str, strlen(str), quote);
- } else {
- char *strend = str;
-
- while (*strend && !isspace(*strend)) {
- ++strend;
- }
-- return substring_conf(str, strend - str, 0);
-+ return substring_conf(str, (size_t)(strend - str), 0);
- }
- }
-
diff --git a/lang/php80-legacy/files/patch-sapi_apache2handler_config.m4 b/lang/php80-legacy/files/patch-sapi_apache2handler_config.m4
deleted file mode 100644
index d37a48a6f992..000000000000
--- a/lang/php80-legacy/files/patch-sapi_apache2handler_config.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- sapi/apache2handler/config.m4.orig 2023-06-07 17:25:45 UTC
-+++ sapi/apache2handler/config.m4
-@@ -64,7 +64,7 @@ if test "$PHP_APXS2" != "no"; then
- fi
-
- APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
-- if test -z `$APXS -q SYSCONFDIR`; then
-+ if true; then
- INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
- $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
- -i -n php"
diff --git a/lang/php80-legacy/files/patch-sapi_fpm_config.m4 b/lang/php80-legacy/files/patch-sapi_fpm_config.m4
deleted file mode 100644
index 405191af8422..000000000000
--- a/lang/php80-legacy/files/patch-sapi_fpm_config.m4
+++ /dev/null
@@ -1,11 +0,0 @@
---- sapi/fpm/config.m4.orig 2023-06-07 17:25:45 UTC
-+++ sapi/fpm/config.m4
-@@ -315,7 +315,7 @@ AC_DEFUN([AC_FPM_LQ],
- AC_MSG_RESULT([no])
- ])
-
-- if test "$have_lq" = "tcp_info"; then
-+ if test "$have_lq" = "so_listenq"; then
- AC_DEFINE([HAVE_LQ_TCP_INFO], 1, [do we have TCP_INFO?])
- fi
-
diff --git a/lang/php80-legacy/files/patch-sapi_fpm_www.conf.in b/lang/php80-legacy/files/patch-sapi_fpm_www.conf.in
deleted file mode 100644
index c7e7fe399854..000000000000
--- a/lang/php80-legacy/files/patch-sapi_fpm_www.conf.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- sapi/fpm/www.conf.in.orig 2019-01-26 15:54:27 UTC
-+++ sapi/fpm/www.conf.in
-@@ -27,10 +27,14 @@ group = @php_fpm_group@
- ; Valid syntaxes are:
- ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on
- ; a specific port;
-+; '0.0.0.0:port' - to listen on a TCP socket to all IPv4 addresses on
-+; a specific port;
- ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on
- ; a specific port;
- ; 'port' - to listen on a TCP socket to all addresses
- ; (IPv6 and IPv4-mapped) on a specific port;
-+; Note: IPv4-mapped addresses are disabled by-default in
-+; FreeBSD for security reasons;
- ; '/path/to/unix/socket' - to listen on a unix socket.
- ; Note: This value is mandatory.
- listen = 127.0.0.1:9000
diff --git a/lang/php80-legacy/files/php-fpm.in b/lang/php80-legacy/files/php-fpm.in
deleted file mode 100644
index c234856b0e54..000000000000
--- a/lang/php80-legacy/files/php-fpm.in
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-# PROVIDE: php-fpm
-# REQUIRE: LOGIN
-# KEYWORD: shutdown
-
-#
-# Add the following line to /etc/rc.conf to enable php-fpm:
-# php_fpm_enable="YES"
-#
-
-. /etc/rc.subr
-
-name="php_fpm"
-rcvar=php_fpm_enable
-
-start_precmd="php_fpm_prestart"
-restart_precmd="php_fpm_checkconfig"
-reload_precmd="php_fpm_checkconfig"
-configtest_cmd="php_fpm_checkconfig"
-
-load_rc_config "$name"
-
-: ${php_fpm_enable="NO"}
-: ${php_fpm_umask=""}
-
-extra_commands="reload configtest logrotate"
-
-command="%%PREFIX%%/sbin/php-fpm"
-pidfile="/var/run/php-fpm.pid"
-sig_stop="QUIT"
-sig_reload="USR2"
-logrotate_cmd="php_fpm_logrotate"
-
-required_files="%%PREFIX%%/etc/php-fpm.conf"
-
-php_fpm_logrotate() {
- if [ -z "$rc_pid" ]; then
- _run_rc_notrunning
- return 1
- fi
- echo "Rotating logs $name."
- kill -USR1 $rc_pid
-}
-
-php_fpm_checkconfig()
-{
- echo "Performing sanity check on php-fpm configuration:"
- eval ${command} -t
-}
-
-php_fpm_prestart()
-{
- php_fpm_checkconfig
- checkconfig=$?
- if [ $checkconfig -ne 0 ]; then
- return $checkconfig
- fi
-
- if [ ! -z "$php_fpm_umask" ]; then
- echo "Setting umask to: ${php_fpm_umask}"
- umask $php_fpm_umask
- fi
-}
-
-run_rc_command "$1"
diff --git a/lang/php80-legacy/pkg-descr b/lang/php80-legacy/pkg-descr
deleted file mode 100644
index 75cc3c0c25e8..000000000000
--- a/lang/php80-legacy/pkg-descr
+++ /dev/null
@@ -1,30 +0,0 @@
-PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used
-Open Source general-purpose scripting language that is especially suited
-for Web development and can be embedded into HTML. Its syntax draws
-upon C, Java, and Perl, and is easy to learn. The main goal of the
-language is to allow web developers to write dynamically generated
-webpages quickly, but you can do much more with PHP.
-
-* THIS IS A LIMITED PORT. DO NOT USE IT UNLESS YOU KNOW WHY IT EXISTS. *
-
-PHP 8.0 has been end of life since 2023-11-26 and receives no upstream
-security fixes. This port is kept in the tree only for a single
-deployment that still requires PHP 8.0. It is IGNOREd by default and is
-not built on the official package builders. It is only built when the
-builder operator explicitly sets WITH_PHP80_ALLOW_TECHNICAL_DEBTS=yes in
-make.conf.
-
-Differences from the other lang/phpXX ports:
-
-- PHP is built statically with only the extensions needed by that
- deployment. There are no separate php80-<extension> packages, and this
- port does not use the USE_PHP framework or php.mk.
-- Extensions cannot be added at runtime through extension= lines. Adding
- an extension requires changing the port and rebuilding it.
-- It may not build against current versions of its dependencies without
- local patches (for example, recent libxml2 releases).
-- Security fixes for libraries PHP links against are only picked up when
- this port is rebuilt.
-- No support is offered. Do not report problems with this port to the
- PHP maintainers, and do not make other ports depend on it. For
- anything else, use a supported PHP version.
diff --git a/lang/php80-legacy/pkg-plist b/lang/php80-legacy/pkg-plist
deleted file mode 100644
index a74797167016..000000000000
--- a/lang/php80-legacy/pkg-plist
+++ /dev/null
@@ -1,312 +0,0 @@
-bin/php
-bin/php-config
-%%PHPDBG%%bin/phpdbg
-bin/phpize
-sbin/php-fpm
-etc/php.ini-development
-etc/php.ini-production
-@sample etc/php-fpm.conf.default etc/php-fpm.conf
-@sample etc/php-fpm.d/www.conf.default etc/php-fpm.d/www.conf
-include/php/TSRM/TSRM.h
-include/php/TSRM/tsrm_win32.h
-include/php/Zend/zend.h
-include/php/Zend/zend_API.h
-include/php/Zend/zend_alloc.h
-include/php/Zend/zend_alloc_sizes.h
-include/php/Zend/zend_arena.h
-include/php/Zend/zend_ast.h
-include/php/Zend/zend_attributes.h
-include/php/Zend/zend_attributes_arginfo.h
-include/php/Zend/zend_bitset.h
-include/php/Zend/zend_build.h
-include/php/Zend/zend_builtin_functions.h
-include/php/Zend/zend_builtin_functions_arginfo.h
-include/php/Zend/zend_closures.h
-include/php/Zend/zend_closures_arginfo.h
-include/php/Zend/zend_compile.h
-include/php/Zend/zend_config.h
-include/php/Zend/zend_config.w32.h
-include/php/Zend/zend_constants.h
-include/php/Zend/zend_cpuinfo.h
-include/php/Zend/zend_dtrace.h
-%%DTRACE%%include/php/Zend/zend_dtrace_gen.h
-include/php/Zend/zend_errors.h
-include/php/Zend/zend_exceptions.h
-include/php/Zend/zend_exceptions_arginfo.h
-include/php/Zend/zend_execute.h
-include/php/Zend/zend_extensions.h
-include/php/Zend/zend_float.h
-include/php/Zend/zend_gc.h
-include/php/Zend/zend_gdb.h
-include/php/Zend/zend_generators.h
-include/php/Zend/zend_generators_arginfo.h
-include/php/Zend/zend_globals.h
-include/php/Zend/zend_globals_macros.h
-include/php/Zend/zend_hash.h
-include/php/Zend/zend_highlight.h
-include/php/Zend/zend_inheritance.h
-include/php/Zend/zend_ini.h
-include/php/Zend/zend_ini_parser.h
-include/php/Zend/zend_ini_scanner.h
-include/php/Zend/zend_ini_scanner_defs.h
-include/php/Zend/zend_interfaces.h
-include/php/Zend/zend_interfaces_arginfo.h
-include/php/Zend/zend_istdiostream.h
-include/php/Zend/zend_iterators.h
-include/php/Zend/zend_language_parser.h
-include/php/Zend/zend_language_scanner.h
-include/php/Zend/zend_language_scanner_defs.h
-include/php/Zend/zend_list.h
-include/php/Zend/zend_llist.h
-include/php/Zend/zend_long.h
-include/php/Zend/zend_map_ptr.h
-include/php/Zend/zend_modules.h
-include/php/Zend/zend_multibyte.h
-include/php/Zend/zend_multiply.h
-include/php/Zend/zend_object_handlers.h
-include/php/Zend/zend_objects.h
-include/php/Zend/zend_objects_API.h
-include/php/Zend/zend_observer.h
-include/php/Zend/zend_operators.h
-include/php/Zend/zend_portability.h
-include/php/Zend/zend_ptr_stack.h
-include/php/Zend/zend_range_check.h
-include/php/Zend/zend_signal.h
-include/php/Zend/zend_smart_str.h
-include/php/Zend/zend_smart_str_public.h
-include/php/Zend/zend_smart_string.h
-include/php/Zend/zend_smart_string_public.h
-include/php/Zend/zend_sort.h
-include/php/Zend/zend_stack.h
-include/php/Zend/zend_stream.h
-include/php/Zend/zend_string.h
-include/php/Zend/zend_strtod.h
-include/php/Zend/zend_strtod_int.h
-include/php/Zend/zend_system_id.h
-include/php/Zend/zend_ts_hash.h
-include/php/Zend/zend_type_info.h
-include/php/Zend/zend_types.h
-include/php/Zend/zend_variables.h
-include/php/Zend/zend_virtual_cwd.h
-include/php/Zend/zend_vm.h
-include/php/Zend/zend_vm_def.h
-include/php/Zend/zend_vm_execute.h
-include/php/Zend/zend_vm_handlers.h
-include/php/Zend/zend_vm_opcodes.h
-include/php/Zend/zend_vm_trace_handlers.h
-include/php/Zend/zend_vm_trace_lines.h
-include/php/Zend/zend_vm_trace_map.h
-include/php/Zend/zend_weakrefs.h
-include/php/Zend/zend_weakrefs_arginfo.h
-include/php/ext/curl/php_curl.h
-include/php/ext/date/lib/timelib.h
-include/php/ext/date/lib/timelib_config.h
-include/php/ext/date/php_date.h
-include/php/ext/dom/xml_common.h
-include/php/ext/filter/php_filter.h
-include/php/ext/gd/gd_arginfo.h
-include/php/ext/gd/gd_compat.h
-include/php/ext/gd/php_gd.h
-include/php/ext/hash/php_hash.h
-include/php/ext/hash/php_hash_adler32.h
-include/php/ext/hash/php_hash_crc32.h
-include/php/ext/hash/php_hash_fnv.h
-include/php/ext/hash/php_hash_gost.h
-include/php/ext/hash/php_hash_haval.h
-include/php/ext/hash/php_hash_joaat.h
-include/php/ext/hash/php_hash_md.h
-include/php/ext/hash/php_hash_ripemd.h
-include/php/ext/hash/php_hash_sha.h
-include/php/ext/hash/php_hash_sha3.h
-include/php/ext/hash/php_hash_snefru.h
-include/php/ext/hash/php_hash_tiger.h
-include/php/ext/hash/php_hash_whirlpool.h
-include/php/ext/json/php_json.h
-include/php/ext/json/php_json_parser.h
-include/php/ext/json/php_json_scanner.h
-include/php/ext/libxml/php_libxml.h
-include/php/ext/mbstring/libmbfl/config.h
-include/php/ext/mbstring/libmbfl/mbfl/eaw_table.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfilter.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfilter_pass.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_consts.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_convert.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_defs.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_encoding.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_ident.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_language.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h
-include/php/ext/mbstring/libmbfl/mbfl/mbfl_string.h
-include/php/ext/mbstring/mbstring.h
-include/php/ext/mbstring/php_mbregex.h
-include/php/ext/mbstring/php_onig_compat.h
-include/php/ext/mysqli/mysqli_mysqlnd.h
-include/php/ext/mysqli/php_mysqli_structs.h
-include/php/ext/mysqlnd/config-win.h
-include/php/ext/mysqlnd/mysql_float_to_double.h
-include/php/ext/mysqlnd/mysqlnd.h
-include/php/ext/mysqlnd/mysqlnd_alloc.h
-include/php/ext/mysqlnd/mysqlnd_auth.h
-include/php/ext/mysqlnd/mysqlnd_block_alloc.h
-include/php/ext/mysqlnd/mysqlnd_charset.h
-include/php/ext/mysqlnd/mysqlnd_commands.h
-include/php/ext/mysqlnd/mysqlnd_connection.h
-include/php/ext/mysqlnd/mysqlnd_debug.h
-include/php/ext/mysqlnd/mysqlnd_enum_n_def.h
-include/php/ext/mysqlnd/mysqlnd_ext_plugin.h
-include/php/ext/mysqlnd/mysqlnd_libmysql_compat.h
-include/php/ext/mysqlnd/mysqlnd_plugin.h
-include/php/ext/mysqlnd/mysqlnd_portability.h
-include/php/ext/mysqlnd/mysqlnd_priv.h
-include/php/ext/mysqlnd/mysqlnd_protocol_frame_codec.h
-include/php/ext/mysqlnd/mysqlnd_ps.h
-include/php/ext/mysqlnd/mysqlnd_read_buffer.h
-include/php/ext/mysqlnd/mysqlnd_result.h
-include/php/ext/mysqlnd/mysqlnd_result_meta.h
-include/php/ext/mysqlnd/mysqlnd_reverse_api.h
-include/php/ext/mysqlnd/mysqlnd_statistics.h
-include/php/ext/mysqlnd/mysqlnd_structs.h
-include/php/ext/mysqlnd/mysqlnd_vio.h
-include/php/ext/mysqlnd/mysqlnd_wireprotocol.h
-include/php/ext/mysqlnd/php_mysqlnd.h
-include/php/ext/pcre/php_pcre.h
-include/php/ext/simplexml/php_simplexml.h
-include/php/ext/simplexml/php_simplexml_exports.h
-include/php/ext/spl/php_spl.h
-include/php/ext/spl/spl_array.h
-include/php/ext/spl/spl_directory.h
-include/php/ext/spl/spl_dllist.h
-include/php/ext/spl/spl_engine.h
-include/php/ext/spl/spl_exceptions.h
-include/php/ext/spl/spl_fixedarray.h
-include/php/ext/spl/spl_functions.h
-include/php/ext/spl/spl_heap.h
-include/php/ext/spl/spl_iterators.h
-include/php/ext/spl/spl_observer.h
-include/php/ext/standard/base64.h
-include/php/ext/standard/basic_functions.h
-include/php/ext/standard/basic_functions_arginfo.h
-include/php/ext/standard/crc32.h
-include/php/ext/standard/crc32_x86.h
-include/php/ext/standard/credits.h
-include/php/ext/standard/credits_ext.h
-include/php/ext/standard/credits_sapi.h
-include/php/ext/standard/crypt_blowfish.h
-include/php/ext/standard/crypt_freesec.h
-include/php/ext/standard/css.h
-include/php/ext/standard/datetime.h
-include/php/ext/standard/dir_arginfo.h
-include/php/ext/standard/dl.h
-include/php/ext/standard/dl_arginfo.h
-include/php/ext/standard/exec.h
-include/php/ext/standard/file.h
-include/php/ext/standard/flock_compat.h
-include/php/ext/standard/fsock.h
-include/php/ext/standard/head.h
-include/php/ext/standard/hrtime.h
-include/php/ext/standard/html.h
-include/php/ext/standard/html_tables.h
-include/php/ext/standard/info.h
-include/php/ext/standard/md5.h
-include/php/ext/standard/pack.h
-include/php/ext/standard/pageinfo.h
-include/php/ext/standard/php_array.h
-include/php/ext/standard/php_assert.h
-include/php/ext/standard/php_browscap.h
-include/php/ext/standard/php_crypt.h
-include/php/ext/standard/php_crypt_r.h
-include/php/ext/standard/php_dir.h
-include/php/ext/standard/php_dns.h
-include/php/ext/standard/php_ext_syslog.h
-include/php/ext/standard/php_filestat.h
-include/php/ext/standard/php_fopen_wrappers.h
-include/php/ext/standard/php_http.h
-include/php/ext/standard/php_image.h
-include/php/ext/standard/php_incomplete_class.h
-include/php/ext/standard/php_lcg.h
-include/php/ext/standard/php_mail.h
-include/php/ext/standard/php_math.h
-include/php/ext/standard/php_mt_rand.h
-include/php/ext/standard/php_net.h
-include/php/ext/standard/php_password.h
-include/php/ext/standard/php_rand.h
-include/php/ext/standard/php_random.h
-include/php/ext/standard/php_smart_string.h
-include/php/ext/standard/php_smart_string_public.h
-include/php/ext/standard/php_standard.h
-include/php/ext/standard/php_string.h
-include/php/ext/standard/php_uuencode.h
-include/php/ext/standard/php_var.h
-include/php/ext/standard/php_versioning.h
-include/php/ext/standard/proc_open.h
-include/php/ext/standard/quot_print.h
-include/php/ext/standard/scanf.h
-include/php/ext/standard/sha1.h
-include/php/ext/standard/streamsfuncs.h
-include/php/ext/standard/url.h
-include/php/ext/standard/url_scanner_ex.h
-include/php/ext/standard/user_filters_arginfo.h
-include/php/ext/standard/winver.h
-@touch include/php/ext/php_config.h
-@rmempty include/php/ext/php_config.h
-include/php/main/SAPI.h
-include/php/main/build-defs.h
-include/php/main/fastcgi.h
-include/php/main/fopen_wrappers.h
-include/php/main/http_status_codes.h
-include/php/main/php.h
-include/php/main/php_compat.h
-include/php/main/php_config.h
-include/php/main/php_content_types.h
-include/php/main/php_getopt.h
-include/php/main/php_globals.h
-include/php/main/php_ini.h
-include/php/main/php_main.h
-include/php/main/php_memory_streams.h
-include/php/main/php_network.h
-include/php/main/php_open_temporary_file.h
-include/php/main/php_output.h
-include/php/main/php_reentrancy.h
-include/php/main/php_scandir.h
-include/php/main/php_stdint.h
-include/php/main/php_streams.h
-include/php/main/php_syslog.h
-include/php/main/php_ticks.h
-include/php/main/php_variables.h
-include/php/main/php_version.h
-include/php/main/rfc1867.h
-include/php/main/snprintf.h
-include/php/main/spprintf.h
-include/php/main/streams/php_stream_context.h
-include/php/main/streams/php_stream_filter_api.h
-include/php/main/streams/php_stream_glob_wrapper.h
-include/php/main/streams/php_stream_mmap.h
-include/php/main/streams/php_stream_plain_wrapper.h
-include/php/main/streams/php_stream_transport.h
-include/php/main/streams/php_stream_userspace.h
-include/php/main/streams/php_streams_int.h
-include/php/sapi/cli/cli.h
-lib/php/20200930/opcache.so
-lib/php/build/Makefile.global
-lib/php/build/ax_check_compile_flag.m4
-lib/php/build/ax_gcc_func_attribute.m4
-lib/php/build/config.guess
-lib/php/build/config.sub
-lib/php/build/gen_stub.php
-lib/php/build/libtool.m4
-lib/php/build/ltmain.sh
-lib/php/build/php.m4
-lib/php/build/php_cxx_compile_stdcxx.m4
-lib/php/build/phpize.m4
-lib/php/build/pkg.m4
-lib/php/build/run-tests.php
-lib/php/build/shtool
-share/man/man1/php-config.1.gz
-share/man/man1/php.1.gz
-%%PHPDBG%%share/man/man1/phpdbg.1.gz
-share/man/man1/phpize.1.gz
-share/man/man8/php-fpm.8.gz
-share/php/fpm/status.html