Merge pull request #5108 from wigyori/for-15.05-php

CC: php: upgrade to 5.6.32

LGTM2, thanks.
This commit is contained in:
Michael Heimpold 2017-11-13 20:18:55 +01:00 committed by GitHub
commit 345cb4d509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 19 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=php PKG_NAME:=php
PKG_VERSION:=5.6.17 PKG_VERSION:=5.6.32
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>, Michael Heimpold <mhei@heimpold.de> PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>, Michael Heimpold <mhei@heimpold.de>
@ -18,7 +18,7 @@ PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.php.net/distributions/ PKG_SOURCE_URL:=http://www.php.net/distributions/
PKG_MD5SUM:=5e080e4b7df5db24f1b64313f8114bd8 PKG_MD5SUM:=660cd5bc0f16eaad655b7815c757aadc
PKG_FIXUP:=libtool autoreconf PKG_FIXUP:=libtool autoreconf
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
@ -32,7 +32,7 @@ PHP5_MODULES = \
ftp \ ftp \
gettext gd gmp \ gettext gd gmp \
hash \ hash \
iconv \ iconv intl \
json \ json \
ldap \ ldap \
mbstring mcrypt mysql mysqli \ mbstring mcrypt mysql mysqli \
@ -98,6 +98,7 @@ endef
define Package/php5-cli define Package/php5-cli
$(call Package/php5/Default) $(call Package/php5/Default)
DEPENDS+= +PACKAGE_php5-mod-intl:libstdcpp
TITLE+= (CLI) TITLE+= (CLI)
endef endef
@ -108,6 +109,7 @@ endef
define Package/php5-cgi define Package/php5-cgi
$(call Package/php5/Default) $(call Package/php5/Default)
DEPENDS+= +PACKAGE_php5-mod-intl:libstdcpp
TITLE+= (CGI & FastCGI) TITLE+= (CGI & FastCGI)
endef endef
@ -237,6 +239,12 @@ else
CONFIGURE_ARGS+= --without-iconv CONFIGURE_ARGS+= --without-iconv
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-intl),)
CONFIGURE_ARGS+= --enable-intl=shared
else
CONFIGURE_ARGS+= --disable-intl
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),) ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),)
CONFIGURE_ARGS+= --enable-json=shared CONFIGURE_ARGS+= --enable-json=shared
else else
@ -258,7 +266,7 @@ else
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),) ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),)
CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr" CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
else else
CONFIGURE_ARGS+= --without-mcrypt CONFIGURE_ARGS+= --without-mcrypt
endif endif
@ -543,6 +551,7 @@ $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php5-mod-gettext:libintl-full
$(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp)) $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp))
$(eval $(call BuildModule,hash,Hash)) $(eval $(call BuildModule,hash,Hash))
$(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS))) $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
$(eval $(call BuildModule,intl,Internationalization Functions,+PACKAGE_php5-mod-intl:icu))
$(eval $(call BuildModule,json,JSON)) $(eval $(call BuildModule,json,JSON))
$(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2)) $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2))
$(eval $(call BuildModule,mbstring,MBString)) $(eval $(call BuildModule,mbstring,MBString))

View File

@ -20,9 +20,9 @@ r1: initial revision
--- a/ext/date/lib/parse_tz.c --- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c
@@ -18,8 +18,22 @@ @@ -22,8 +22,22 @@
* THE SOFTWARE.
/* $Id$ */ */
+#ifndef PATH_MAX +#ifndef PATH_MAX
+#define PATH_MAX 4096 +#define PATH_MAX 4096
@ -43,7 +43,7 @@ r1: initial revision
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
@@ -32,8 +46,12 @@ @@ -36,8 +50,12 @@
#include <strings.h> #include <strings.h>
#endif #endif
@ -56,7 +56,7 @@ r1: initial revision
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
# if defined(__LITTLE_ENDIAN__) # if defined(__LITTLE_ENDIAN__)
@@ -55,6 +73,11 @@ static int read_preamble(const unsigned @@ -59,6 +77,11 @@ static int read_preamble(const unsigned
{ {
uint32_t version; uint32_t version;
@ -68,7 +68,7 @@ r1: initial revision
/* read ID */ /* read ID */
version = (*tzf)[3] - '0'; version = (*tzf)[3] - '0';
*tzf += 4; *tzf += 4;
@@ -298,7 +321,406 @@ void timelib_dump_tzinfo(timelib_tzinfo @@ -302,7 +325,406 @@ void timelib_dump_tzinfo(timelib_tzinfo
} }
} }
@ -476,7 +476,7 @@ r1: initial revision
{ {
int left = 0, right = tzdb->index_size - 1; int left = 0, right = tzdb->index_size - 1;
#ifdef HAVE_SETLOCALE #ifdef HAVE_SETLOCALE
@@ -337,21 +759,90 @@ static int seek_to_tz_position(const uns @@ -341,21 +763,90 @@ static int seek_to_tz_position(const uns
return 0; return 0;
} }
@ -568,7 +568,7 @@ r1: initial revision
} }
static void skip_64bit_preamble(const unsigned char **tzf, timelib_tzinfo *tz) static void skip_64bit_preamble(const unsigned char **tzf, timelib_tzinfo *tz)
@@ -376,10 +867,12 @@ static void read_64bit_header(const unsi @@ -380,10 +871,12 @@ static void read_64bit_header(const unsi
timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb) timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb)
{ {
const unsigned char *tzf; const unsigned char *tzf;
@ -582,7 +582,7 @@ r1: initial revision
tmp = timelib_tzinfo_ctor(timezone); tmp = timelib_tzinfo_ctor(timezone);
version = read_preamble(&tzf, tmp); version = read_preamble(&tzf, tmp);
@@ -393,7 +886,34 @@ timelib_tzinfo *timelib_parse_tzfile(cha @@ -397,7 +890,34 @@ timelib_tzinfo *timelib_parse_tzfile(cha
skip_64bit_types(&tzf, tmp); skip_64bit_types(&tzf, tmp);
skip_posix_string(&tzf, tmp); skip_posix_string(&tzf, tmp);
} }

View File

@ -18,8 +18,6 @@ Signed-off-by: Michael Heimpold <mhei@heimpold.de>
ext/opcache/config.m4 | 122 ++----------------------------------------------- ext/opcache/config.m4 | 122 ++-----------------------------------------------
1 file changed, 4 insertions(+), 118 deletions(-) 1 file changed, 4 insertions(+), 118 deletions(-)
diff --git a/ext/opcache/config.m4 b/ext/opcache/config.m4
index b7e4835..7b6c0aa 100644
--- a/ext/opcache/config.m4 --- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4 +++ b/ext/opcache/config.m4
@@ -11,127 +11,13 @@ if test "$PHP_OPCACHE" != "no"; then @@ -11,127 +11,13 @@ if test "$PHP_OPCACHE" != "no"; then
@ -154,6 +152,3 @@ index b7e4835..7b6c0aa 100644
AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support) AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support)
AC_TRY_RUN([ AC_TRY_RUN([
--
1.7.10.4

View File

@ -55,5 +55,5 @@
+ AC_MSG_RESULT("no") + AC_MSG_RESULT("no")
+]) +])
if test "$flock_type" == "unknown"; then if test "$flock_type" = "unknown"; then
AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no]) AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])