Commit Graph

62 Commits

Author SHA1 Message Date
Muhammad Moinur Rahman faabc6b2d4 lang/php80: Update version 8.0.27=>8.0.28
Changelog: https://www.php.net/ChangeLog-8.php#8.0.28
Sponsored by:	Bounce Experts
2023-02-15 11:30:48 -06:00
Dima Panov 6ef36e437b lang/php80: unbreak build after 6e1233be22 (Convert USE_LDAP to USES=ldap)
Approved by:	portmgr blanket
2023-02-11 14:58:59 +03:00
Muhammad Moinur Rahman 6e1233be22 Mk/**ldap.mk: Convert USE_LDAP to USES=ldap
Convert the USE_LDAP=yes to USES=ldap and adds the following features:

- Adds the argument USES=ldap:server to add openldap2{4|5|6}-server as
  RUN_DEPENDS
- Adds the argument USES=ldap<version> and replaces WANT_OPENLDAP_VER
- Adds OPENLDAP versions in bsd.default-versions.mk
- Adds USE_OPENLDAP/WANT_OPENLDAP_VER in Mk/bsd.sanity.mk
- Changes consumers to use the features

Reviewed by:	delphij
Approved by:	portmgr
Differential Revision: https://reviews.freebsd.org/D38233
2023-02-08 04:53:56 -06:00
Muhammad Moinur Rahman 8ea662c5f7 www/mod_php8*: Fix build
USES=apache must be called before bsd.pre.port.mk however this was
overridden using an include clause. During my previous commit on
refactoring apache.mk these include blocks were deleted which causes
failure to the build of these port as USES=apache in preport.mk is never
called. This commit changes and refactors the code.

Fixes: 40843b1 Mk/Uses/apache.mk: Refactor after removal of older versions
2023-01-25 15:13:29 -06:00
Muhammad Moinur Rahman 40843b1ccb Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:

- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
  from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
  one available version in the tree. However the version checks are
  still valid and should work flawlessly whenever a new version is
  added. For example USES=apache:2.2+ are simply replaced with
  USES=apache. As currently there are no other versions available for
  test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces

Approved by:    portmgr
Differential Revision: https://reviews.freebsd.org/D38113
2023-01-25 11:54:07 -06:00
Muhammad Moinur Rahman bdae7d6bff lang/php80: Update version 8.0.26=>8.0.27
Approved by:	tz (private email)
MFH:		2023Q1
Relnotes:       https://www.php.net/ChangeLog-8.php#8.0.27
Sponsored by:	Bounce Experts
2023-01-09 18:07:49 -06:00
Muhammad Moinur Rahman f636aab200 lang/php80: Update version 8.0.25=>8.0.26
* CLI:
  - Fixed bug GH-9709 (Null pointer dereference with -w/-s options).
* Core:
  - Fixed bug GH-9752 (Generator crashes when interrupted during
    argument evaluation with extra named params).
  - Fixed bug GH-9801 (Generator crashes when memory limit is exceeded
    during initialization).
  - Fixed potential NULL pointer dereference in Windows shm*()
    functions.
  - Fixed bug GH-9750 (Generator memory leak when interrupted during
    argument evaluation.
* Date:
  - Fixed bug GH-9763 (DateTimeZone ctr mishandles input and adds null
    byte if the argument is an offset larger than 100*60 minutes).
* FPM:
  - Fixed bug GH-9754 (SaltStack (using Python subprocess) hangs when
    running php-fpm 8.1.11).
* mysqli:
  - Fixed bug GH-9841 (mysqli_query throws warning despite using
    silenced error mode).
* OpenSSL:
  - Fixed bug GH-8430 (OpenSSL compiled with no-md2, no-md4 or no-rmd160
    does not build).
* SOAP:
  - Fixed GH-9720 (Null pointer dereference while serializing the
    response).

Approved by:	tz (By private mail)
Sponsored by:	Bounce Experts
2022-11-27 07:36:54 -06:00
Muhammad Moinur Rahman 5b7b2aa164 lang/php80: Update version 8.0.24=>8.0.25
* GD:
  - Fixed bug #81739: OOB read due to insufficient input validation in
    imageloadfont(). (CVE-2022-31630)
* Hash:
  - Fixed bug #81738: buffer overflow in hash_update() on long parameter
    (CVE-2022-37454)
* Session:
  - Fixed bug GH-9583 (session_create_id() fails with user defined save
    handler that doesn't have a validateId() method).
* Streams:
  - Fixed bug GH-9590 (stream_select does not abort upon exception or
    empty valid fd set).

Approved by:	tz (By private mail)
MFH:		2022Q4
Relnotes:       https://www.php.net/ChangeLog-8.php#8.0.25
Sponsored by:	Bounce Experts
2022-10-29 14:49:48 -05:00
Muhammad Moinur Rahman 24d9ef5e73 lang/php80: Update version 8.0.23=>8.0.24
* Core:
  - Fixed bug GH-9323 (Crash in ZEND_RETURN/GC/zend_call_function)
    (Tim Starling)
  - Fixed bug GH-9361 (Segmentation fault on script exit #9379).
  - Fixed bug GH-9407 (LSP error in eval'd code refers to wrong class
    for static type).
  - Fixed bug #81727: Don't mangle HTTP variable names that clash with
    ones that have a specific semantic meaning. (CVE-2022-31629)
* DOM:
  - Fixed bug #79451 (DOMDocument->replaceChild on doctype causes double
    free).
* FPM:
  - Fixed bug GH-8885 (FPM access.log with stderr begins to write logs
    to error_log after daemon reload).
  - Fixed bug #77780 ("Headers already sent..." when previous connection
    was aborted).
* GMP:
  - Fixed bug GH-9308 (GMP throws the wrong error when a GMP object is
    passed to gmp_init()).
* Intl:
  - Fixed bug GH-9421 (Incorrect argument number for ValueError in
    NumberFormatter).
* Phar:
  - Fixed bug #81726: phar wrapper: DOS when using quine gzip file.
    (CVE-2022-31628)
* PDO_PGSQL:
  - Fixed bug GH-9411 (PgSQL large object resource is incorrectly
    closed).
* Reflection:
  - Fixed bug GH-8932 (ReflectionFunction provides no way to get the
    called class of a Closure).
  - Fixed bug GH-9409 (Private method is incorrectly dumped as
    "overwrites").
* Streams:
  - Fixed bug GH-9316 ($http_response_header is wrong for long status
    line).

Approved by:	tz (By private mail)
Relnotes:	https://www.php.net/ChangeLog-8.php#8.0.24
Sponsored by:	Bounce Experts
2022-10-01 13:36:34 -05:00
Stefan Eßer fb16dfecae Remove WWW entries moved into port Makefiles
Commit b7f05445c0 has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
2022-09-07 23:58:51 +02:00
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00
Muhammad Moinur Rahman 0d79b53689 lang/php80: Update version 8.0.22=>8.0.23
* Core:
  - Fixed incorrect double to long casting in latest clang.
* DBA:
  - Fixed LMDB driver memory leak on DB creation failure (Girgias)
  - Fixed bug GH-9155 (dba_open("non-existing", "c-", "flatfile")
  segfaults).
  * Intl:
  - Fixed IntlDateFormatter::formatObject() parameter type.
* OPcache:
  - Fixed bug GH-9033 (Loading blacklist file can fail due to negative
  length).
* PDO_SQLite:
  - Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values).
* SQLite3:
  - Fixed bug GH-9032 (SQLite3 authorizer crashes on NULL values).
* Standard:
  - Fixed bug GH-9017 (php_stream_sock_open_from_socket could return
  NULL).
* Streams:
  - Fixed bug GH-8472 (The resource returned by stream_socket_accept may
  have incorrect metadata).
  - Fixed bug GH-8409 (SSL handshake timeout leaves persistent
  connections hanging).

Approved by:	tz (By private mail)
Relnotes:	https://www.php.net/ChangeLog-8.php#8.0.23
Sponsored by:	Bounce Experts
2022-09-03 07:48:35 -05:00
Muhammad Moinur Rahman 33839ffd1d lang/php80: Update version 8.0.20=>8.0.22
- STRIP Binaries [1]

CLI:
- Fixed potential overflow for the builtin server via the
  PHP_CLI_SERVER_WORKERS environment variable.
Core:
- Fixed bug GH-8923 (error_log on Windows can hold the file write lock).
- Fixed bug GH-8995 (WeakMap object reference offset causing TypeError).
Date:
- Fixed bug #80047 (DatePeriod doesn't warn with custom
  DateTimeImmutable).
DBA:
- Fixed LMDB driver hanging when attempting to delete a non-existing
  key.
FPM:
- Fixed zlog message prepend, free on incorrect address.
- Fixed possible double free on configuration loading failure.
GD:
- Fixed bug GH-8848 (imagecopyresized() error refers to the wrong
  argument).
Intl:
- Fixed build for ICU 69.x and onwards.
OPcache:
- Fixed bug GH-8847 (PHP hanging infinitly at 100% cpu when check php
  syntaxe of a valid file).
Standard:
- Fixed the crypt_sha256/512 api build with clang > 12.
- Uses CCRandomGenerateBytes instead of arc4random_buf on macOs.

Reported by:	sunpoet [1]
Approved by:	tz (private email)
Relnotes:       https://www.php.net/ChangeLog-8.php#8.0.22
Sponsored by:	Bounce Experts
2022-08-06 14:12:13 -05:00
Muhammad Moinur Rahman debc1294d3 lang/php80: Update version 8.0.19=>8.0.20
- CLI:
  Fixed bug #8575 (CLI closes standard streams too early).
- Core:
  Fixed Haiku ZTS builds.
- Date:
  Fixed bug #8471 (Segmentation fault when converting immutable and
  mutable DateTime instances created using reflection).
- FPM:
  * Fixed ACL build check on MacOS.
  * Fixed bug #72185: php-fpm writes empty fcgi record causing nginx 502
- Mysqlnd:
  Fixed bug #81719: mysqlnd/pdo password buffer overflow.
  (CVE-2022-31626)
- OPcache:
  Fixed bug #8466 (ini_get() is optimized out when the option does not
  exist).
- Pcntl:
  Fixed Haiku build.
- Pgsql:
  Fixed bug #81720: Uninitialized array in pg_query_params().
  (CVE-2022-31625)
- Soap:
  * Fixed bug #8578 (Error on wrong parameter on SoapHeader constructor).
  * Fixed bug #8538 (SoapClient may strip parts of nmtokens).
- SPL:
  Fixed bug #8235 (iterator_count() may run indefinitely).
- Zip:
  Fixed type for index in ZipArchive::replaceFile.

Approved by:	tz (private email)
Relnotes: https://www.php.net/ChangeLog-8.php#8.0.20
Sponsored by:	Bounce Experts
2022-06-10 08:58:50 -05:00
Muhammad Moinur Rahman a6acea55b9 lang/php80: Update version 8.0.18=>8.0.19
* Core:
  Fixed bug #8289 (Exceptions thrown within a yielded from iterator are
   not rethrown into the generator).
* Date:
  Fixed bug #7979 (DatePeriod iterator advances when checking if valid).
* FFI:
  Fixed bug #8433 (Assigning function pointers to structs in FFI leaks).
* FPM:
  Fixed bug #76003 (FPM /status reports wrong number of active processe)
  Fixed bug #77023 (FPM cannot shutdown processes).
  Fixed comment in kqueue remove callback log message.
* Iconv:
  Fixed bug #8218 (ob_end_clean does not reset Content-Encoding header).
* Intl:
  Fixed bug #8364 (msgfmt_format $values may not support references).
* MySQLi:
  Fixed bug #8267 (MySQLi uses unsupported format specifier on Windows).
* SPL:
  Fixed bug #8366 (ArrayIterator may leak when calling __construct()).
  Fixed bug #8273 (SplFileObject: key() returns wrong value).
* Streams:
  Fixed php://temp does not preserve file-position when switched to
  temporary file.
* zlib:
  Fixed bug #8218 (ob_end_clean does not reset Content-Encoding header).

Approved by:	tz (private email)
Sponsored by:	Bounce Experts
2022-05-13 13:57:01 -05:00
Thierry Thomas 0703b15c9b lang/php??, mail/php*-imap: chase panda-cclient 2022-04-19 22:49:43 +02:00
Torsten Zuehlsdorff adc832aeba lang/php80: Upgrade from 8.0.17 to 8.0.18
Changelog:

    Core:
        Fixed freeing of internal attribute arguments.
        Fixed bug #8070 (memory leak of internal function attribute hash).
        Fixed bug #8160 (ZTS support on Alpine is broken).
    Filter:
        Fixed signedness confusion in php_filter_validate_domain().
    Intl:
        Fixed bug #8142 (Compilation error on cygwin).
    MBString:
        Fixed bug #8208 (mb_encode_mimeheader: $indent functionality broken).
    MySQLi:
        Fixed bug #8068 (mysqli_fetch_object creates inaccessible properties).
    Pcntl:
        Fixed bug #8142 (Compilation error on cygwin).
    PgSQL:
        Fixed result_type related stack corruption on LLP64 architectures.
        Fixed bug #8253 (pg_insert() fails for references).
    Sockets:
        Fixed Solaris builds.
    SPL:
        Fixed bug #8121 (SplFileObject - seek and key with csv file inconsistent).
    Standard:
        Fixed bug #8048 (Force macOS to use statfs).

Sponsored by:	Bounce Experts
2022-04-16 00:31:12 +02:00
Charlie Li d63665f7cd textproc/libxml2: bump all LIB_DEPENDS consumers
This is a separate commit to facilitate easier cherry-picking for
quarterly.

PR: 262853, 262940, 262877, 263126
Approved by: fluffy (mentor)
2022-04-10 15:11:41 -04:00
Matthias Fechner 247c7db751 textproc/libxml2: bump all dependencies
This should make sure that all dependent ports will pick
up the new version commited with a13ec21cd7
2022-03-26 09:27:27 +01:00
Piotr Kubaj b6bb44e5ba pcre: fix runtime issues on powerpc
In sljitConfigInternal.h, pcre checks for existence of __builtin___clear_cache() function.
LLVM provides that function for all platforms, even those that don't have implemented flushing the cache.

This leads to runtime errors on e.g. powerpc (32-bit) with __clear_cache() calling compilerrt_abort(), resulting in SIGABRT.
2022-03-25 14:29:03 +00:00
Muhammad Moinur Rahman 34f845f021 lang/php80: Update version 8.0.16=>8.0.17
Core:
  Fixed Haiku ZTS build.
GD:
  Fixed libpng warning when loading interlaced images.
FPM:
  Fixed bug #76109 (Unsafe access to fpm scoreboard).
Iconv:
  Fixed bug #7953 (ob_clean() only does not set Content-Encoding).
  Fixed bug #7980 (Unexpected result for iconv_mime_decode).
MySQLnd:
  Fixed bug #8058 (NULL pointer dereference in mysqlnd package).
OPcache:
  Fixed bug #8074 (Wrong type inference of range() result).
Reflection:
  Fixed bug #8080 (ReflectionClass::getConstants() depends on def.
  order).
Zlib:
  Fixed bug #7953 (ob_clean() only does not set Content-Encoding).

Approved by:	tz (private email)
Relnotes: https://www.php.net/ChangeLog-8.php#PHP_8_0
Sponsored by:	Bounce Experts
2022-03-17 20:29:19 -05:00
Muhammad Moinur Rahman 11c9b8a17e lang/php80: Update version 8.0.15=>8.0.16
Core:
  Fixed bug #81430 (Attribute instantiation leaves dangling pointer).
  Fixed bug #7896 (Environment vars may be mangled on Windows).
FFI:
  Fixed bug #7867 (FFI::cast() from pointer to array is broken).
Filter:
  Fix #81708: UAF due to php_filter_float() failing for ints.
FPM:
  Fixed memory leak on invalid port.
MBString:
  Fixed bug #7902 (mb_send_mail may delimit headers with LF only).
MySQLnd:
  Fixed bug #7972 (MariaDB version prefix 5.5.5- is not stripped).
Sockets:
  Fixed ext/sockets build on Haiku.
  Fixed bug #7978 (sockets extension compilation errors).
Standard:
  Fixed bug #7875 (mails are sent even if failure to log throws exception).

Approved by:	tz (private email)
Sponsored by:	Bounce Experts
2022-02-18 22:42:29 -06:00
Piotr Kubaj 8f89a070b3 lang/php*: remove support for 11 on powerpc64 2022-02-18 19:10:17 +00:00
Muhammad Moinur Rahman b904062e27 lang/php8[01]: Unbreak with libressl*
lang/php8[01] builds fine with libressl*. Reverting previous partial
commit. Although it takes minor tweaking on unsetting TLS_SRP on
ftp/curl.

PR:		261903
Reported by:	vishwin rozhuk.im@gmail.com
Approved by:	tz (private email)
Sponsored by:	Bounce Experts
2022-02-12 14:46:51 -06:00
Muhammad Moinur Rahman e8d9493812 lang/php8[01]: Make openssl as DEFAULT
After the 91fdbed776 commit fixing the
issue for MySQL80 introduced another problem for the ports that depends
on php8[01]-openssl port couldn't be built as the fix prevented
php8[01]-openssl from being installed as it's already built with
default php installation. As the problem has grown much bigger now and
php80 is currently the DEFAULT php version so we are switching the
behavior of php8[01] ports making the openssl module as default.

- Remove non-default OPTION MYSQL80 from lang/php8[01]
- Remove ports security/php8[01]-openssl
- Remove OPTION OPENSSL from lang/php8[01]-extensions
- Mark lang/php8[01] to IGNORE with libressl and libressl-devel
  Although php builds fine with those most of the extensions do not
  as they have dependency on curl. So mark it early.
- OPTIONIZE lang/php80
- Change openssl_DEPENDS to conditional for php74 only as this module
  is default from php80 with this commit. php74 do not have the issue
  where it fails to connect to MySQL80 due to new caching_sha2_password
- Remove hash_DEPENDS from php.mk as it is a default module for all php
- Change json_DEPENDS to conditional for php74 only as this module is
  default from php80

PR:		261797 259793 252420
Reported by:	sean@rogue-research.com martin@waschbuesch.de
Approved by:	tz (private email) ale (private email)
Sponsored by:	Bounce Experts
2022-02-12 09:41:51 -06:00
Stefan Eßer d4b3ad64a4 lang/php??: make CONFLICTS_INSTALL visible to PHP module ports
The definition of CONFLICTS_INSTALL already included ${PKGNAMESUFFIX},
but in a block that was conditional on ${PKGNAMESUFFIX} not being
defined, defying the purpose.

After this change all ports that refer to the lang/php?? interpreter
ports get an automatic CONFLICTS_INSTALL definition that prevents the
installation of the same module for multiple interpreter versions.

This change adds correct CONFLICTS_INSTALL definitions to hundreds of
PHP ports that previously lacked any such definition.

PHP modules can override this generated CONFLICTS_INSTALL definition
in their Makefiles, if required.

Approved by:	portmgr (implicit)
2022-02-06 19:46:36 +01:00
Muhammad Moinur Rahman 16510abbad Remove references to defunct php73
- Add regex in CONFLICTS* [1]

Reported by:    se [1]
Approved by:	portmgr (blanket infrastructure sweep)
Sponsored by:	Bounce Experts
Differential Revision:	https://reviews.freebsd.org/D33983 [1]
2022-01-25 18:36:09 -06:00
Torsten Zuehlsdorff bcd3779e12 lang/php80: Update from 8.0.14 to 8.0.15
Core:
        Fixed bug #81656 (GCC-11 silently ignores -R).
        Fixed bug #81585 (cached_chunks are not counted to real_size on shutdown).
    Filter:
        Fixed FILTER_FLAG_NO_RES_RANGE flag.
    Hash:
        Fixed bug #7759 (Incorrect return types for hash() and hash_hmac()).
        Fixed bug #7826 (Inconsistent argument name in hash_hmac_file and hash_file).
    MySQLnd:
        Fixed bug where large bigints may be truncated.
    OCI8:
        Fixed bug #7765 (php_oci_cleanup_global_handles segfaults at second call).
    OPcache:
        Fixed bug #81679 (Tracing JIT crashes on reattaching).
    PDO_PGSQL:
        Fixed error message allocation of PDO PgSQL.
    Sockets:
        Avoid void* arithmetic in sockets/multicast.c on NetBSD.
    Spl:
        Fixed bug #75917 (SplFileObject::seek broken with CSV flags).

Sponsored by:	Bounce Experts
2022-01-21 22:24:23 +01:00
Muhammad Moinur Rahman b68b5084aa lang/php80: Update version 8.0.13=>8.0.14
- Refactor with OPTIONSNG

Changelog:

Core:
    Fixed bug #81582 (Stringable not implicitly declared if __toString()
    came from a trait).
    Fixed bug #81591 (Fatal Error not properly logged in particular
    cases).
    Fixed bug #81626 (Error on use static:: in __сallStatic() wrapped to
    Closure::fromCallable()).
    Fixed bug #81631 (::class with dynamic class name may yield wrong
    line number).
FPM:
    Fixed bug #81513 (Future possibility for heap overflow in FPM zlog).
GD:
    Fixed bug #71316 (libpng warning from imagecreatefromstring).
IMAP:
    Fixed bug #81649 (imap_(un)delete accept sequences, not single
    numbers).
OpenSSL:
    Fixed bug #75725 (./configure: detecting RAND_egd).
PCRE:
    Fixed bug #74604 (Out of bounds in php_pcre_replace_impl).
SPL:
    Fixed bug #81587 (MultipleIterator Segmentation fault w/
    SimpleXMLElement attached).
Standard:
    Fixed bug #81618 (dns_get_record fails on FreeBSD for missing type).
    Fixed bug #81659 (stream_get_contents() may unnecessarily
    overallocate).

Approved by:	tz (private email)
Relnotes: https://www.php.net/ChangeLog-8.php#8.0.14
Sponsored by:	Bounce Experts
2021-12-27 20:32:09 -06:00
Muhammad Moinur Rahman 529117f533 Fix fetch for php*
- Primary hosting provider of php has introduced some sort of checking
  which is blocking fetch although curl/wget works perfectly. fetch with
  other --user-agent is also not working at the moment. An issue has been
  opened with the upstream which can be found at:
  https://github.com/php/web-php/issues/483
- Untill this is fixed add php Github distributions URL to MASTER_SITES
- Modify MASTER_SITES for php[73|74|80] and remove SUBDIR as it affects
  DIST_SUBDIR
- Add DIST_SUBDIR as Github is IPv4 only which affects IPv6 only
  builders. In case someone is running IPv6 only builders distcache will
  pickup and serve.
- Although distinfo has been updated as we have added DIST_SUBDIR but
  SHA256 and SIZE are unchanged. In case someone needs to verify those
  are available from https://www.php.net/downloads
- We might have done some drastic changes but we are on the brink of
  quarterly build and we do not want to start a new year and a new
  quarter with BROKEN php and thousands of other ports.

PR: 260699
Reported by: chris@cretaforce.gr
Approved by: portmgr (blanket infrastructure)
Sponsored by: Bounce Experts
2021-12-26 19:23:22 +01:00
Stefan Eßer 04b9da4140 */*: Remove redundant '-*' from CONFLICTS definitions
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").

Approved by: portmgr (blanket)
2021-11-25 22:40:11 +01:00
Torsten Zuehlsdorff 91fd937f88 lang/php80: Upgrade from 8.0.12 to 8.0.13
Core:
        Fixed bug #81518 (Header injection via default_mimetype / default_charset).
    Date:
        Fixed bug #81500 (Interval serialization regression since 7.3.14 / 7.4.2).
    DBA:
        Fixed bug #81588 (TokyoCabinet driver leaks memory).
    MBString:
        Fixed bug #76167 (mbstring may use pointer from some previous request).
    Opcache:
        Fixed bug #81512 (Unexpected behavior with arrays and JIT).
    PCRE:
        Fixed bug #81424 (PCRE2 10.35 JIT performance regression).
    XML:
        Fixed bug #79971 (special character is breaking the path in xml function). (CVE-2021-21707)
    XMLReader:
        Fixed bug #81521 (XMLReader::getParserProperty may throw with a valid property).

Also include a patch to fix issue 259725:
dns_get_record fails when requested record doesn't exist

PR:		259725
Reported by:	fsbruva@yahoo.com
Sponsored by:	Bounce Experts
2021-11-20 20:31:39 +01:00
Torsten Zuehlsdorff cf94bbaed1 lang/php80: Upgrade from 8.0.11 to 8.0.12
Changelog:

    CLI:
        Fixed bug #81496 (Server logs incorrect request method).
    Core:
        Fixed bug #81435 (Observer current_observed_frame may point to an old (overwritten) frame).
        Fixed bug #81380 (Observer may not be initialized properly).
    DOM:
        Fixed bug #81433 (DOMElement::setIdAttribute() called twice may remove ID).
    FFI:
        Fixed bug #79576 ("TYPE *" shows unhelpful message when type is not defined).
    FPM:
        Fixed bug #81026 (PHP-FPM oob R/W in root process leading to privilege escalation) (CVE-2021-21703).
    Fileinfo:
        Fixed bug #78987 (High memory usage during encoding detection).
    Filter:
        Fixed bug #61700 (FILTER_FLAG_IPV6/FILTER_FLAG_NO_PRIV|RES_RANGE failing).
    Opcache:
        Fixed bug #81472 (Cannot support large linux major/minor device number when read /proc/self/maps).
    Reflection:
        ReflectionAttribute is no longer final.
    SPL:
        Fixed bug #80663 (Recursive SplFixedArray::setSize() may cause double-free).
        Fixed bug #81477 (LimitIterator + SplFileObject regression in 8.0.1).
    Standard:
        Fixed bug #69751 (Change Error message of sprintf/printf for missing/typo position specifier).
    Streams:
        Fixed bug #81475 (stream_isatty emits warning with attached stream wrapper).
    XML:
        Fixed bug #70962 (XML_OPTION_SKIP_WHITE strips embedded whitespace).
    Zip:
        Fixed bug #81490 (ZipArchive::extractTo() may leak memory).
        Fixed bug #77978 (Dirname ending in colon unzips to wrong dir).

Sponsored by:	Bounce Experts
2021-10-24 00:52:36 +02:00
Torsten Zuehlsdorff 4a295722e6 lang/php80: Update from 8.0.10 to 8.0.11
Changelog:

    Core:
        Fixed bug #81302 (Stream position after stream filter removed).
        Fixed bug #81346 (Non-seekable streams don't update position after write).
        Fixed bug #73122 (Integer Overflow when concatenating strings).
    GD:
        Fixed bug #53580 (During resize gdImageCopyResampled cause colors change).
    Opcache:
        Fixed bug #81353 (segfault with preloading and statically bound closure).
    Shmop:
        Fixed bug #81407 (shmop_open won't attach and causes php to crash).
    Standard:
        Fixed bug #71542 (disk_total_space does not work with relative paths).
        Fixed bug #81400 (Unterminated string in dns_get_record() results).
    SysVMsg:
        Fixed bug #78819 (Heap Overflow in msg_send).
    XML:
        Fixed bug #81351 (xml_parse may fail, but has no error code).
    Zip:
        Fixed bug #80833 (ZipArchive::getStream doesn't use setPassword).
        Fixed bug #81420 (ZipArchive::extractTo extracts outside of destination).

Sponsored by:	Bounce Experts
2021-09-29 11:55:01 +02:00
Torsten Zuehlsdorff 02593a6d1b lang/php80: Upgrade from 8.0.9 to 8.0.10
Changelog:

    Core:
        Fixed bug #72595 (php_output_handler_append illegal write access).
        Fixed bug #66719 (Weird behaviour when using get_called_class() with call_user_func()).
        Fixed bug #81305 (Built-in Webserver Drops Requests With "Upgrade" Header).
    BCMath:
        Fixed bug #78238 (BCMath returns "-0").
    CGI:
        Fixed bug #80849 (HTTP Status header truncation).
    Date:
        Fixed bug #64975 (Error parsing when AM/PM not at the end).
        Fixed bug #78984 (DateTimeZone accepting invalid UTC timezones).
        Fixed bug #79580 (date_create_from_format misses leap year).
        Fixed bug #80409 (DateTime::modify() loses time with 'weekday' parameter).
    GD:
        Fixed bug #51498 (imagefilledellipse does not work for large circles).
    MySQLi:
        Fixed bug #74544 (Integer overflow in mysqli_real_escape_string()).
    Opcache:
        Fixed bug #81225 (Wrong result with pow operator with JIT enabled).
        Fixed bug #81249 (Intermittent property assignment failure with JIT enabled).
        Fixed bug #81206 (Multiple PHP processes crash with JIT enabled).
        Fixed bug #81272 (Segfault in var[] after array_slice with JIT).
        Fixed bug #81255 (Memory leak in PHPUnit with functional JIT).
        Fixed bug #80959 (Infinite loop in building cfg during JIT compilation) (Nikita, Dmitry)
        Fixed bug #81226 (Integer overflow behavior is different with JIT enabled).
    OpenSSL:
        Fixed bug #81327 (Error build openssl extension on php 7.4.22).
    PDO_ODBC:
        Fixed bug #81252 (PDO_ODBC doesn't account for SQL_NO_TOTAL).
    Phar:
        Fixed bug #81211: Symlinks are followed when creating PHAR archive (cmb)
    Shmop:
        Fixed bug #81283 (shmop can't read beyond 2147483647 bytes).
    SimpleXML:
        Fixed bug #81325 (Segfault in zif_simplexml_import_dom).
    Standard:
        Fixed bug #72146 (Integer overflow on substr_replace).
        Fixed bug #81265 (getimagesize returns 0 for 256px ICO images).
        Fixed bug #74960 (Heap buffer overflow via str_repeat).
    Streams:
        Fixed bug #81294 (Segfault when removing a filter).

Sponsored by:	Bounce Experts
2021-08-29 22:47:47 +02:00
Xin LI 974e13b501 net/openldap24-server: Make SASL permanent for OpenLDAP port.
PR:		ports/257374
Reviewed by:	obrien
Approved by:	portmgr (exp-run by antoine)
Differential Revision: https://reviews.freebsd.org/D31301
2021-08-01 01:32:35 -07:00
Torsten Zuehlsdorff 0b5547466b lang/php80: Update from 8.0.8 to 8.0.9
Changelog:

    Core:
        Fixed bug #81145 (copy() and stream_copy_to_stream() fail for +4GB files).
        Fixed bug #81163 (incorrect handling of indirect vars in __sleep).
        Fixed bug #81159 (Object to int warning when using an object as a string offset).
        Fixed bug #80728 (PHP built-in web server resets timeout when it can kill the process).
        Fixed bug #73630 (Built-in Weberver - overwrite $_SERVER['request_uri']).
        Fixed bug #80173 (Using return value of zend_assign_to_variable() is not safe).
        Fixed bug #73226 (--r[fcez] always return zero exit code).
    Intl:
        Fixed bug #72809 (Locale::lookup() wrong result with canonicalize option).
        Fixed bug #68471 (IntlDateFormatter fails for "GMT+00:00" timezone).
        Fixed bug #74264 (grapheme_strrpos() broken for negative offsets).
    OpenSSL:
        Fixed bug #52093 (openssl_csr_sign truncates $serial).
    PCRE:
        Fixed bug #81101 (PCRE2 10.37 shows unexpected result).
        Fixed bug #81243 (Too much memory is allocated for preg_replace()).
    Reflection:
        Fixed bug #81208 (Segmentation fault while create newInstance from attribute).
    Standard:
        Fixed bug #81223 (flock() only locks first byte of file).

Sponsored by:	Bounce Experts
2021-07-31 23:31:29 +02:00
Torsten Zuehlsdorff 526e568843 lang/php80: Update from 8.0.7 to 8.0.8
Changelog:

    Core:
        Fixed bug #81076 (incorrect debug info on Closures with implicit binds).
        Fixed bug #81068 (Double free in realpath_cache_clean()).
        Fixed bug #76359 (open_basedir bypass through adding "..").
        Fixed bug #81090 (Typed property performance degradation with .= operator).
        Fixed bug #81070 (Integer underflow in memory limit comparison).
        Fixed bug #81122 (SSRF bypass in FILTER_VALIDATE_URL). (CVE-2021-21705)
    Bzip2:
        Fixed bug #81092 (fflush before stream_filter_remove corrupts stream).
    Fileinfo:
        Fixed bug #80197 (implicit declaration of function 'magic_stream' is invalid).
    GMP:
        Fixed bug #81119 (GMP operators throw errors with wrong parameter names).
    OCI8:
        Fixed bug #81088 (error in regression test for oci_fetch_object() and oci_fetch_array()).
    Opcache:
        Fixed bug #81051 (Broken property type handling after incrementing reference).
        Fixed bug #80968 (JIT segfault with return from required file).
    OpenSSL:
        Fixed bug #76694 (native Windows cert verification uses CN as sever name).
    MySQLnd:
        Fixed bug #80761 (PDO uses too much memory).
    PDO_Firebird:
        Fixed bug #76448 (Stack buffer overflow in firebird_info_cb). (CVE-2021-21704)
        Fixed bug #76449 (SIGSEGV in firebird_handle_doer). (CVE-2021-21704)
        Fixed bug #76450 (SIGSEGV in firebird_stmt_execute). (CVE-2021-21704)
        Fixed bug #76452 (Crash while parsing blob data in firebird_fetch_blob). (CVE-2021-21704)
    readline:
        Fixed bug #72998 (invalid read in readline completion).
    Standard:
        Fixed bug #81048 (phpinfo(INFO_VARIABLES) "Array to string conversion").
        Fixed bug #77627 (method_exists on Closure::__invoke inconsistency).
    Windows:
        Fixed bug #81120 (PGO data for main PHP DLL are not used).

Sponsored by:	Bounce Experts
2021-07-05 23:31:19 +02:00
Piotr Kubaj 9b1671d74c lang/php80: enable DTRACE on powerpc 2021-06-10 09:23:30 +00:00
Piotr Kubaj 62bd7b9f99 lang/php80: fix build on riscv64
DTRACE doesn't yet work on riscv64.
JIT in PCRE2 is not yet implemented.
2021-06-09 00:41:46 +00:00
Torsten Zuehlsdorff c4d81d7c8b lang/php80: Upgrade from 8.0.6 to 8.0.7
Changelog:

    Core:
        Fixed bug #80960 (opendir() warning wrong info when failed on Windows).
        Fixed bug #67792 (HTTP Authorization schemes are treated as case-sensitive).
        Fixed bug #80972 (Memory exhaustion on invalid string offset).
    FPM:
        Fixed bug #65800 (Events port mechanism).
    FTP:
        Fixed bug #80901 (Info leak in ftp extension).
        Fixed bug #79100 (Wrong FTP error messages).
    GD:
        Fixed bug #81032 (GD install is affected by external libgd installation).
    Intl:
        Fixed bug #81019 (Unable to clone NumberFormatter after failed parse()).
    MBString:
        Fixed bug #81011 (mb_convert_encoding removes references from arrays).
    ODBC:
        Fixed bug #80460 (ODBC doesn't account for SQL_NO_TOTAL indicator).
    Opcache:
        Fixed bug #81007 (JIT "not supported" on 32-bit x86 -- build problem?).
        Fixed bug #81015 (Opcache optimization assumes wrong part of ternary operator in if-condition).
        Fixed bug #81046 (Literal compaction merges non-equal related literals).
    PDO_MySQL:
        Fixed bug #81037 (PDO discards error message text from prepared statement).
    PDO_ODBC:
        Fixed bug #44643 (bound parameters ignore explicit type definitions).
    pgsql:
        Fixed php_pgsql_fd_cast() wrt. php_stream_can_cast().
    SPL:
        Fixed bug #80933 (SplFileObject::DROP_NEW_LINE is broken for NUL and CR).
    XMLReader:
        Fixed bug #73246 (XMLReader: encoding length not checked).
    Zip:
        Fixed bug #80863 (ZipArchive::extractTo() ignores references).

Sponsored by:	Bounce Experts
2021-06-04 22:44:41 +02:00
Torsten Zuehlsdorff 85d390d64b lang/php80: Update from 8.0.5 to 8.0.6
PDO_pgsql:

    Revert "Fixed bug #80892 (PDO::PARAM_INT is treated the same as PDO::PARAM_STR)"

Sponsored by:	Bounce Experts
2021-05-08 00:53:48 +02:00
Torsten Zuehlsdorff 3de8c62ac4 lang/php80: Upgrade from 8.0.3 to 8.0.5
Changelog:

    Core:
        Fixed bug #75776 (Flushing streams with compression filter is broken).
        Fixed bug #80811 (Function exec without $output but with $restult_code parameter crashes).
        Fixed bug #80814 (threaded mod_php won't load on FreeBSD: No space available for static Thread Local Storage).
        Changed PowerPC CPU registers used by Zend VM to work around GCC bug. Old registers (r28/r29) might be clobbered by _restgpr routine used for return from C function compiled with -Os.
    Dba:
        Fixed bug #80817 (dba_popen() may cause segfault during RSHUTDOWN).
    DOM:
        Fixed bug #66783 (UAF when appending DOMDocument to element).
    FFI:
        Fixed bug #80847 (CData structs with fields of type struct can't be passed as C function argument).
    FPM:
        Fixed bug #80024 (Duplication of info about inherited socket after pool removing).
    FTP:
        Fixed bug #80880 (SSL_read on shutdown, ftp/proc_open).
    IMAP:
        Fixed bug #80800 (imap_open() fails when the flags parameter includes CL_EXPUNGE).
        Fixed bug #80710 (imap_mail_compose() header injection).
    Intl:
        Fixed bug #80763 (msgfmt_format() does not accept DateTime references).
    LibXML:
        Fixed bug #73533 (Invalid memory access in php_libxml_xmlCheckUTF8).
        Fixed bug #51903 (simplexml_load_file() doesn't use HTTP headers).
    MySQLnd:
        Fixed bug #80837 (Calling stmt_store_result after fetch doesn't throw an error).
    Opcache:
        Fixed bug #80839 (PHP problem with JIT).
        Fixed bug #80861 (erronous array key overflow in 2D array with JIT).
        Fixed bug #80786 (PHP crash using JIT).
        Fixed bug #80782 (DASM_S_RANGE_VREG on PHP_INT_MIN-1).
    Pcntl:
        Fixed bug #79812 (Potential integer overflow in pcntl_exec()).
    PCRE:
        Fixed bug #80866 (preg_split ignores limit flag when pattern with \K has 0-width fullstring match).
    PDO_ODBC:
        Fixed bug #80783 (PDO ODBC truncates BLOB records at every 256th byte).
    PDO_pgsql:
        Fixed bug #80892 (PDO::PARAM_INT is treated the same as PDO::PARAM_STR).
    Session:
        Fixed bug #80889 (Cannot set save handler when save_handler is invalid).
        Fixed bug #80774 (session_name() problem with backslash).
    SOAP:
        Fixed bug #69668 (SOAP special XML characters in namespace URIs not encoded).
    Standard:
        Fixed bug #80915 (Taking a reference to $_SERVER hides its values from phpinfo()).
        Fixed bug #80914 ('getdir' accidentally defined as an alias of 'dir').
        Fixed bug #80771 (phpinfo(INFO_CREDITS) displays nothing in CLI).
        Fixed bug #78719 (http wrapper silently ignores long Location headers).
        Fixed bug #80838 (HTTP wrapper waits for HTTP 1 response after HTTP 101).
    Zip:
        Fixed bug #80825 (ZipArchive::isCompressionMethodSupported does not exist).

Sponsored by:	Bounce Experts
2021-05-02 00:10:15 +02:00
Mathieu Arnold cf118ccf87 One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00
Mathieu Arnold 135fdeebb9 all: Remove all other $FreeBSD keywords. 2021-04-06 16:31:13 +02:00
Mathieu Arnold 305f148f48 Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Muhammad Moinur Rahman 91fdbed776 lang/php80: Adding MySQL 8.0 'caching_sha2_password' support
- Pet portlint
- Add non-default OPTION MYSQL80

This patch adds an OPTION for adding 'caching_sha2_password' (Default
Password mechanism in MySQL >= 8.0) in php80. If the OPTION MYSQL80 is
selected it will build openssl module with base PHP including mysqlnd.
This will also prevent php80-openssl module from being installed in the
future. php80-mysqli and php80-pdo_mysql will use mysqlnd.

PR:		252420
Reported by:	sean@rogue-research.com
Approved by:	tz
Sponsored by:	Bounce Experts
Differential Revision:	https://reviews.freebsd.org/D29491
2021-04-06 10:14:41 +00:00
Baptiste Daroussin 022e2b2700 Convert to @touch 2021-03-27 22:25:32 +00:00
Torsten Zuehlsdorff 2a940be2ff lang/php80: Update from 8.0.2 to 8.0.3
Changelog:

    Core:
        Fixed #80706 (mail(): Headers after Bcc headers may be ignored).
    DOM:
        Fixed bug #80600 (DOMChildNode::remove() doesn't work on CharacterData nodes).
    Gettext:
        Fixed bug #53251 (bindtextdomain with null dir doesn't return old value).
    MySQLnd:
        Fixed bug #78680 (mysqlnd's mysql_clear_password does not transmit null-terminated password).
        Fixed bug #80713 (SegFault when disabling ATTR_EMULATE_PREPARES and MySQL 8.0).
    MySQLi:
        Fixed bug #74779 (x() and y() truncating floats to integers).
    Opcache:
        Fixed bug #80634 (write_property handler of internal classes is skipped on preloaded JITted code).
        Fixed bug #80682 (opcache doesn't honour pcre.jit option).
        Fixed bug #80742 (Opcache JIT makes some boolean logic unexpectedly be true).
        Fixed bug #80745 (JIT produces Assert failure and UNKNOWN:0 var_dumps in code involving bitshifts).
    OpenSSL:
        Fixed bug #80747 (Providing RSA key size < 512 generates key that crash PHP).
    Phar:
        Fixed bug #75850 (Unclear error message wrt. __halt_compiler() w/o semicolon) (cmb)
        Fixed bug #70091 (Phar does not mark UTF-8 filenames in ZIP archives).
        Fixed bug #53467 (Phar cannot compress large archives).
    Socket:
        Fixed bug #80723 (Different sockets compare as equal (regression in 8.0)).
    SPL:
        Fixed bug#80719 (Iterating after failed ArrayObject::setIteratorClass() causes Segmentation fault).
    Standard:
        Fixed bug #80654 (file_get_contents() maxlen fails above (2**31)-1 bytes).
        Fixed bug #80718 (ext/standard/dl.c fallback code path with syntax error).

Sponsored by:	PHP Upgrade Service
2021-03-06 01:34:35 +00:00
Torsten Zuehlsdorff 39a21a5e68 lang/php80: Update from 8.0.1 to 8.0.2
Core:
        Fixed bug #80523 (bogus parse error on >4GB source code).
        Fixed bug #80384 (filter buffers entire read until file closed).
        Fixed bug #80596 (Invalid union type TypeError in anonymous classes).
        Fixed bug #80617 (GCC throws warning about type narrowing in ZEND_TYPE_INIT_CODE).
    BCMath:
        Fixed bug #80545 (bcadd('a', 'a') doesn't throw an exception).
    Curl:
        Fixed bug #80595 (Resetting POSTFIELDS to empty array breaks request).
    Date:
        Fixed bug #80376 (last day of the month causes runway cpu usage).
    DOM:
        Fixed bug #80537 (Wrong parameter type in DOMElement::removeAttributeNode stub).
    Filter:
        Fixed bug #80584 (0x and 0X are considered valid hex numbers by filter_var()).
    GMP:
        Fixed bug #80560 (Strings containing only a base prefix return 0 object).
    Intl:
        Fixed bug #80644 (Missing resource causes subsequent get() calls to fail).
    MySQLi:
        Fixed bug #67983 (mysqlnd with MYSQLI_OPT_INT_AND_FLOAT_NATIVE fails to interpret bit columns).
        Fixed bug #64638 (Fetching resultsets from stored procedure with cursor fails).
        Fixed bug #72862 (segfault using prepared statements on stored procedures that use a cursor).
        Fixed bug #77935 (Crash in mysqlnd_fetch_stmt_row_cursor when calling an SP with a cursor).
    ODBC:
        Fixed bug #80592 (all floats are the same in ODBC parameters).
    Opcache:
        Fixed bug #80422 (php_opcache.dll crashes when using Apache 2.4 with JIT).
    PDO_Firebird:
        Fixed bug #80521 (Parameters with underscores no longer recognized).
    Phar:
        Fixed bug #76929 (zip-based phar does not respect phar.require_hash).
        Fixed bug #77565 (Incorrect locator detection in ZIP-based phars).
        Fixed bug #69279 (Compressed ZIP Phar extractTo() creates garbage files).
    Phpdbg:
        Reverted fix for bug #76813 (Access violation near NULL on source operand).
    SOAP:
        Fixed bug #80672 (Null Dereference in SoapClient). (CVE-2021-21702)

Sponsored by:	PHP Update Service
2021-02-05 22:54:20 +00:00