Skip to content

Commit 3212eb2

Browse files
author
taca
committed
lang/php83: update to 8.3.8
pkgsrc change: Instead of patch configure, patch m4 files and use autoconf to generate configure. PHP 8.3.8 (2024-06-06) - CGI: . Fixed buffer limit on Windows, replacing read call usage by _read. (David Carlier) . Fixed bug GHSA-3qgc-jrrr-25jv (Bypass of CVE-2012-1823, Argument Injection in PHP-CGI). (CVE-2024-4577) (nielsdos) - CLI: . Fixed bug GH-14189 (PHP Interactive shell input state incorrectly handles quoted heredoc literals.). (nielsdos) - Core: . Fixed bug GH-13970 (Incorrect validation of #[Attribute] flags type for non-compile-time expressions). (ilutov) - DOM: . Fix crashes when entity declaration is removed while still having entity references. (nielsdos) . Fix references not handled correctly in C14N. (nielsdos) . Fix crash when calling childNodes next() when iterator is exhausted. (nielsdos) . Fix crash in ParentNode::append() when dealing with a fragment containing text nodes. (nielsdos) - Filter: . Fixed bug GHSA-w8qr-v226-r27w (Filter bypass in filter_var FILTER_VALIDATE_URL). (CVE-2024-5458) (nielsdos) - FPM: . Fix bug GH-14175 (Show decimal number instead of scientific notation in systemd status). (Benjamin Cremer) - Hash: . ext/hash: Swap the checking order of `__has_builtin` and `__GNUC__` (Saki Takamachi) - Intl: . Fixed build regression on systems without C++17 compilers. (Calvin Buckley, Peter Kokot) - MySQLnd: . Fix bug GH-14255 (mysqli_fetch_assoc reports error from nested query). (Kamil Tekiela) - Opcache: . Fixed bug GH-14109 (Fix accidental persisting of internal class constant in shm). (ilutov) - OpenSSL: . The openssl_private_decrypt function in PHP, when using PKCS1 padding (OPENSSL_PKCS1_PADDING, which is the default), is vulnerable to the Marvin Attack unless it is used with an OpenSSL version that includes the changes from this pull request: openssl/openssl#13817 (rsa_pkcs1_implicit_rejection). These changes are part of OpenSSL 3.2 and have also been backported to stable versions of various Linux distributions, as well as to the PHP builds provided for Windows since the previous release. All distributors and builders should ensure that this version is used to prevent PHP from being vulnerable. (CVE-2024-2408) - Standard: . Fixed bug GHSA-9fcc-425m-g385 (Bypass of CVE-2024-1874). (CVE-2024-5585) (nielsdos) - XML: . Fixed bug GH-14124 (Segmentation fault with XML extension under certain memory limit). (nielsdos) - XMLReader: . Fixed bug GH-14183 (XMLReader::open() can't be overridden). (nielsdos)
1 parent 8162721 commit 3212eb2

File tree

6 files changed

+56
-70
lines changed

6 files changed

+56
-70
lines changed

lang/php/phpversion.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: phpversion.mk,v 1.433 2024/06/07 13:54:25 taca Exp $
1+
# $NetBSD: phpversion.mk,v 1.434 2024/06/07 13:57:24 taca Exp $
22
#
33
# This file selects a PHP version, based on the user's preferences and
44
# the installed packages. It does not add a dependency on the PHP
@@ -91,7 +91,7 @@ PHP56_VERSION= 5.6.40
9191
PHP74_VERSION= 7.4.33
9292
PHP81_VERSION= 8.1.29
9393
PHP82_VERSION= 8.2.19
94-
PHP83_VERSION= 8.3.7
94+
PHP83_VERSION= 8.3.8
9595

9696
# Define API version or initial release of major version.
9797
PHP56_RELDATE= 20140828

lang/php83/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
# $NetBSD: Makefile,v 1.2 2024/05/29 16:33:16 adam Exp $
1+
# $NetBSD: Makefile,v 1.3 2024/06/07 13:57:24 taca Exp $
22

33
#
44
# We can't omit PKGNAME here to handle PKG_OPTIONS.
55
#
66
PKGNAME= php-${PHP_VERSION:S/RC/rc/}
7-
PKGREVISION= 1
87

98
COMMENT= PHP Hypertext Preprocessor version 8.3
109
LICENSE= php
1110

1211
TEST_TARGET= test
1312

14-
USE_TOOLS+= gmake lex
13+
USE_TOOLS+= autoconf gmake lex
1514
LIBTOOL_OVERRIDE= # empty
1615
PHP_CHECK_INSTALLED= No
1716

@@ -46,7 +45,7 @@ REPLACE_PHP= ext/phar/phar/phar.php run-tests.php
4645
SUBST_CLASSES+= path
4746
SUBST_MESSAGE.path= Fixing common paths.
4847
SUBST_STAGE.path= pre-configure
49-
SUBST_FILES.path= configure
48+
SUBST_FILES.path= build/php.m4
5049
SUBST_FILES.path+= php.ini-development php.ini-production
5150
SUBST_FILES.path+= sapi/cgi/Makefile.frag
5251
SUBST_VARS.path= CGIDIR
@@ -66,6 +65,9 @@ INSTALL_UNSTRIPPED= yes
6665
CFLAGS+= -DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
6766
.endif
6867

68+
pre-configure:
69+
cd ${WRKSRC} && autoconf -f
70+
6971
post-install:
7072
cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
7173
${DESTDIR}${EGDIR}

lang/php83/distinfo

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
$NetBSD: distinfo,v 1.7 2024/05/10 15:50:34 taca Exp $
1+
$NetBSD: distinfo,v 1.8 2024/06/07 13:57:24 taca Exp $
22

3-
BLAKE2s (php-8.3.7.tar.xz) = 009b796292f0f05c1a21a6f0f40886e1ec5c6a01f4cbae0c7de34a4fc5c9db96
4-
SHA512 (php-8.3.7.tar.xz) = ff2c16a5cc08b1a59a61eee9df75c4c9a6dda7054d48198b75d104c194e934109fed3665005ba798eeca3d7294d7dc81df3a14e63a527baf9f196e229068d9a3
5-
Size (php-8.3.7.tar.xz) = 12456020 bytes
6-
SHA1 (patch-configure) = 3d7106a039a3bffaf9f439c8fed77048f1072749
3+
BLAKE2s (php-8.3.8.tar.xz) = ba672f712e3d735c0320f301bf5f3a09bbf3440e09abd44813a57ed001a0db57
4+
SHA512 (php-8.3.8.tar.xz) = 1a2840f0b5dcbea6dfcc3894cb9e38d103bf4110c1b956438199deee0b60e5ae63cce34be25ca6f03ac8d26581a852657f8800f92fefe38345e20443b646bb3e
5+
Size (php-8.3.8.tar.xz) = 12480896 bytes
6+
SHA1 (patch-build_php.m4) = c85864ae22556c0a5f14b323d2cf031523625e9b
77
SHA1 (patch-ext_enchant_enchant.c) = 7d999de1b2fde2ea11e4a6e16e7b59c085924b9b
88
SHA1 (patch-ext_phar_Makefile.frag) = 53ea5c58b0bc27d236118d5750a74b1cba43e5dd
99
SHA1 (patch-ext_standard_php__fopen__wrapper.c) = 0a2c19c18f089448a8d842e99738b292ab9e5640
@@ -12,6 +12,7 @@ SHA1 (patch-ext_xsl_php__xsl.h) = cf930c5d6d9dab29b12558d265c67d3534a006fd
1212
SHA1 (patch-main_streams_streams.c) = d699ce7d3a300ffb39494b3f1fa5e0958f714483
1313
SHA1 (patch-php.ini-development) = 373d76cc7a022b578f1d5e296d1f0ac88bc26b72
1414
SHA1 (patch-php.ini-production) = 5ab7fa6bf8403907160b0a62b56c1ee527f8eda6
15+
SHA1 (patch-sapi_apache2handler_config.m4) = c5650a7d07a8213038fe2e2a6a1ce345d325df82
1516
SHA1 (patch-sapi_cgi_Makefile.frag) = f4cd64d334884c49787d8854115c8cd69cc79bb8
1617
SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
1718
SHA1 (patch-sapi_fpm_php-fpm.conf.in) = acf9b4e70d4c5ea2b96e37e7bbf9005379ecc4d0

lang/php83/patches/patch-build_php.m4

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
$NetBSD: patch-build_php.m4,v 1.1 2024/06/07 13:57:24 taca Exp $
2+
3+
Do not include "PKG_CONFIG*" in CONFIGURE_OPTIONS.
4+
5+
--- build/php.m4.orig 2024-06-04 14:53:17.000000000 +0000
6+
+++ build/php.m4
7+
@@ -2151,6 +2151,10 @@ EOF
8+
else
9+
break
10+
fi
11+
+ case "$CURRENT_ARG" in
12+
+ \'PKG_CONFIG\=*) CURRENT_ARG="'PKG_CONFIG=@TOOLS_PATH.pkg-config@'";;
13+
+ \'PKG_CONFIG_LIBDIR\=*) CURRENT_ARG="'PKG_CONFIG_LIBDIR=@PHP_PKGCONFIG_PATH@'";;
14+
+ esac
15+
AS_ECHO(["$CURRENT_ARG \\"]) >>$1
16+
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $CURRENT_ARG"
17+
done

lang/php83/patches/patch-configure

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$NetBSD: patch-sapi_apache2handler_config.m4,v 1.1 2024/06/07 13:57:24 taca Exp $
2+
3+
Don't autodetect maintainer-zts.
4+
5+
--- sapi/apache2handler/config.m4.orig 2024-06-04 14:53:17.000000000 +0000
6+
+++ sapi/apache2handler/config.m4
7+
@@ -108,18 +108,6 @@ if test "$PHP_APXS2" != "no"; then
8+
;;
9+
esac
10+
11+
- if test "$APACHE_VERSION" -lt 2004001; then
12+
- APXS_MPM=`$APXS -q MPM_NAME`
13+
- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
14+
- PHP_BUILD_THREAD_SAFE
15+
- fi
16+
- else
17+
- APACHE_THREADED_MPM=`$APXS_HTTPD -V 2>/dev/null | grep 'threaded:.*yes'`
18+
- if test -n "$APACHE_THREADED_MPM"; then
19+
- PHP_BUILD_THREAD_SAFE
20+
- fi
21+
- fi
22+
- AC_MSG_RESULT(yes)
23+
PHP_SUBST(APXS)
24+
else
25+
AC_MSG_RESULT(no)

0 commit comments

Comments
 (0)