Browse Source

php: Update from 7.2.3 to 7.2.4

android-5
Fredrik Fornwall 7 years ago
parent
commit
4ec1241dcd
  1. 5
      packages/php/build.sh
  2. 12
      packages/php/ext-sockets-sockets.c.patch

5
packages/php/build.sh

@ -1,8 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://php.net
TERMUX_PKG_DESCRIPTION="Server-side, HTML-embedded scripting language"
TERMUX_PKG_VERSION=7.2.3
TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=b3a94f1b562f413c0b96f54bc309706d83b29ac65d9b172bc7ed9fb40a5e651f
TERMUX_PKG_VERSION=7.2.4
TERMUX_PKG_SHA256=7916b1bd148ddfd46d7f8f9a517d4b09cd8a8ad9248734e7c8dd91ef17057a88
TERMUX_PKG_SRCURL=http://www.php.net/distributions/php-${TERMUX_PKG_VERSION}.tar.xz
# Build native php for phar to build (see pear-Makefile.frag.patch):
TERMUX_PKG_HOSTBUILD=true

12
packages/php/ext-sockets-sockets.c.patch

@ -1,12 +0,0 @@
diff -u -r ../php-7.2.1/ext/sockets/sockets.c ./ext/sockets/sockets.c
--- ../php-7.2.1/ext/sockets/sockets.c 2018-01-02 23:36:00.000000000 +0100
+++ ./ext/sockets/sockets.c 2018-01-08 16:39:57.150438080 +0100
@@ -796,7 +796,7 @@
REGISTER_LONG_CONSTANT("AI_ALL", AI_ALL, CONST_CS | CONST_PERSISTENT);
#endif
REGISTER_LONG_CONSTANT("AI_ADDRCONFIG", AI_ADDRCONFIG, CONST_CS | CONST_PERSISTENT);
-#ifdef __USE_GNU
+#if defined(__USE_GNU) && !defined(__ANDROID__)
REGISTER_LONG_CONSTANT("AI_IDN", AI_IDN, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("AI_CANONIDN", AI_CANONIDN, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("AI_IDN_ALLOW_UNASSIGNED", AI_IDN_ALLOW_UNASSIGNED, CONST_CS | CONST_PERSISTENT);
Loading…
Cancel
Save