Commit graph

73 commits

Author SHA1 Message Date
Torsten Zuehlsdorff
e26436dd53 lang/php71: Update from 7.1.29 to 7.1.30
Changelog:

    EXIF:
        Fixed bug #77988 (heap-buffer-overflow on php_jpg_get16) (CVE-2019-11040).
    GD:
        Fixed bug #77973 (Uninitialized read in gdImageCreateFromXbm) (CVE-2019-11038).
    Iconv:
        Fixed bug #78069 (Out-of-bounds read in iconv.c:_php_iconv_mime_decode() due to integer overflow) (CVE-2019-11039).
    SQLite:
        Fixed bug #77967 (Bypassing open_basedir restrictions via file uris).

Changelog taken from: https://www.php.net/ChangeLog-7.php#7.1.30

MFH:		2019Q2
2019-05-31 21:56:09 +00:00
Torsten Zuehlsdorff
a2db2a0a10 lang/php71: put mailheader patch back
Reported by:	mat
2019-05-08 09:46:18 +00:00
Torsten Zuehlsdorff
e856a4bc8e lang/php71: Update from 7.1.28 to 7.1.29
Changelog:

    EXIF:
        Fixed bug #77950 (Heap-buffer-overflow in _estrndup via exif_process_IFD_TAG).
    Mail:
        Fixed bug #77821 (Potential heap corruption in TSendMail()).

Changelog taken from: https://www.php.net/ChangeLog-7.php#7.1.29

MFH:		2019Q2
2019-05-08 06:42:36 +00:00
Dmitry Marakasov
8f451eb73a Update WWW
Approved by:	portmgr blanket
2019-04-30 14:03:37 +00:00
Torsten Zuehlsdorff
45aaa651f1 PHP: Change MOD_PRIO for imap to avoid core dumps
PR:		235917
Reported by:	Sergey Anokhin <admin@5034.ru>
MFH:		2019Q2
2019-04-11 09:49:39 +00:00
Sunpoet Po-Chuan Hsieh
40c9c7f7eb Update devel/readline to 8.0
- Bump PORTREVISION of dependent ports for shlib change

Changes:	https://tiswww.case.edu/php/chet/readline/CHANGES
PR:		236156
Exp-run by:	antoine
2019-04-09 14:04:49 +00:00
Torsten Zuehlsdorff
032547c16b 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>
2019-04-08 07:21:23 +00:00
Torsten Zuehlsdorff
3ed0968d9d Update PHP 7.1 from 7.1.27 to 7.1.28
Changelog:

    EXIF:
        Fixed bug #77753 (Heap-buffer-overflow in php_ifd_get32s).
        Fixed bug #77831 (Heap-buffer-overflow in exif_iif_add_value).
    SQLite3:
        Added sqlite3.defensive INI directive.

Changelog taken from: https://www.php.net/ChangeLog-7.php#7.1.28

MFH:		2019Q2
2019-04-05 13:49:11 +00:00
Torsten Zuehlsdorff
a09e0369dd Update PHP 7.1 from 7.1.26 to 7.1.27
Changelog:

    Core:
        Fixed bug #77630 (rename() across the device may allow unwanted access during processing).
    EXIF:
        Fixed bug #77509 (Uninitialized read in exif_process_IFD_in_TIFF).
        Fixed bug #77540 (Invalid Read on exif_process_SOFn).
        Fixed bug #77563 (Uninitialized read in exif_process_IFD_in_MAKERNOTE).
        Fixed bug #77659 (Uninitialized read in exif_process_IFD_in_MAKERNOTE).
    PHAR:
        Fixed bug #77396 (Null Pointer Dereference in phar_create_or_parse_filename).
        Fixed bug #77586 (phar_tar_writeheaders_int() buffer overflow).
    SPL:
        Fixed bug #77431 (openFile() silently truncates after a null byte).

Changelog taken from: http://www.php.net/ChangeLog-7.php#7.1.27

MFH:		2019Q1
2019-03-08 15:46:35 +00:00
Torsten Zuehlsdorff
d32899cde3 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>
2019-01-21 13:19:30 +00:00
Torsten Zuehlsdorff
c511d9d3ef 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>
2019-01-17 10:11:42 +00:00
Torsten Zuehlsdorff
a7a3e1009a Update PHP 7.1 from 7.1.25 to 7.1.26
Changelog:

    Core:
        Fixed bug #77369 (memcpy with negative length via crafted DNS response).
    GD:
        Fixed bug #77269 (efree() on uninitialized Heap data in imagescale leads to use-after-free).
        Fixed bug #77270 (imagecolormatch Out Of Bounds Write on Heap).
    IMAP:
        Fixed bug #77020 (null pointer dereference in imap_mail).
    Mbstring:
        Fixed bug #77370 (Buffer overflow on mb regex functions - fetch_token).
        Fixed bug #77371 (heap buffer overflow in mb regex functions - compile_string_node).
        Fixed bug #77381 (heap buffer overflow in multibyte match_at).
        Fixed bug #77382 (heap buffer overflow due to incorrect length in expand_case_fold_string).
        Fixed bug #77385 (buffer overflow in fetch_token).
        Fixed bug #77394 (Buffer overflow in multibyte case folding - unicode).
        Fixed bug #77418 (Heap overflow in utf32be_mbc_to_code).
    Phar:
        Fixed bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext).
    Xmlrpc:
        Fixed bug #77242 (heap out of bounds read in xmlrpc_decode()).
        Fixed bug #77380 (Global out of bounds read in xmlrpc base64 code).

Changelog taken from: http://www.php.net/ChangeLog-7.php#7.1.26

MFH:		2019Q1
2019-01-14 11:00:50 +00:00
Rene Ladan
70da036883 Remove stale IGNORE_WITH_PHP=56 values.
Reminded by:	sunpoet
2019-01-05 15:47:56 +00:00
Mathieu Arnold
cf5d4f075b Put back the mail header patch.
Pointy hat:	tz
2018-12-09 10:12:06 +00:00
Torsten Zuehlsdorff
6a514bf3b2 lang/php71: Upgrade from 7.1.24 to 7.1.25
Changelog: http://www.php.net/ChangeLog-7.php#7.1.25

MFH:		2018Q4
2018-12-07 07:53:14 +00:00
Rene Ladan
968c62c6fb Remove version 7.0 from the IGNORE_WITH_PHP list. 2018-12-06 11:22:12 +00:00
Jochen Neumeister
693053fd0c Update to 7.1.24
Changelog: http://www.php.net/ChangeLog-7.php#7.1.24

Approved by:	tz (implicit)
MFH:		2018Q4
Sponsored by:	Netzkommune GmbH
2018-11-15 16:40:59 +00:00
Jochen Neumeister
053d9f5627 Remove PHP 55, this is a long time EOL
Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-21 12:32:19 +00:00
Antoine Brodin
a282a908fa Ignore some ports with some versions of php
PR:		232398
2018-10-21 11:17:12 +00:00
Jochen Neumeister
17985fcd5c Update to 7.1.23
Changelog:
 - http://www.php.net/releases/7_1_23.php
 - http://www.php.net/ChangeLog-7.php#7.1.23

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-12 17:03:07 +00:00
Torsten Zuehlsdorff
3a5533b48d 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
2018-10-08 08:52:51 +00:00
Ed Maste
2371ee22c7 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
2018-09-18 16:08:00 +00:00
Jochen Neumeister
16601cd5db Update to 7.1.22
Changelog: http://www.php.net/ChangeLog-7.php#7.1.22

Approved by:	tz (implicit)
MFH:		2018Q3
Sponsored by:	Netzkommune GmbH
2018-09-15 14:55:54 +00:00
Jochen Neumeister
c5f28e5e9a revert php-7.1.x-mail-header.patch into distinfo
Point hat: joneum

MFH:		2018Q3
2018-08-17 19:05:29 +00:00
Jochen Neumeister
72a297ed8d Update to 7.1.21
Changelog: http://www.php.net/ChangeLog-7.php#7.1.21

Approved by:	tz (implicit)
MFH:		2018Q3
2018-08-17 19:02:36 +00:00
Torsten Zuehlsdorff
982b80dfaf 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>
2018-07-31 08:44:56 +00:00
Torsten Zuehlsdorff
65631eb2a8 Update PHP 7.1 from 7.1.19 to 7.1.20
Changelog: http://www.php.net/ChangeLog-7.php#7.1.20

Also patch out MySQL 8 auth changes, which makes the hash
extension mandatory instead of optional and introduce further
bugs:
d6e81f0bfd

MFH:		2018Q3
2018-07-23 15:04:55 +00:00
Torsten Zuehlsdorff
8bc58525b0 Update PHP 7.1 from 7.1.18 to 7.1.19
Changelog: http://www.php.net/ChangeLog-7.php#7.1.19
2018-06-25 11:40:54 +00:00
Torsten Zuehlsdorff
fcd2406d99 Update PHP 7.1 from 7.1.17 to 7.1.18
Changelog: http://www.php.net/ChangeLog-7.php#7.1.18

MFH:		2018Q2
2018-05-29 14:32:55 +00:00
Torsten Zuehlsdorff
c48fd6f458 Update PHP 7.1 from 7.1.16 to 7.1.17
Changelog: http://www.php.net/ChangeLog-7.php#7.1.17

MFH:		2018Q2
Security:	CVE-2018-5712
2018-04-26 14:49:18 +00:00
Torsten Zuehlsdorff
10483217e5 Update PHP 7.1 from 7.1.15 to 7.1.16
Changelog: http://www.php.net/ChangeLog-7.php#7.1.16
2018-03-29 13:10:36 +00:00
Yuri Victorovich
7ca8c2691e devel/oniguruma: Update to 6.8.1
Only changed the shared object version (forgotten on the previous release).
2018-03-19 06:03:16 +00:00
Mark Linimon
42fcb49869 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)
2018-03-17 21:42:48 +00:00
Yuri Victorovich
ecda380b8d devel/oniguruma: Update to 6.8.0
Changelog:
https://github.com/kkos/oniguruma/releases/tag/v6.8.0

Bumping 9 depending ports because oniguruma's interface
actually changed in an incompatible way,
see https://github.com/kkos/oniguruma/issues/79 ,
while the shared library lib/libonig.so.4.0.0 didn't change
the revision number. This is a bug in the upstream release.
2018-03-17 20:31:20 +00:00
Torsten Zuehlsdorff
1701150e52 Update PHP 7.1 from 7.1.14 to 7.1.15
Changelog: http://www.php.net/ChangeLog-7.php#7.1.15

MFH: 2018Q1
2018-03-12 13:58:58 +00:00
Bernard Spil
f0229aab54 Migrate USE_APACHE to USES= apache
- Following migration of Mk/bsd.apache.mk to Mk/Uses/apache.mk

With hat:	apache
2018-03-11 18:36:16 +00:00
Bernard Spil
a80b8e64ed Mk/Uses/apache.mk: Migrate Mk/bsd.apache.mk to Uses
- Chase required changes in framework (bsd.sanity.mk, bsd.port.mk)
 - Chase required changes in ports (version checks)
 - Chase required changes in PHP ports (include bsd.apache.mk)
 - exp-run by antoine, brnrd, joneum

PR:             223691 (exp-run)
Reviewed by:    joneum (hat apache), mat (portmgr), antoine (portmgr)
Approved by:    joneum (hat apache)
Approved by:	portmgr
With hat:       apache
2018-03-11 14:23:28 +00:00
Mark Linimon
85d0e8ddf5 Disable dtrace usdt on armv6, armv7 and aarch64, for lang/php* ports.
Tested for no regression on amd64.

PR:		224271
Approved by:	tz (maintainer)
2018-03-11 06:37:14 +00:00
Mathieu Arnold
a1993564e0 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
2018-03-08 19:48:41 +00:00
Torsten Zuehlsdorff
f19d9106ee Update PHP 7.1 from 7.1.13 to 7.1.14
Changelog: http://www.php.net/ChangeLog-7.php#7.1.14

Remove patch since upstream integrated a fix for the issue

MFH: 2018Q1
2018-02-02 11:46:26 +00:00
Tijl Coosemans
8c60cffc90 - 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).
2018-01-12 12:57:18 +00:00
Torsten Zuehlsdorff
c687c65114 Update PHP 7.1 from 7.1.12 to 7.1.13
Changelog: http://www.php.net/ChangeLog-7.php#7.1.13

PR:  224955
MFH: 2018Q1
2018-01-10 16:07:02 +00:00
Li-Wen Hsu
86d4a95570 Add an upstream patch:
http://git.php.net/?p=php-src.git;a=commit;h=72ec23d8233ac9a2071f991752cff55febb167d5

This eliminate a warning while building with clang on 32-bit system and enable
other programs' configure scripts test PHP feature with `-Werror`

Approved by:	tz (maintainer)
2017-12-17 10:19:10 +00:00
Li-Wen Hsu
f48968dd3e - Add EMBED to default on options
This is required for the php module of www/unit

Approved by:	ale, tz (maintainers)
2017-12-05 08:00:12 +00:00
Gerald Pfeifer
ddfec268c3 Remove DTRACE_DESC in favor of the default description.
Approved by:	tz
2017-11-29 18:46:30 +00:00
Gerald Pfeifer
24f8089a52 Remove DEBUG_DESC in favor of the default one.
Approved by:	tz
2017-11-27 21:38:06 +00:00
Torsten Zuehlsdorff
bfa2c791d6 Update PHP 7.1 from 7.1.11 to 7.1.12
Changelog: http://www.php.net/ChangeLog-7.php#7.1.12

MFH:      2017Q4
2017-11-24 10:13:52 +00:00
Torsten Zuehlsdorff
ca8cbf9639 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>
2017-11-23 11:38:59 +00:00
Antoine Brodin
3485652593 Remove nops, setting USES after bsd.port.pre.mk doesn't do anything
With hat:	portmgr
2017-11-19 21:30:42 +00:00
Thomas Zander
dae8dbb3c7 Chase renaming of devel/oniguruma6 to devel/oniguruma
PR:		222869
Reported by:	m.bueker@berlin.de
2017-11-12 14:00:48 +00:00