Some patches were added for supporting libxml2 2.12 or newer however as
libxml2 itself has not yet been updated these patches are not compatible
with the previous versions and have runtime issues. These patches should
be added again after textproc/libxml2 has been updated to 2.12 or newer.
On the contrary if php81 has runtime issues even after the libxml2
updates and with these patches we might have to remove php81 earlier
than expected if there is no fix.
PR: 280775
Reported by: freebsdbugs@filis.org
- Rename rc script to comply to the rc scripting recommendations [1]
PR: 280153, 280134 [1]
Co-authored-by: Alexander Leidinger <netchild@FreeBSD.org>
Co-authored-by: Daniel Engberg <diizzy@FreeBSD.org>
- php modules while build with system pcre fails to run when using
apache httpd and mod_php. So OPTIONIZE and add as a non-DEFAULT
option. However to my knowledge and experience I haven't faced this
with nginx and php-fpm yet. [1]
- There is another corner case with apache httpd and mod_php when run
on 13.2-RELEASE or newer specially on versions where ASLR is by default
turned on. All modules specialy opcache crashes httpd. So add a
warning message to advise users to move into php-fpm. [2]
Thanks to brnrd@ for the patch. [2]
PR: 275522 [1], 268318 [2]
Reported by: majo-bugs.freebsd.org@cerny.sk [1], zarychtam@plan-b.pwste.edu.pl [2]
- Switch to system pcre
- Switch to libenchant-2 for enchant extension
- Remove OPTIONS for using the deprecated cclient library for imap
extension
- Switch to libedit for readline extension
Changelog: https://www.php.net/ChangeLog-8.php#8.1.26
Upstream has re-rolled the dist for this version. This only affects
lang/php81 and not other versions of php8*. For more details please see
the following:
https://news-web.php.net/php.announce/349
Just to be confirmed that noone is using an older version as the CDN
caches might still hold the older versions bumping the PORTREVISION.
Sponsored by: Bounce Experts
Convert the USE_LDAP=yes to USES=ldap and adds the following features:
- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features
Reviewed by: delphij
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D38233
USES=apache must be called before bsd.pre.port.mk however this was
overridden using an include clause. During my previous commit on
refactoring apache.mk these include blocks were deleted which causes
failure to the build of these port as USES=apache in preport.mk is never
called. This commit changes and refactors the code.
Fixes: 40843b1 Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:
- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
one available version in the tree. However the version checks are
still valid and should work flawlessly whenever a new version is
added. For example USES=apache:2.2+ are simply replaced with
USES=apache. As currently there are no other versions available for
test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D38113
* Core:
- Fixes segfault with Fiber on FreeBSD i386 architecture.
* Fileinfo:
- Fixed bug GH-8805 (finfo returns wrong mime type for woff/woff2
files).
* GD:
- Fixed bug #81739: OOB read due to insufficient input validation in
imageloadfont(). (CVE-2022-31630)
* Hash:
- Fixed bug #81738: buffer overflow in hash_update() on long parameter
(CVE-2022-37454)
* MBString:
- Fixed bug GH-9683 (Problem when ISO-2022-JP-MS is specified in
mb_encode_mimeheader).
* Opcache:
- Added indirect call reduction for jit on x86 architectures.
* Session:
- Fixed bug GH-9583 (session_create_id() fails with user defined save
handler that doesn't have a validateId() method).
* Streams:
- Fixed bug GH-9590 (stream_select does not abort upon exception or
empty valid fd set).
MFH: 2022Q4
Relnotes: https://www.php.net/ChangeLog-8.php#8.1.12
Sponsored by: Bounce Experts
* Core:
- Fixed bug #81726: phar wrapper: DOS when using quine gzip file.
(CVE-2022-31628)
- Fixed bug #81727: Don't mangle HTTP variable names that clash with
ones that have a specific semantic meaning. (CVE-2022-31629)
- Fixed bug GH-9323 (Crash in ZEND_RETURN/GC/zend_call_function) (Tim
Starling)
- Fixed bug GH-9361 (Segmentation fault on script exit #9379).
- Fixed bug GH-9447 (Invalid class FQN emitted by AST dump for new and
class constants in constant expressions).
* DOM:
- Fixed bug #79451 (DOMDocument->replaceChild on doctype causes double
free).
* FPM:
- Fixed bug GH-8885 (FPM access.log with stderr begins to write logs
to error_log after daemon reload).
- Fixed bug #77780 ("Headers already sent..." when previous connection
was aborted).
* GMP:
- Fixed bug GH-9308 (GMP throws the wrong error when a GMP object is
passed to gmp_init()).
* Intl:
- Fixed bug GH-9421 (Incorrect argument number for ValueError in
NumberFormatter).
* PCRE:
- Fixed pcre.jit on Apple Silicon.
* PDO_PGSQL:
- Fixed bug GH-9411 (PgSQL large object resource is incorrectly
closed).
* Reflection:
- Fixed bug GH-8932 (ReflectionFunction provides no way to get the
called class of a Closure).
* Streams:
- Fixed bug GH-9316 ($http_response_header is wrong for long status
line).
Relnotes: https://www.php.net/ChangeLog-8.php#PHP_8_1
Sponsored by: Bounce Experts
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.
There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.
The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.
Approved by: portmgr (tcberner)