Commit graph

25 commits

Author SHA1 Message Date
taca
769ee34b6e lang/php72: update to 7.2.3
01 Mar 2018, PHP 7.2.3

- Core:
  . Fixed bug #75864 ("stream_isatty" returns wrong value on s390x). (Sam Ding)

- Apache2Handler:
  . Fixed bug #75882 (a simple way for segfaults in threadsafe php just with
    configuration). (Anatol)

- Date:
  . Fixed bug #75857 (Timezone gets truncated when formatted). (carusogabriel)
  . Fixed bug #75928 (Argument 2 for `DateTimeZone::listIdentifiers()` should
    accept `null`). (Pedro Lacerda)
  . Fixed bug #68406 (calling var_dump on a DateTimeZone object modifies it).
    (jhdxr)

- LDAP:
  . Fixed bug #49876 (Fix LDAP path lookup on 64-bit distros). (dzuelke)

- libxml2:
  . Fixed bug #75871 (use pkg-config where available). (pmmaga)

- PGSQL:
  . Fixed bug #75838 (Memory leak in pg_escape_bytea()). (ard_1 at mail dot ru)

- Phar:
  . Fixed bug #54289 (Phar::extractTo() does not accept specific directories to
    be extracted). (bishop)
  . Fixed bug #65414 (deal with leading slash while adding files correctly).
    (bishopb)
  . Fixed bug #65414 (deal with leading slash when adding files correctly).
    (bishopb)

- ODBC:
  . Fixed bug #73725 (Unable to retrieve value of varchar(max) type). (Anatol)

- Opcache:
  . Fixed bug #75729 (opcache segfault when installing Bitrix). (Nikita)
  . Fixed bug #75893 (file_get_contents $http_response_header variable bugged
    with opcache). (Nikita)
  . Fixed bug #75938 (Modulus value not stored in variable). (Nikita)

- SPL:
  . Fixed bug #74519 (strange behavior of AppendIterator). (jhdxr)

- Standard:
  . Fixed bug #75916 (DNS_CAA record results contain garbage). (Mike,
    Philip Sharp)
  . Fixed bug #75981 (Prevent reading beyond buffer start in http wrapper).
    (Stas)
2018-03-02 02:11:24 +00:00
jdolecek
db831ebb99 remove patches/patch-ext_imap_config.m4, it's not needed any more
mail/php-imap was changed to not use the option this patch adds; it was
also entirely ineffective in what it was supposed to do
2018-02-16 22:26:29 +00:00
jdolecek
7b39c84375 Add upstream bug report number for the libgcc part of patch too
Thanks Jonathan for elaboration of why it's necessary.
2018-02-09 00:01:13 +00:00
jdolecek
f88f94cca8 note configure meta_ccld was reported upstream as #75940 2018-02-08 21:50:55 +00:00
jdolecek
3123663b49 drop patch removing pthread checks for apache <2.4.1 module build
the patch predates php56, doesn't seem to be necessary when building
with apache22, and we want to reduce diffs against upstream; maybe
that part was needed with distant past with apache 1.3 or whatnot,
but that is not in pkgsrc any more
2018-02-08 21:23:04 +00:00
jdolecek
75a44c8ee3 remove part of configure patch related to sqlite3
the part of the patch is not needed anymore, we use external sqlite3 lib,
and the patch was for the bundled sqlite3 build
2018-02-08 20:55:42 +00:00
jperkin
592403252e php7*: Standardise on major.minor.99 usage in buildlink3.mk
With the introduction of beta and rc releases of php7* into pkgsrc the pattern
matching is often incorrect (for example the current version of php-7.1.0rc6
breaks both <7.1.0 and >=7.1.0).  Using .99 is not ideal but does at least
avoid the confusion developers seem to be having with the pmatch ordering.
2018-02-05 11:21:56 +00:00
jdolecek
90dc8d854a Switch lang/php72 to use pkgsrc pcre library instead of the bundled one
PHP bundles it's own copy of pcre 8.41 with the distribution, which
is used when build doesn't find system one. Switch to the pkgsrc
pcre, so that we don't need to maintain local PHP JIT patch here.
Upcoming PHP 7.3 already switched to pcre2, so no value maintaining
private PCRE patch any more (if there ever was).

XXX devel/pcre doesn't seem to enable PCRE JIT, might be good to do so
2018-02-05 08:51:25 +00:00
jdolecek
1bb0fc7874 Switch php72 to use pkgsrc sqlite3 library instead of the bundled one
PHP bundles a sqlite3 lib, it's used when the build can't find
system one. Switch to the pkgsrc-provided one, eliminating also
need to maintain a local patch for it. While here make this into a
tunable compile option 'sqlite3', by default on, same as before.
2018-02-04 16:19:00 +00:00
jdolecek
6f090e8853 note upstream bug report numbers for two more patches 2018-02-04 15:38:41 +00:00
jdolecek
f5d8d1a9a5 Update php72 to php 7.2.2
Changes since 7.2.1:

Core:
Fixed bug #75742 (potential memleak in internal classes's static members).
Fixed bug #75679 (Path 260 character problem).
Fixed bug #75614 (Some non-portable == in shell scripts).
Fixed bug #75786 (segfault when using spread operator on generator passed by reference).
Fixed bug #75799 (arg of get_defined_functions is optional).
Fixed bug #75396 (Exit inside generator finally results in fatal error).

FCGI:
Fixed bug #75794 (getenv() crashes on Windows 7.2.1 when second parameter is false).

IMAP:
Fixed bug #75774 (imap_append HeapCorruction).

Opcache:
Fixed bug #75720 (File cache not populated after SHM runs full).
Fixed bug #75687 (var 8 (TMP) has array key type but not value type).
Fixed bug #75698 (Using @ crashes php7.2-fpm).
Fixed bug #75579 (Interned strings buffer overflow may cause crash).

PDO:
Fixed bug #75616 (PDO extension doesn't allow to be built shared on Darwin).

PDO MySQL:
Fixed bug #75615 (PDO Mysql module can't be built as module).

PGSQL:
Fixed bug #75671 (pg_version() crashes when called on a connection to cockroach).
Readline:
Fixed bug #75775 (readline_read_history segfaults with empty file).

SAPI:
Fixed bug #75735 ([embed SAPI] Segmentation fault in sapi_register_post_entry).

SOAP:
Fixed bug #70469 (SoapClient generates E_ERROR even if exceptions=1 is used).
Fixed bug #75502 (Segmentation fault in zend_string_release).

SPL:
Fixed bug #75717 (RecursiveArrayIterator does not traverse arrays by reference).
Fixed bug #75242 (RecursiveArrayIterator doesn't have constants from parent class).
Fixed bug #73209 (RecursiveArrayIterator does not iterate object properties).
Standard:
Fixed bug #75781 (substr_count incorrect result).
Fixed bug #75653 (array_values don't work on empty array).

Zip:
Display headers (buildtime) and library (runtime) versions in phpinfo (with libzip >= 1.3.1).
2018-02-02 12:50:38 +00:00
jdolecek
06c54a5d67 add new option argon2 to compile in the support for Argon2 password hashes
(new in php 7.2.0)
2018-01-31 21:10:18 +00:00
jperkin
7143b825c9 php72: Don't automatically add libgcc on SunOS. 2018-01-16 10:49:56 +00:00
taca
96392f55f3 lang/php72: update to 7.2.1
04 Jan 2018, PHP 7.2.1


- Core:
  . Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26). (Laruence)
  . Fixed bug #75384 (PHP seems incompatible with OneDrive files on demand).
    (Anatol)
  . Fixed bug #75525 (Access Violation in vcruntime140.dll). (Anatol)
  . Fixed bug #74862 (Unable to clone instance when private __clone defined).
    (Daniel Ciochiu)
  . Fixed bug #75074 (php-process crash when is_file() is used with strings
    longer 260 chars). (Anatol)

- CLI server:
  . Fixed bug #73830 (Directory does not exist). (Anatol)

- FPM:
  . Fixed bug #64938 (libxml_disable_entity_loader setting is shared between
    requests). (Remi)

- GD:
  . Fixed bug #75571 (Potential infinite loop in gdImageCreateFromGifCtx).
    (Christoph)

- Opcache:
  . Fixed bug #75608 ("Narrowing occurred during type inference" error).
    (Laruence, Dmitry)
  . Fixed bug #75579 (Interned strings buffer overflow may cause crash).
    (Dmitry)
  . Fixed bug #75570 ("Narrowing occurred during type inference" error).
    (Dmitry)
  . Fixed bug #75556 (Invalid opcode 138/1/1). (Laruence)

- PCRE:
  . Fixed bug #74183 (preg_last_error not returning error code after error).
    (Andrew Nester)

- Phar:
  . Fixed bug #74782 (remove file name from output to avoid XSS). (stas)

- Standard:
  . Fixed bug #75511 (fread not free unused buffer). (Laruence)
  . Fixed bug #75514 (mt_rand returns value outside [$min,$max]+ on 32-bit)
    (Remi)
  . Fixed bug #75535 (Inappropriately parsing HTTP response leads to PHP
    segment fault). (Nikita)
  . Fixed bug #75409 (accept EFAULT in addition to ENOSYS as indicator
    that getrandom() is missing). (sarciszewski)
  . Fixed bug #73124 (php_ini_scanned_files() not reporting correctly).
    (John Stevenson)
  . Fixed bug #75574 (putenv does not work properly if parameter contains
    non-ASCII unicode character). (Anatol)

- Zip:
  . Fixed bug #75540 (Segfault with libzip 1.3.1). (Remi)
2018-01-05 03:12:12 +00:00
jdolecek
1f45d18aaa adjust patches/patch-ext_pdo__mysql_config.m4 to the form committed upstream -
only the extra -I got dropped, the -I$(pdo_cv_inc_path) is needed for build
outside pkgsrc
2017-12-24 13:37:12 +00:00
jdolecek
86ebe401bc add patch to fix build of php-gd, adapted from php71 2017-12-06 21:36:34 +00:00
jdolecek
c12924276e purge PHP_OPENSSL_DIR patch harder 2017-12-03 12:54:33 +00:00
jdolecek
6b32544f3e three more patches reported upstream 2017-12-03 12:48:56 +00:00
jdolecek
74b9099c51 remove ext/intl/config.m4 patch to reduce patches we maintain, seems php-intl builds fine without it 2017-12-03 12:30:50 +00:00
jdolecek
f8bddaefaf note patches reported upstream 2017-12-03 12:22:59 +00:00
jdolecek
d1a950f188 remove patch to add / to PHP_OPENSSL_DIR - can't find in history why
it was added (is there since at least php54), and package compiles just
fine without it; goal is to reduce amount of patches we maintain
2017-12-03 11:47:33 +00:00
jdolecek
24b62aba3c Updated php72 from RC6 to final 7.2.0
Changes versus 7.1.x as listed in release announcement:
* Convert numeric keys in object/array casts
* Counting of non-countable objects
* Object typehint
* HashContext as Object
* Argon2 in password hash
* Improve TLS constants to sane values
* Mcrypt extension removed
* New sodium extension
2017-11-30 20:45:46 +00:00
jdolecek
1622b08396 fix unportable == in ext/curl/config.m4 2017-11-15 11:01:31 +00:00
jdolecek
42d7b8012c add a comment to fix the MASTER_SITES once this is out of RC 2017-11-15 11:01:17 +00:00
jdolecek
6a2b156325 Add php72 7.2.0RC6
PHP 7.2.x builds upon 7.1.x, adding new features:

* Argument type declarations
* Object return type declarations
* Parameter Type Widening
* Trailing commas in list syntax
* Argon2 in password hash
* Libsodium as part of PHP Core
* Deprecated: __autoload, $php_errormsg, create_function(),
  mbstring.func_overload, parse_str() without second argument,
  gmp_random(), each(), assert(), $errcontext
* uniqid() patch to avoid usleep() integrated, 10000x improvement on NetBSD,
  about 10x on Linux
2017-11-15 08:56:12 +00:00