As active support of php81 ends on 25th November, 2023 it's time to
switch the default version to 8.2.
See https://www.php.net/supported-versions.php for more details.
PR: 274463
Approved by: portmgr (exp-run)
- Replace old USE_APACHE_RUN with USES=apache:run
- Prior to php8.0 there was a check for the required libname which
contained the version number of php. Remove the conditional.
Sponsored by: Bounce Experts
As per upstream php 7.4 has reached it's EOL on 2022-11-22. Remove php74
from the tree. Default version of php has already been switched to 8.1.
Approved by: portmgr (blanket infrastructure)
Sponsored by: Bounce Experts
Switching php DEFAULT_VERSION from 8.0 to 8.1. php 8.0 Active support
ends on 2022-11-26. This will not be merged in quarterly.
PR: 266854
Tested by: antoine
Approved by: ale
Relnotes: https://www.php.net/supported-versions.php
Sponsored by: Bounce Experts
- Core:
. Fixed bug GH-9500 (Using dnf type with parentheses after readonly
keyword results in a parse error). (ilutov)
. Fixed bug GH-9516 ((A&B)|D as a param should allow AB or D. Not
just A). (Girgias)
- GMP
. Fixed bug GH-9308 (GMP throws the wrong error when a GMP object is
passed to gmp_init()). (Girgias)
- Intl
. Fixed bug GH-9421 (Incorrect argument number for ValueError in
NumberFormatter). (Girgias)
- Opcache:
. Fixed bug GH-9259 (opcache.interned_strings_buffer setting integer
overflow). (Arnaud)
- OpenSSL:
. Fixed bug GH-9517 (Compilation error openssl extension related to
PR GH-9366). (Jakub Zelenka)
- PDO_PGSQL:
. Fixed bug GH-9411 (PgSQL large object resource is incorrectly
closed). (Yurunsoft)
- Random:
. Fixed bug GH-9464 (build on older macOs releases). (David Bohman)
- Standard:
. Marked crypt()'s $string parameter as #[\SensitiveParameter].
(timwolla)
. Fixed bug GH-9464 (build on older macOs releases). (David Bohman)
. Fixed bug GH-9518 (Disabling IPv6 support disables unrelated
constants). (cmb)
Please DO NOT use this version in production, it is an early test
version.
Relnotes: https://github.com/php/php-src/blob/php-8.2.0RC2/NEWS
Sponsored by: Bounce Experts
Please DO NOT use this version in production, it is an early test
version.
port-committers@ please DO NOT mark your ports IGNORE_WITH_PHP=82. A
build is running to check all php ports with php82 and will be
committed in batch tomorrow.
Sponsored by: Bounce Experts
Run Tools/scripts/indent_make_if.pl on all of Mk.
These white space changes contribute greatly to the readability of those files.
As we have a version control system, finding out the reasons for the changes
prior to these white space changes is still easily possible
Differential Revision: https://reviews.freebsd.org/D35024
Reviewed by: portmgr (rene, bapt)
- Currently our php.mk is defined in such a way that when testing with
poudriere if a port do not support the PHP default version it tries to
build with a different php version that the port supports.
Unfortunately this behavior is not too much helpful when we want to
add/remove a old/new php version as it doesn't gives a clear picture
of which ports fails to build with a specific PHP version. So this
patch defines a variable "BUILD_ONLY_DEFAULT_PHP_FLAVOR". If this
variable is defined in make.conf then poudriere will build with default
flavor and in case it's not supported this will IGNORE/SKIP the port which
gives a clear overview of which ports are going to create problem
while adding/removing/changing default php.
- One more thing is there are some old php modules still listed
specifically dbase_DEPENDS, mssql_DEPENDS and sybase_ct_DEPENDS which
are actually no longer in the tree.
PR: 262639
Approved by: ale (maintainer-timeout)
Sponsored by: Bounce Experts
After the 91fdbed776 commit fixing the
issue for MySQL80 introduced another problem for the ports that depends
on php8[01]-openssl port couldn't be built as the fix prevented
php8[01]-openssl from being installed as it's already built with
default php installation. As the problem has grown much bigger now and
php80 is currently the DEFAULT php version so we are switching the
behavior of php8[01] ports making the openssl module as default.
- Remove non-default OPTION MYSQL80 from lang/php8[01]
- Remove ports security/php8[01]-openssl
- Remove OPTION OPENSSL from lang/php8[01]-extensions
- Mark lang/php8[01] to IGNORE with libressl and libressl-devel
Although php builds fine with those most of the extensions do not
as they have dependency on curl. So mark it early.
- OPTIONIZE lang/php80
- Change openssl_DEPENDS to conditional for php74 only as this module
is default from php80 with this commit. php74 do not have the issue
where it fails to connect to MySQL80 due to new caching_sha2_password
- Remove hash_DEPENDS from php.mk as it is a default module for all php
- Change json_DEPENDS to conditional for php74 only as this module is
default from php80
PR: 261797 259793 252420
Reported by: sean@rogue-research.commartin@waschbuesch.de
Approved by: tz (private email) ale (private email)
Sponsored by: Bounce Experts
- From php80 and onwards libphp name is libphp.so without the major
version number. Add a check to fix the RUN_DEPENDS.
PR: 251252
Reported by: jonaspalm@posteo.de
Approved by: ale (maintainer)
Sponsored by: Bounce Experts
- databases/xapian-bindings is a mata port which do not have
php:flavors and is unable to be MARKED to IGNORE as one of it's
dependent databases/php-xapian do not support php8.0. Hence this
creates a circular dependency and it fails to start bulk building. So
for now remove PHP from OPTIONS_DEFAULT.
PR: 260595
Approved by: ale portmgr(exp-run)
Sponsored by: Bounce Experts
- Move extension sodium to common as all current supported php versions
in the tree supports it
PR: 260774
Approved by: ale
Sponsored by: Bounce Experts
We'll have a new abi on ppc64 soon (ELFv2) which is incompatible with the ELFv1 abi. We need to detect the abi on which we build stuff.
Submitted by: mikael_urankar@gmail.com
Approved by: portmgr (earlier version)
Differential Revision: https://reviews.freebsd.org/D22039
There are many greater changes including:
- New module ffi
- Remove interbase module
- Remove recode module
- Remove wddx module
- Many modules changes the build switches
- Many modules changes the config format, so patches needed to be recreated
Special thanks to tobik and ale for their support.
Reviewed by: tobik, ale, joneum
Sponsored by: PHP Update Service
Differential Revision: https://reviews.freebsd.org/D21349
Notable changes:
- Switch from PCRE to PCRE2
- Many modules now require PCRE2 for building
- graphics/php73-gd: X11 option is no longer default
Changes to Mk/Uses/php.mk approved by ale
Ports using USES=php:phpize, php:ext, php:zend, and php:pecl are now
flavored. They will automatically get flavors (php56, php70, php71, php72)
depending of the versions they support (set with IGNORE_WITH_PHP). As a
consequence, ports using USES=pear and USES=horde are also flavored.
PR: 226242
Submitted by: mat
Exp-run by: antoine
Approved by: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D14208