36 Commits

Author SHA1 Message Date
Torsten Zuehlsdorff
57bde0e17c lang/php72: Upgrade from 7.2.14 to 7.2.15
Changelog:

    Core:
        Fixed bug #77339 (__callStatic may get incorrect arguments).
        Fixed bug #77494 (Disabling class causes segfault on member access).
        Fixed bug #77530 (PHP crashes when parsing `(2)::class`).
    Curl:
        Fixed bug #76675 (Segfault with H2 server push).
    GD:
        Fixed bug #73281 (imagescale(…, IMG_BILINEAR_FIXED) can cause black border).
        Fixed bug #73614 (gdImageFilledArc() doesn't properly draw pies).
        Fixed bug #77272 (imagescale() may return image resource on failure).
        Fixed bug #77391 (1bpp BMPs may fail to be loaded).
        Fixed bug #77479 (imagewbmp() segfaults with very large images).
    ldap:
        Fixed bug #77440 (ldap_bind using ldaps or ldap_start_tls()=exception in libcrypto-1_1-x64.dll).
    Mbstring:
        Fixed bug #77454 (mb_scrub() silently truncates after a null byte).
    MySQLnd:
        Fixed bug #75684 (In mysqlnd_ext_plugin.h the plugin methods family has no external visibility).
    Opcache:
        Fixed bug #77361 (configure fails on 64-bit AIX when opcache enabled).
    OpenSSL:
        Fixed bug #77390 (feof might hang on TLS streams in case of fragmented TLS records).
    PDO:
        Fixed bug #77273 (array_walk_recursive corrupts value types leading to PDO failure).
    Sockets:
        Fixed bug #76839 (socket_recvfrom may return an invalid 'from' address on MacOS).
    Standard:
        Fixed bug #77395 (segfault about array_multisort).
        Fixed bug #77439 (parse_str segfaults when inserting item into existing array).

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

PR:		235575 235577
MFH:		2019Q1
2019-02-08 10:55:42 +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
386ed5bd88 lang/php72: 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:30:54 +00:00
Torsten Zuehlsdorff
3b852c2cd4 lang/php72: Upgrade from 7.2.13 to 7.2.14
Changelog:

    Core:
        Fixed bug #77369 (memcpy with negative length via crafted DNS response).
        Fixed bug #71041 (zend_signal_startup() needs ZEND_API).
        Fixed bug #76046 (PHP generates "FE_FREE" opcode on the wrong line).
    COM:
        Fixed bug #77177 (Serializing or unserializing COM objects crashes).
    Date:
        Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is less than 1 second).
    Exif:
        Fixed bug #77184 (Unsigned rational numbers are written out as signed rationals).
    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).
        Fixed bug #77195 (Incorrect error handling of imagecreatefromjpeg()).
        Fixed bug #77198 (auto cropping has insufficient precision).
        Fixed bug #77200 (imagecropauto(…, GD_CROP_SIDES) crops left but not right).
    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).
    OCI8:
        Fixed bug #76804 (oci_pconnect with OCI_CRED_EXT not working).
        Added oci_set_call_timeout() for call timeouts.
        Added oci_set_db_operation() for the DBOP end-to-end-tracing attribute.
    Opcache:
        Fixed bug #77215 (CFG assertion failure on multiple finalizing switch frees in one block).
    PDO:
        Handle invalid index passed to PDOStatement::fetchColumn() as error.
    Phar:
        Fixed bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext).
    Sockets:
        Fixed bug #77136 (Unsupported IPV6_RECVPKTINFO constants on macOS).
    SQLite3:
        Fixed bug #77051 (Issue with re-binding on SQLite3).
    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.2.14

MFH:		2019Q1
2019-01-14 11:03:01 +00:00
Torsten Zuehlsdorff
64c8e5a937 lang/php72: Upgrade from 7.2.12 to 7.2.13
Changelog: http://www.php.net/ChangeLog-7.php#7.2.13

MFH:		2018Q4
2018-12-07 07:54:44 +00:00
Jochen Neumeister
fa0d2e76ea Update to 7.2.12
Changelog:
 - http://www.php.net/ChangeLog-7.php#7.2.12

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-11-10 17:33:27 +00:00
Jochen Neumeister
a1899205e5 Update to 7.2.11
Changelogs:
 - http://www.php.net/releases/7_2_11.php
 - http://www.php.net/ChangeLog-7.php#7.2.11

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-12 15:15:15 +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
d5b288352e Update to 7.2.10
Changelog: http://www.php.net/ChangeLog-7.php#7.2.10

Approved by:	tz (implicit)
MFH:		2018Q3
Sponsored by:	Netzkommune GmbH
2018-09-13 18:40:43 +00:00
Jochen Neumeister
b8a57ff14b Update to 7.2.9
Changelog: http://www.php.net/ChangeLog-7.php#7.2.9

MFH:		2018Q3
2018-08-18 15:32:16 +00:00
Torsten Zuehlsdorff
67c1c30557 lang/php72: Update from 7.2.7 to 7.2.8
Changelog: http://www.php.net/ChangeLog-7.php#7.2.8

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:06:22 +00:00
Torsten Zuehlsdorff
42832a8de7 lang/php72: Update from 7.2.6 to 7.2.7
Changelog: http://www.php.net/ChangeLog-7.php#7.2.7
2018-06-25 11:41:48 +00:00
Torsten Zuehlsdorff
98b059096f lang/php72: Update from 7.2.5 to 7.2.6
Changelog: http://www.php.net/ChangeLog-7.php#7.2.6

MFH:		2018Q2
2018-05-29 14:33:31 +00:00
Torsten Zuehlsdorff
40797a5351 lang/php72: Update from 7.2.4 to 7.2.5
Changelog: http://www.php.net/ChangeLog-7.php#7.2.5

MFH:		2018Q2
Security:	CVE-2018-5712
2018-04-26 14:50:39 +00:00
Torsten Zuehlsdorff
ad832ffe1e lang/php72: Update from 7.2.3 to 7.2.4
Changelog: http://www.php.net/ChangeLog-7.php#7.2.4
2018-03-29 13:11:35 +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
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
Torsten Zuehlsdorff
0ea0faa262 lang/php72: Update from 7.2.2 to 7.2.3
Changelog: http://www.php.net/ChangeLog-7.php#7.2.3

MFH: 2018Q1
2018-03-02 13:11:59 +00:00
Torsten Zuehlsdorff
9ab31ae0c2 lang/php72: Update from 7.2.1 to 7.2.2
Changelog: http://www.php.net/ChangeLog-7.php#7.2.2

MFH: 2018Q1
2018-02-02 11:40:30 +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
de63904190 lang/php72: Update from 7.2.0 to 7.2.1
Changelog: http://www.php.net/ChangeLog-7.php#7.2.1

PR:  224953
MFH: 2018Q1
2018-01-10 16:11:15 +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
Torsten Zuehlsdorff
006749a501 lang/php72: Update from 7.2.0 RC 6 to 7.2.0
Changelog: http://www.php.net/ChangeLog-7.php#7.2.0
2017-12-06 15:40:48 +00:00
Torsten Zuehlsdorff
da22e50781 lang/php72: Add support for libargon2
PHP now provides support for argon-hashes. Add this support
to the port.

Reported by: Petr Hejl <petr.hejl@freedev.cz>
2017-12-05 17:00:48 +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
327558dc9e lang/php72: Add missing conflict to php71-*
Also remove IPV6_DESC in favor of default description
2017-11-23 11:41:51 +00:00
Torsten Zuehlsdorff
84de02461f lang/php72: Add missing header file
Add missing file zend_smart_string.h to pkg-plist.
The allows building many more of the pecl-* ports.

PR:           223766
Submitted by: Raivo Hool <raivo.hool@gmail.com>
Reported by:  Raivo Hool <raivo.hool@gmail.com>, Daniel Ylitalo <daniel@blodan.se>
2017-11-21 12:05:50 +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
Torsten Zuehlsdorff
687591dd75 Add PHP 7.2 RC6
Notable changes:
- mcrypt module was removed
- sodium module was added
- sybase_ct artifacts removed

Also many PECL ports will not work with this version
since some files got renamed.

Reviewed by:           mat, ale, Rainer Duffner <rainer@ultra-secure.de>
Differential Revision: https://reviews.freebsd.org/D12980
2017-11-16 10:48:48 +00:00