Commit Graph

17 Commits

Author SHA1 Message Date
Torsten Zuehlsdorff
9701585d4e lang/php73: disable DTRACE option on PowerPC
DTRACE causes ld(1) link probe failures and therefore fails the build.

PR:           233850
Submitted by: Chip Cuccio <chip.cuccio@gmail.com>
MFH:		  2019Q1
2019-01-23 10:48:57 +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
ffa9cd8f50 lang/php73: 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:41:25 +00:00
Torsten Zuehlsdorff
4a9033e840 lang/php73: Upgrade from 7.3.0 to 7.3.1
Changelog:

    Core:
        Fixed bug #76654 (Build failure on Mac OS X on 32-bit Intel).
        Fixed bug #71041 (zend_signal_startup() needs ZEND_API).
        Fixed bug #76046 (PHP generates "FE_FREE" opcode on the wrong line).
        Fixed bug #77291 (magic methods inherited from a trait may be ignored).
    CURL:
        Fixed bug #77264 (curl_getinfo returning microseconds, not seconds).
    COM:
        Fixed bug #77177 (Serializing or unserializing COM objects crashes).
    Exif:
        Fixed bug #77184 (Unsigned rational numbers are written out as signed rationals).
    GD:
        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).
        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).
    MBString:
        Fixed bug #77367 (Negative size parameter in mb_split).
        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).
        Fixed bug #77275 (OPcache optimization problem for ArrayAccess->offsetGet).
    PCRE:
        Fixed bug #77193 (Infinite loop in preg_replace_callback).
    PDO:
        Handle invalid index passed to PDOStatement::fetchColumn() as error.
    Phar:
        Fixed bug #77247 (heap buffer overflow in phar_detect_phar_fname_ext).
    Soap:
        Fixed bug #77088 (Segfault when using SoapClient with null options).
    Sockets:
        Fixed bug #77136 (Unsupported IPV6_RECVPKTINFO constants on macOS).
    Sodium:
        Fixed bug #77297 (SodiumException segfaults on PHP 7.3).
    SPL:
        Fixed bug #77359 (spl_autoload causes segfault).
        Fixed bug #77360 (class_uses causes segfault).
    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.3.1

Also removing the patch committed in r489721. The patch disables the use of
ifuncs and is part of the new relase 7.3.1.

MFH:		2019Q1
2019-01-14 11:05:43 +00:00
Torsten Zuehlsdorff
dfd2e3f597 lang/php73: Fix "Bus error (core dumped)" by disabling ifuncs
PHP 7.3 uses ifuncs optimisations which generates a list of problems on FreeBSD:
https://bugs.php.net/bug.php?id=77284
https://bugs.php.net/bug.php?id=77279
https://bugs.php.net/bug.php?id=77261

Therefore ifuncs will be disabled in PHP 7.3.1. To make it usable until the release,
we import the patch until then:
291589114a

PR:		233024
Submitted by:	Pascal Christen <pascal.christen@hostpoint.ch>
MFH:		2019Q1
2019-01-08 15:54:23 +00:00
Rene Ladan
70da036883 Remove stale IGNORE_WITH_PHP=56 values.
Reminded by:	sunpoet
2019-01-05 15:47:56 +00:00
Torsten Zuehlsdorff
b83be14ee6 lang/php73: Upgrade from RC6 to 7.3.0
Changelog: http://www.php.net/ChangeLog-7.php#7.3.0
2018-12-07 07:50:31 +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
6253b1e00e Update to RC6
Changelog: https://github.com/php/php-src/blob/php-7.3.0RC6/NEWS

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-11-23 10:28:43 +00:00
Ed Maste
8da74486b6 lang/php73: 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
Sponsored by:	The FreeBSD Foundation
2018-11-22 20:20:58 +00:00
Jochen Neumeister
ce1ed0e645 Update to RC5
Changelog: https://github.com/php/php-src/blob/php-7.3.0RC5/NEWS

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-11-07 21:05:55 +00:00
Jochen Neumeister
0b78c1ac33 Update to RC4
Changelog: https://github.com/php/php-src/blob/php-7.3.0RC4/NEWS

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-26 10:15:42 +00:00
Jochen Neumeister
3bba5ba6b9 security/php73-hash: fix build with GCC-based architectures
Unbreak this Port on mips64

PR:		232160
Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>
Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-16 05:14:42 +00:00
Jochen Neumeister
bd6de34b84 Update to RC3
Changelog: https://github.com/php/php-src/blob/php-7.3.0RC3/NEWS

Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-10-12 14:19:56 +00:00
Jochen Neumeister
f53adb8366 bump PORTREVISON after fix in r481618
Approved by:	tz (implicit)
Sponsored by:	Netzkommune HmbH
2018-10-09 17:32:29 +00:00
Torsten Zuehlsdorff
676a54f7ce PHP 7.3: Convert PCRE2 dependency from BUILD to LIB_DEPENDS
This fixes fallout located to PEAR.

Reported by:	mat, antoine
2018-10-09 10:02:36 +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