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.
WWW: https://www.php.net/
===> The following configuration options are available for php71-7.1.33:
CLI=on: Build CLI version
CGI=on: Build CGI version
FPM=on: Build FPM version
EMBED=on: Build embedded library
PHPDBG=off: Interactive PHP debugger
DEBUG=off: Build with debugging support
DTRACE=on: Build with DTrace probes
IPV6=on: IPv6 protocol support
MAILHEAD=off: Enable mail header patch
MYSQLND=on: Build with MySQL Native Driver
LINKTHR=on: Link thread lib (for threaded extensions)
ZTS=off: Force Zend Thread Safety (ZTS) build
===> Use 'make config' to modify these settings
Add USES=xorg USES=gl, ports categories l
Add USES=xorg and USES=gl to ports in categories starting with 'l'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
lang/php71: Update from 7.1.32 to 7.1.33
Changelog:
FPM:
Fixed bug #78599 (env_path_info underflow in fpm_main.c can lead to RCE).
(CVE-2019-11043)
Changelog taken from: https://www.php.net/ChangeLog-7.php#7.1.33
MFH: 2019Q4
PHP: Add Synth to pkg-message advice
pkg-message currently states the advice to add WITH_MPM=event
if its build by poudriere and with ZTS option enabled.
This is also true if Synth is used, therefore adding it.
Reported by: Dennis <denradford@gmail.com>
lang/php7*: Rename option MYSQL to MYSQLND
Renaming the option to be inline with the already existing MYSQLND option
in the mysqli and pdo_mysqli ports.
Reported by: Jarrod Sayers <jarrod@downtools.com.au>
lang/php71: Make enabling MYSQL native driver optional
Currently PHP is always compiled with --enable-mysqlnd, to allow the use
of the native MySQL Native Driver. MySQL Native Driver is a replacement for the
MySQL Client Library.
While this is handy when working with MySQL there is no need for
it when MySQL is *not* used at all. This happens frequently when
working without databases or simply with other databases.
To avoid POLA the newly introduced option is a default option.
Disabling it will reduce the size of the package by ca. 175 KB,
which also helps in modern constraint VM run environments.
Submitted by: Reko Turja <reko.turja@liukuma.net>
Add PHP 7.3 RC2 to the ports-tree.
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
lang/php*: link with -znotext on i386
This port links some non-PIC code, which fails with lld as it defaults
to disallowing relocations against read-only segments. For i386 we can
just add -znotext unconditionally: for GNU BFD ld it just affirms BFD's
existing default.
PR: 214864, 230207
Approved by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17193
graphics/php71-gd: Switch from bundled libgd to graphics/gd
Currently the gd-module uses a bundled libgd, while most systems
already provide the same library via graphics/gd.
Therefore instead of adding the bundled library we use the
port instead.
PR: 217222
Submitted by: Mikhail Teterin <mi@FreeBSD.org>
Turn off DTRACE option by default for mips. It fails the exact same way
that armvX do.
While here, remove duplicate OPTIONS_EXCLUDE_aarch64 line, and sort.
Approved by: portmgr (tier-2 blanket)
Introduce PHP flavors.
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
- Replace USE_AUTOTOOLS with USES=autoreconf:build and run an upstream
script in pre-configure to regenerate configure scripts. Because this
regenerates php_config.h.in, merge a patch for that file into the patch
for configure.in.
- Remove redundant --localstatedir=/var (added by bsd.port.mk).
lang/php70 and lang/php71: Add mail header patch
While here to some improvements:
- Remove CONFLICTS of no longer existing PHP 5.5
- Add CONFLICTS to PHP 7.2
- Remove IPV6_DESC in order to use default one
PR: 219321
Submitted by: Karsten Schmidt <bsd@guggemand.dk>
lang/php70 and lang/php71: enable to build on sparc64
Disabling DTRACE for sparc64 allows to build the port on it
PR: 221761
Submitted by: Mark Linimon <linimon@FreeBSD.org>
lang/php71: add notice for poudriere builds with ZTS option
The message should point to a common mistake, when building
lang/php71 with ZTS option enabled using poudriere.
There is already the same message in lang/php70.
Reported by: Jim Trigg <jktrigg@gmail.com>
PHP 7.0 and 7.1: switch to devel/oniguruma6
For mbstring extensions switch from devel/oniguruma5
to devel/oniguruma6 to fix security issues covert in
Oniguruma 6.4.
PHP bundles oniguruma 6.3 but i did some more tests,
to make sure nothing breaks.
Also add $FreeBSD$ header to Makefile.ext
PR: 220598
Submitted by: Trond.Endrestol@ximalas.info
MFH: 2017Q3
lang/php70 and lang/php71: Parse multiple [PATH=] and [HOST=] sections properly
Adding a patch to fix bug #74738 in PHP 7.0 and 7.1:
https://bugs.php.net/bug.php?id=74738
Reported by: Philip Jocks <pj@netzkommune.de>
MFH: 2017Q2
graphics/php71-gd: remove options T1LIB and VPX, add option WEBP
Support for T1LIB and VPX was removed in PHP 7.0
Support for WebP support was added in PHP 7.0
PR: 219837
Submitted by: Dani <i.dani@outlook.com>
Update PHP 7.1 from 7.1.4 to 7.1.5
Changelog: http://www.php.net/ChangeLog-7.php#7.1.5
Also remove the patch from devel/php71-gettext
which isn't needed anymore.
MFH: 2017Q2
lang/php70 & lang/php71: revert moving of LIB_DEPENDS
The former commit should pet portlint, but accidently made
deve/pcre a LIB_DEPEND for all php modules.
Pointy hat: tz