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: http://www.php.net/
===> The following configuration options are available for php70-7.0.32:
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
LINKTHR=on: Link thread lib (for threaded extensions)
ZTS=off: Force Zend Thread Safety (ZTS) build
===> Use 'make config' to modify these settings
Remove expired ports:
2018-12-04 math/php70-bcmath: Security Support ends on 3 Dec 2018
2018-12-04 math/php70-gmp: Security Support ends on 3 Dec 2018
2018-12-04 lang/php70: Security Support ends on 3 Dec 2018
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/php70-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/php70: switch to devel/oniguruma6
This change should have been part of r445429.
Changelog was:
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.
PR: 220598
Submitted by: Trond.Endrestol@ximalas.info
MFH: 2017Q3
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/php70-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 from 7.0.18 to 7.0.19
Changelog: http://www.php.net/ChangeLog-7.php#7.0.19
Also remove the patch from devel/php70-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
lang/php70: temporarily hide DTRACE option on aarch64
ld: Zend/zend_dtrace.d.o.h0Xec8: Relocations in generic ELF (EM: 0)
Zend/zend_dtrace.d.o.h0Xec8: error adding symbols: File in wrong format
dtrace: failed to link script
/wrkdirs/usr/ports/lang/php70/work/php-7.0.14/Zend/zend_dtrace.d: failed to link
Zend/zend_dtrace.d.o: ld exited with status 1
dt_modtext:/usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(841):
DOODAD
dt_modtext:/usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c(841):
DOODAD
[...]
PR: 214556
Reported by: pkg-fallout
lang/php70: add notice for poudriere build when ZTS is enabled
Without adding WITH_MPM=event into make.conf the build will fail
when using poudriere. This is currently documentend in /Mk/Uses/php.mk.
Since users do not investigate the framework code, we add the
notice to avoid future confusion.
PR: 214943
Reported by: rainer@ultra-secure.de, ohartmann@walstatt.org
Approved by: mentors (implicit)
lang/php70: DTRACE option is not valid on DragonFly
Note that following the OPTIONS_EXCLUDE+= line appears to redundant
and could be removed, and the OPTIONS_EXCLUDE_FreeBSD_9 line should
be "=" operator, not "+=", from what I can tell.
Approved by: DF support blanket
- Remove redundant definitions of IPV6_DESC and [OPEN]SSL_DESC when closely
matching standard ones from `Mk/bsd.options.desc.mk'
- Rename couple of options to standard name or the one that better reflects
their usage
Fix running make test for php extensions (and maybe php itself)
With the default configuration, all the directives are removed from with
egrep. Then, egrep, seeing that it does not output any line, will
exit(1).
With hat: portmgr
Sponsored by: Absolight
Change www/php*-session's priority to be loaded before most other PHP
extensions.
Many PHP extensions were adding a build dependency on session, so that
it was loaded first. This is now no longer needed, we have a nice
framework handle the extensions ordering.
PR: 203741
Sponsored by: Absolight
lang/php70: switch distfiles from bzip2 to xz
While here also:
- regenerate patches with make makepatch
- replace "sed" with proper ${SED}
- no longer mute ${INSTALL_DATA}
PR: 209881
Reported by: Piotr Kubaj <pkubaj@anongoth.pl>
Approved by: pi (mentor)
Don't use extension.ini any more, and have each extension install in its
file, so the order remains the same.
Every PHP (or Zend) extension now installs its own .ini file in
/usr/local/etc/php. A PHP extension will be automatically activated
when installed. The order into which extensions are loaded is
automatically guessed. In some very rare cases, the guess will be
wrong, and PHP_MOD_PRIO will need to be set. Refer to the USES=php
section of the Porter's Handbook for more information.
Convert ports touching etc/php/extensions.ini manually, or telling the
OP to do it.
And finally, bump PORTREVISION for all php extensions.
PR: 210697
Submitted by: mat
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D7022
If DEFAULT_VERSIONS=php=* is set, then PHP_DEFAULT will be overridden
in bsd.default-versions.mk later, and the value from the Makefile will
not be used at all. We would change bsd.default-versions.mk, but really
these ports should not be changing what the "default" it. Change to
modifying what the "current" version is as PHP_VER.
This fixes some cases of 'make check-sanity' not passing for php extension
ports in Poudriere where there is no LOCALBASE/etc/php.conf to set a proper
PHP_VER. In these cases the PHP_DEFAULT value (of 5.6) is used rather than
the version set by the extension Makefile and the later checks for
whether that version has that extension may incorrectly error.
Move MySQL support from bsd.databases.mk to Uses/mysql.mk.
Also, USE_MYSQL can't happen after bsd.port.pre.mk because it is a USES.
PR: 208971
Submitted by: mat
Exp-run by: antoine
With hat: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D5951
Move USE_BDB support from bsd.databases.mk to its own file.
Also:
- Deorbit WANT_BDB_VER, one can use USES=bdb:<ver> instead.
- USE_BDB can't happen after bsd.port.pre.mk because it is a USES.
PR: 208971
Submitted by: mat
Exp-run by: antoine
With hat: portmgr
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D5951
bsd.php.mk
- Unbreak build for php70
- Cleanup php55/6 extenions
- Put not existing php70 extentions to php55 and php56 extra defines
lang/php70
- Remove mysqli from pdo_mysql it's looping here and does not really depends on
mysqli
- Bump PORTREVISION
This work has been done in collaboration with
- fluffy@
- Franco Fichtner