Fri Feb 2 12:50:38 2018 UTC ()
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).


(jdolecek)
diff -r1.201 -r1.202 pkgsrc/lang/php/phpversion.mk
diff -r1.12 -r1.13 pkgsrc/lang/php72/distinfo
diff -r1.5 -r1.6 pkgsrc/lang/php72/patches/patch-configure
diff -r1.2 -r0 pkgsrc/lang/php72/patches/patch-ext_curl_config.m4
diff -r1.2 -r0 pkgsrc/lang/php72/patches/patch-ext_pdo_config.m4
diff -r1.2 -r0 pkgsrc/lang/php72/patches/patch-makedist
diff -r1.3 -r0 pkgsrc/lang/php72/patches/patch-ext_pdo__mysql_config.m4

cvs diff -r1.201 -r1.202 pkgsrc/lang/php/phpversion.mk (expand / switch to unified diff)

--- pkgsrc/lang/php/phpversion.mk 2018/01/05 03:12:12 1.201
+++ pkgsrc/lang/php/phpversion.mk 2018/02/02 12:50:38 1.202
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: phpversion.mk,v 1.201 2018/01/05 03:12:12 taca Exp $ 1# $NetBSD: phpversion.mk,v 1.202 2018/02/02 12:50:38 jdolecek Exp $
2# 2#
3# This file selects a PHP version, based on the user's preferences and 3# This file selects a PHP version, based on the user's preferences and
4# the installed packages. It does not add a dependency on the PHP 4# the installed packages. It does not add a dependency on the PHP
5# package. 5# package.
6# 6#
7# === User-settable variables === 7# === User-settable variables ===
8# 8#
9# PHP_VERSION_DEFAULT 9# PHP_VERSION_DEFAULT
10# The PHP version to choose when more than one is acceptable to 10# The PHP version to choose when more than one is acceptable to
11# the package. 11# the package.
12# 12#
13# Possible: 56 70 71 72 13# Possible: 56 70 71 72
14# Default: 56 14# Default: 56
@@ -80,27 +80,27 @@ @@ -80,27 +80,27 @@
80# 80#
81# Example: lib/php/20140828 81# Example: lib/php/20140828
82# 82#
83# Keywords: php 83# Keywords: php
84# 84#
85 85
86.if !defined(PHPVERSION_MK) 86.if !defined(PHPVERSION_MK)
87PHPVERSION_MK= defined 87PHPVERSION_MK= defined
88 88
89# Define each PHP's version. 89# Define each PHP's version.
90PHP56_VERSION= 5.6.33 90PHP56_VERSION= 5.6.33
91PHP70_VERSION= 7.0.27 91PHP70_VERSION= 7.0.27
92PHP71_VERSION= 7.1.13 92PHP71_VERSION= 7.1.13
93PHP72_VERSION= 7.2.1 93PHP72_VERSION= 7.2.2
94 94
95# Define initial release of major version. 95# Define initial release of major version.
96PHP56_RELDATE= 20140828 96PHP56_RELDATE= 20140828
97PHP70_RELDATE= 20151203 97PHP70_RELDATE= 20151203
98PHP71_RELDATE= 20160303 98PHP71_RELDATE= 20160303
99PHP72_RELDATE= 20170718 99PHP72_RELDATE= 20170718
100 100
101_VARGROUPS+= php 101_VARGROUPS+= php
102_USER_VARS.php= PHP_VERSION_DEFAULT 102_USER_VARS.php= PHP_VERSION_DEFAULT
103_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD 103_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD
104_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ 104_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \
105 PKG_PHP_MAJOR_VERS 105 PKG_PHP_MAJOR_VERS
106 106

cvs diff -r1.12 -r1.13 pkgsrc/lang/php72/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/lang/php72/Attic/distinfo 2018/01/16 10:49:56 1.12
+++ pkgsrc/lang/php72/Attic/distinfo 2018/02/02 12:50:38 1.13
@@ -1,26 +1,22 @@ @@ -1,26 +1,22 @@
1$NetBSD: distinfo,v 1.12 2018/01/16 10:49:56 jperkin Exp $ 1$NetBSD: distinfo,v 1.13 2018/02/02 12:50:38 jdolecek Exp $
2 2
3SHA1 (php-7.2.1.tar.bz2) = 3e5ad89b44fb83b9c356ba11c1c62b9ff3fad633 3SHA1 (php-7.2.2.tar.bz2) = 69903dabf7ceb4a84620683092e235b29d2d1066
4RMD160 (php-7.2.1.tar.bz2) = 1959cd1fff0b222d20afd0aaf57f4c557ce72b51 4RMD160 (php-7.2.2.tar.bz2) = c7193e0298ae8e709ad19129023ff213085f50ca
5SHA512 (php-7.2.1.tar.bz2) = e9b6c013a06a771c2fa7581e49e6d6e019fe8fc6f8881a43905f7e87df5fc05420559fe40fb663d272ffc5cc188c4ef7c3ca835f5c542a28ca8de1cd42782865 5SHA512 (php-7.2.2.tar.bz2) = d2bc3725b51c61ded552cfde276bbe0f9e4cce3401303219d3784497d7f989e4a23c673fd2d2a827b7823664f922eededed0d242dc70a6f4863ce4f89573d211
6Size (php-7.2.1.tar.bz2) = 14980278 bytes 6Size (php-7.2.2.tar.bz2) = 14618006 bytes
7SHA1 (patch-configure) = 277e60446932fabb5ad1c696052de1c0a6248dc8 7SHA1 (patch-configure) = 5dad0ba760f5fb6aa55dc3136655b78c29e23bca
8SHA1 (patch-ext_curl_config.m4) = 86a293d57aafcd42d1feab4a6d0d4f88dbcfb5c8 
9SHA1 (patch-ext_gd_config.m4) = 67730ccc13410adaf8829f77a6b044f16e412489 8SHA1 (patch-ext_gd_config.m4) = 67730ccc13410adaf8829f77a6b044f16e412489
10SHA1 (patch-ext_imap_config.m4) = f4e10ab81697b72019313f63bc630627a08efd92 9SHA1 (patch-ext_imap_config.m4) = f4e10ab81697b72019313f63bc630627a08efd92
11SHA1 (patch-ext_pcre_pcrelib_config.h) = c5fba95856628f68639fe63feeef04a5f83d3916 10SHA1 (patch-ext_pcre_pcrelib_config.h) = c5fba95856628f68639fe63feeef04a5f83d3916
12SHA1 (patch-ext_pdo__mysql_config.m4) = f7026001b9c40ae92f13400bd8002e59d4c17311 
13SHA1 (patch-ext_pdo_config.m4) = 95f3c1ccf696f6686da320e309b48cfcaadb5e43 
14SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426 11SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426
15SHA1 (patch-ext_phar_phar_phar.php) = f630e3946b21b76d4fe857a43e00e25c9445f2c8 12SHA1 (patch-ext_phar_phar_phar.php) = f630e3946b21b76d4fe857a43e00e25c9445f2c8
16SHA1 (patch-ext_recode_recode.c) = 639bf762302c7a30c88d3f3fa862494e0f847bdb 13SHA1 (patch-ext_recode_recode.c) = 639bf762302c7a30c88d3f3fa862494e0f847bdb
17SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = 8a529a1b3f7c97731f2e719d006f67c3a7259bb5 14SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = 8a529a1b3f7c97731f2e719d006f67c3a7259bb5
18SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627 15SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
19SHA1 (patch-makedist) = 3e796ab59bece3f762f41fd0c6f142c88c2d88a8 
20SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd 16SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd
21SHA1 (patch-php.ini-production) = ae61dffedf574b688fe576b0b2af748b7a28cd89 17SHA1 (patch-php.ini-production) = ae61dffedf574b688fe576b0b2af748b7a28cd89
22SHA1 (patch-run-tests.php) = 86c4d3f03eb8e31b5a35820f426533c9478571fb 18SHA1 (patch-run-tests.php) = 86c4d3f03eb8e31b5a35820f426533c9478571fb
23SHA1 (patch-sapi_cgi_Makefile.frag) = 18769900f588ff81cc34474542afa1d65c070e65 19SHA1 (patch-sapi_cgi_Makefile.frag) = 18769900f588ff81cc34474542afa1d65c070e65
24SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3 20SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
25SHA1 (patch-sapi_fpm_fpm_events_port.c) = 0f10fdb32fb7cab58e2abda49fb1fc658c410150 21SHA1 (patch-sapi_fpm_fpm_events_port.c) = 0f10fdb32fb7cab58e2abda49fb1fc658c410150
26SHA1 (patch-sapi_fpm_php-fpm.conf.in) = b3c4fd499cbfd2dffd9176abb54e298ea542a5d7 22SHA1 (patch-sapi_fpm_php-fpm.conf.in) = b3c4fd499cbfd2dffd9176abb54e298ea542a5d7

cvs diff -r1.5 -r1.6 pkgsrc/lang/php72/patches/Attic/patch-configure (expand / switch to unified diff)

--- pkgsrc/lang/php72/patches/Attic/patch-configure 2018/01/16 10:49:57 1.5
+++ pkgsrc/lang/php72/patches/Attic/patch-configure 2018/02/02 12:50:38 1.6
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: patch-configure,v 1.5 2018/01/16 10:49:57 jperkin Exp $ 1$NetBSD: patch-configure,v 1.6 2018/02/02 12:50:38 jdolecek Exp $
2 2
3Don't automatically add libgcc on SunOS. 3Don't automatically add libgcc on SunOS.
4 4
5--- configure.orig 2018-01-02 22:35:52.000000000 +0000 5--- configure.orig 2018-01-30 10:33:52.000000000 +0000
6+++ configure 6+++ configure
7@@ -5461,9 +5461,6 @@ fi 7@@ -5461,9 +5461,6 @@ fi
8 case $host_alias in 8 case $host_alias in
9 *solaris*) 9 *solaris*)
10 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 10 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
11- if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then 11- if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
12- enable_libgcc=yes 12- enable_libgcc=yes
13- fi 13- fi
14 ;; 14 ;;
15 *dgux*) 15 *dgux*)
16 CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR" 16 CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
17@@ -7007,27 +7004,6 @@ EOF 17@@ -7007,27 +7004,6 @@ EOF
18 ;; 18 ;;
@@ -41,36 +41,27 @@ Don't automatically add libgcc on SunOS. @@ -41,36 +41,27 @@ Don't automatically add libgcc on SunOS.
41- fi 41- fi
42 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43 $as_echo "yes" >&6; } 43 $as_echo "yes" >&6; }
44  44
45@@ -21090,7 +21066,7 @@ $as_echo "#define HAVE_SQLITE3_ERRSTR 1" 45@@ -21090,7 +21066,7 @@ $as_echo "#define HAVE_SQLITE3_ERRSTR 1"
46 PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags" 46 PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
47  47
48  48
49- for header_file in ext/sqlite3/libsqlite/sqlite3.h; do 49- for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
50+ for header_file; do 50+ for header_file; do
51  51
52  52
53 unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'` 53 unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
54@@ -23626,7 +23602,7 @@ fi 54@@ -96116,12 +96092,7 @@ old_CC=$CC
55  
56 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl.pc" >&5 
57 $as_echo_n "checking for libcurl.pc... " >&6; } 
58- if test "$PHP_CURL" == "yes" -o "$PHP_CURL" == "/usr"; then 
59+ if test "$PHP_CURL" = "yes" -o "$PHP_CURL" = "/usr"; then 
60 PKNAME=libcurl 
61 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default path" >&5 
62 $as_echo "using default path" >&6; } 
63@@ -95975,12 +95951,7 @@ old_CC=$CC 
64 if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then 55 if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
65 CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags" 56 CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
66 INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags" 57 INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
67- cat >meta_ccld<<EOF 58- cat >meta_ccld<<EOF
68-#! /bin/sh 59-#! /bin/sh
69-exec $CC $ac_cv_pthreads_cflags \$@ 60-exec $CC $ac_cv_pthreads_cflags \$@
70-EOF 61-EOF
71- CC="$abs_builddir/meta_ccld" 62- CC="$abs_builddir/meta_ccld"
72- chmod +x meta_ccld 63- chmod +x meta_ccld
73+ CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags" 64+ CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags"
74 fi 65 fi
75  66
76 if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then 67 if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then

File Deleted: pkgsrc/lang/php72/patches/Attic/patch-ext_curl_config.m4

File Deleted: pkgsrc/lang/php72/patches/Attic/patch-ext_pdo_config.m4

File Deleted: pkgsrc/lang/php72/patches/Attic/patch-makedist

File Deleted: pkgsrc/lang/php72/patches/Attic/patch-ext_pdo__mysql_config.m4