php7.2: move updates from testing

master
parent 8ba7867f60
commit 47841487af
  1. 54
      php/php7.2/APKBUILD
  2. 0
      php/php7.2/u10-001-CVE-2021-21703.patch
  3. 0
      php/php7.2/u11-001-CVE-2017-8923.patch
  4. 0
      php/php7.2/u11-002-CVE-2017-9118-pre1.patch
  5. 0
      php/php7.2/u11-003-CVE-2017-9118.patch
  6. 0
      php/php7.2/u11-004-CVE-2017-9119.patch
  7. 0
      php/php7.2/u11-005-CVE-2017-9120.patch
  8. 0
      php/php7.2/u11-006-CVE-2021-21707.patch
  9. 0
      php/php7.2/u12-001-CVE-2022-31625.patch
  10. 0
      php/php7.2/u12-002-CVE-2022-31626.patch
  11. 0
      php/php7.2/u13-001-CVE-2022-31625-2.patch
  12. 0
      php/php7.2/u8-001-CVE-2020-7071-1.patch
  13. 0
      php/php7.2/u8-002-CVE-2020-7071-2.patch
  14. 0
      php/php7.2/u8-003-CVE-2020-7071-3.patch
  15. 0
      php/php7.2/u8-004-CVE-2021-21702-1.patch
  16. 0
      php/php7.2/u8-005-CVE-2021-21702-2.patch
  17. 0
      php/php7.2/u8-006-CVE-2021-21704-1.patch
  18. 0
      php/php7.2/u8-007-CVE-2021-21704-2.patch
  19. 0
      php/php7.2/u8-008-CVE-2021-21704-3.patch
  20. 0
      php/php7.2/u8-009-CVE-2021-21704-4.patch
  21. 0
      php/php7.2/u8-010-CVE-2021-21705.patch
  22. 0
      php/php7.2/u8-011-CVE-2021-21705-2.patch
  23. 0
      php/php7.2/u9-001-lp-1939853-1-Fix-Segfault-with-get_result-and-PS-cursors.patch
  24. 0
      php/php7.2/u9-002-lp-1939853-2-MySQLnd-Support-cursors-in-store-get-result.patch
  25. 731
      testing/php7.2/APKBUILD
  26. 20
      testing/php7.2/allow-build-recode-and-imap-together.patch
  27. 230
      testing/php7.2/disabled-tests.list
  28. 23
      testing/php7.2/fix-tests-devserver.patch
  29. 41
      testing/php7.2/includedir.patch
  30. 15
      testing/php7.2/install-pear.patch
  31. 79
      testing/php7.2/php7-fpm-version-suffix.patch
  32. 93
      testing/php7.2/php7.2-fpm.initd
  33. 13
      testing/php7.2/php7.2-fpm.logrotate
  34. 13
      testing/php7.2/php7.2-module.conf
  35. 11
      testing/php7.2/sharedir.patch

@ -26,7 +26,7 @@
pkgname=php7.2
_pkgreal=php
pkgver=7.2.34
pkgrel=3
pkgrel=12
_apiver=20170718
_suffix=${pkgname#php}
_suffixA=7
@ -103,6 +103,29 @@ source="https://php.net/distributions/$_pkgreal-$pkgver.tar.xz
php7-fpm-version-suffix.patch
allow-build-recode-and-imap-together.patch
fix-tests-devserver.patch
u8-001-CVE-2020-7071-1.patch
u8-002-CVE-2020-7071-2.patch
u8-003-CVE-2020-7071-3.patch
u8-004-CVE-2021-21702-1.patch
u8-005-CVE-2021-21702-2.patch
u8-006-CVE-2021-21704-1.patch
u8-007-CVE-2021-21704-2.patch
u8-008-CVE-2021-21704-3.patch
u8-009-CVE-2021-21704-4.patch
u8-010-CVE-2021-21705.patch
u8-011-CVE-2021-21705-2.patch
u9-001-lp-1939853-1-Fix-Segfault-with-get_result-and-PS-cursors.patch
u9-002-lp-1939853-2-MySQLnd-Support-cursors-in-store-get-result.patch
u10-001-CVE-2021-21703.patch
u11-001-CVE-2017-8923.patch
u11-002-CVE-2017-9118-pre1.patch
u11-003-CVE-2017-9118.patch
u11-004-CVE-2017-9119.patch
u11-005-CVE-2017-9120.patch
u11-006-CVE-2021-21707.patch
u12-001-CVE-2022-31625.patch
u12-002-CVE-2022-31626.patch
u13-001-CVE-2022-31625-2.patch
"
builddir="$srcdir/$_pkgreal-$pkgver"
@ -670,7 +693,8 @@ _mv() {
mv $@
}
sha512sums="7ecc3de3b5db41ec4ff6a5ce6c7e77dc330753c6f3fd87db4d07d6bb763a0b047e83afeef2251b4c6a5d2ff53fd9f3d7e99d091ef2e2c6ab8f18db7447d8a97d php-7.2.34.tar.xz
sha512sums="
7ecc3de3b5db41ec4ff6a5ce6c7e77dc330753c6f3fd87db4d07d6bb763a0b047e83afeef2251b4c6a5d2ff53fd9f3d7e99d091ef2e2c6ab8f18db7447d8a97d php-7.2.34.tar.xz
78ebccf0124ade38fcf8a9cadd4e3bf637f79c45f8bbaebdf1c9c387e39a311555f633ad0713ea9031986e9fb3550055e7e3d719a0477edc3458fccac9307cfd php7.2-fpm.initd
b65f01e7de2195c0ea6b9e09b5acaf022ef8e0b69bfc2c143a5316293f36e8e3a4556b1847ffd330cb7aa2106dac9ca67950c240504934418c5ceb0cea5beb56 php7.2-fpm.logrotate
b44532f8cfe74f7a0c37ede23ee736a5e86a9f254756eca90a5ed8e917bc3e282fe53f0f9a9cc030b49ba94aa52d11363d53433b957501aad2d5ffcdcf6f3573 php7.2-module.conf
@ -680,4 +704,28 @@ e65383c878c991f554641371c145f67eaf6a59f2a0071645279478d69ba16183e92608442ddbe9be
7ded89fb6674efd57028e0e4f40b67f46af45c9bd20d56abd0a8b911c3ab506a2518a57b002e417c80b4fd767721aa2d9ba8e6decd908a742b28f1a4b7373f44 sharedir.patch
6a2f17e0e0e74810eb092da84b025c7226695a46351c3a77d56116cc671a867c97eae253ef3a5c7d34c12361b95673307dc03232b924c2668a2205fa9217632d php7-fpm-version-suffix.patch
f8ecae241a90cbc3e98aa4deb3d5d35ef555f51380e29f4e182a8060dffeb84be74f030a14c6b452668471030d78964f52795ca74275db05543ccad20ef1f2cc allow-build-recode-and-imap-together.patch
5bb1f90de8c543d4efffa8bc604fb3239e478d9d9625d30cd03449643906a0fe5407123403206ec57f4bf9f18893a7ff4524ccf417b2bd8bce4ee7d18815b576 fix-tests-devserver.patch"
5bb1f90de8c543d4efffa8bc604fb3239e478d9d9625d30cd03449643906a0fe5407123403206ec57f4bf9f18893a7ff4524ccf417b2bd8bce4ee7d18815b576 fix-tests-devserver.patch
1ad7276cd0cc253c7c084248b7c1a3508de0a7f7df68b9b48202f225424de470f8fbc62fb2c10211042e8b7ec1ac353ca1cde1638e743199f1ff8d79ce669598 u8-001-CVE-2020-7071-1.patch
3a609c3ccbb39d518a20afd777f1100bc14de98ebc18487ab688c9633a10b44af40b63bb479ebd8b4ddf285aea14526f9b855056b5ac54c7fbd08c5f306f53d1 u8-002-CVE-2020-7071-2.patch
49edc27552743eb93666386927067b0d41846f7200d019bb3c73ffe0e3158eefc8ac01eedf132c9e59bd97b36418d0276c85151ad679e7a62da9c7ea7b7698d5 u8-003-CVE-2020-7071-3.patch
c7d3f8c788704d5b997d40ea1cafa51c9d57d40fb34c4ad2d8f096ff12610830b742f974cfaa96eac82dc41549fe649a07f262904b2737c2d53de85558c051eb u8-004-CVE-2021-21702-1.patch
a3b631bb2d8fa016c29a70ca0f2be4e9bf61137ed221710b5ab23b1d187086f81a8d0e1dbb2c7c2e499c7dc389e698a8f1acfe89807a6a445e83a56c45e4424c u8-005-CVE-2021-21702-2.patch
4ac7923156a851cf059783bcf44183339a5ad3b105bedf8d15980ec34a195fafef397d77ced07d4333f26a0953b1b09c73cfb969df7228235d8bc1985f29ee64 u8-006-CVE-2021-21704-1.patch
4f0764654fa430b5bf52b5ac37413d8fd879fc87aeadbd3ab698b4812a68d0720ce58499bf0a885ed122270fbc419a8f5d0bf4c2fba8705880e830915d22f8ad u8-007-CVE-2021-21704-2.patch
9f24a63f6ae20f81fb3dbd297a0f7e28ab66f0b22aa3683c82a711f5991b031477bdd641b1d3ac9ec529e51a82b5711916dc8523c6742218e0783629868f4364 u8-008-CVE-2021-21704-3.patch
5612baf6614e8c18411efb7fd7a027bf03ca06d9f9f41d33b1733b333316e1a975a34eae785238368e479e98be1bba5a6cc64901d911976b5ccb9e4083fdfa8b u8-009-CVE-2021-21704-4.patch
43e7eb90d0ba9bf6eca92b594d991bd3990817801a1addbaa69b2632a904c67b2831b233e12f494757e4bdf673c255b109a41f4581ea5272f6dec95d39e40ef7 u8-010-CVE-2021-21705.patch
6eeaac947df36a16a703d60bd4c31ce3bb17c1c6ab9fdf76bb78ac278c0f88b197dd6ddc226c9f5d0428b9170ffdd186c30f368077626aabe2a9f05c3e9d735f u8-011-CVE-2021-21705-2.patch
c837e778c17780093a47255d48cc7f47b5ca3fdd9569174145eeae73614bce8565cbbb54cae488b1510e32614edd28a716f5acf5f932cc61a422a33b5606ea4c u9-001-lp-1939853-1-Fix-Segfault-with-get_result-and-PS-cursors.patch
844b7736b3a5ecc5ad247d41419e97e466fae382b82cc1cdf6d56e9a8fa9280bc0f624a3f07fd9d52205372c5d82201d7b3b97dde46577b1d79a62dbb545b07d u9-002-lp-1939853-2-MySQLnd-Support-cursors-in-store-get-result.patch
ea82fa077ea0f5171bbbcd25f1e5265c69bf0b6b544cd601379269755ad9e76184932ade958efbddfd4c921813e333f618e7740334227d3f10bd2036727615d0 u10-001-CVE-2021-21703.patch
bba7c89f05d7663f32ab6fd1fd716496ac8ed801e07e3ace732df8d1e026c851d1ce85c1248a73ee6270a6d8844f1ef687d7e02b595f9d9768e7c550db641ab1 u11-001-CVE-2017-8923.patch
ab62b120c20ae6c1c56a7fbffa09fad6bbdab816e1aaa6888fc3933cf72e6b5a09741181a56879cf3b1b87634675194d5c256dd2bae3926f1f91185313bedec4 u11-002-CVE-2017-9118-pre1.patch
e63ae6e3385bc79ba8507d0676483467a3cd67d1134b8613b0561c5dffe0d247af7561b0a5011d6f84a56dc3f5c9234ecdc2726ee1ea2ccfa77e91a9486ad7cb u11-003-CVE-2017-9118.patch
02f47153d9873359e01e9155f413e06f3a3a0689e059e2012d3d2b3c81ab32a0d695655f98822c771c1c5867ca27123a06eb33ee6766109e235f0e2ed1851019 u11-004-CVE-2017-9119.patch
fddf6c50682b4d778908130477a9160df68dbd257f33991262d49c3eb05a220ec608a9625ce2b7f00241010aaa4ec7d9c7daa1884d66decda4ac7c4547082a4d u11-005-CVE-2017-9120.patch
64460be7ba985c5192a51badabdbec3e530e6a0818d71612f1ad2b1e5e80eedcb97bb7da3bc2b2daca2c9a610d969336432e89b7babc6aa474153f2dbe5d0451 u11-006-CVE-2021-21707.patch
bdd0212861e5b20d4420546dd20d835ad00f704c744214ba4777a534c156cc53254fd191341a96a3556c1a7ad1455be3beb31edf198a9ead77d92d569847bbdb u12-001-CVE-2022-31625.patch
9f5e5798b22e9ed4c6b9cb0fe10372a457c7cfa2fc11b6eac459a358eef9b7ed4e15682365747be431804370fb6511506728fc13ed001906fb60ee26fb3b31b8 u12-002-CVE-2022-31626.patch
06d342debefb45e5ba4b8619cf08614966b89d6eaec00d8c22f01232ef3a4f773e54dcb8a63f2d0d910f7d0f5bb779fd7a22e9bfd6070bb5e73736c358189d27 u13-001-CVE-2022-31625-2.patch
"

@ -1,731 +0,0 @@
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
# Bundled libraries
#
# Name | License | Location | State
# ----------+---------+------------------------+---------
# bcmath | LGPL2 | ext/bcmath/libbcmath | used
# date | MIT | ext/date/lib | used
# gd | BSD | ext/gd/libgd | used
# file | BSD | ext/fileinfo/libmagic | used
# libmbfl | LGPLv2 | ext/mbstring/libmbfl | used
# oniguruma | BSD | ext/mbstring/oniguruma | used
# pcre | BSD | ext/pcre/pcrelib | not used
# sqlite3 | Public | ext/sqlite3/libsqlite | not used
# libzip | BSD | ext/zip/lib | not used
# libXMLRPC | BSD | ext/xmlrpc/libxmlrpc | used
# Static extensions
#
# Name | Reason
# ----------+--------------------------------------------
# zlib | https://bugs.alpinelinux.org/issues/8299
pkgname=php7.2
_pkgreal=php
pkgver=7.2.34
pkgrel=12
_apiver=20170718
_suffix=${pkgname#php}
_suffixA=7
# Is this package the default (latest) PHP version?
_default_php="no"
pkgdesc="The PHP$_suffix language runtime engine"
url="https://secure.php.net"
arch="all"
options="!check"
license="PHP-3.0 BSD LGPL-2.0 MIT Zend"
depends="$pkgname-common"
depends_dev="$pkgname=$pkgver-r$pkgrel autoconf pcre-dev"
# Most dependencies between extensions is auto-discovered (see _extension()).
_depends_mysqlnd="$pkgname-openssl"
_depends_pdo_mysql="$pkgname-pdo $pkgname-mysqlnd"
_depends_phar="$pkgname"
# openssl is actually transitive dependency here, but we need to because of
# load index based on number of dependencies.
_depends_mysqli="$pkgname-mysqlnd $pkgname-openssl"
makedepends="
autoconf
apache2-dev
aspell-dev
bison
bzip2-dev
curl-dev
db-dev
enchant-dev
freetds-dev
freetype-dev
gdbm-dev
gettext-dev
gmp-dev
icu67-dev
imap-dev
krb5-dev
libedit-dev
libical-dev
libjpeg-turbo-dev
libpng-dev
openssl-dev
libsodium-dev
libwebp-dev
libxml2-dev
libxpm-dev
libxslt-dev
libzip-dev
net-snmp-dev
oniguruma-dev
openldap-dev
pcre-dev
postgresql-dev
re2c
recode-dev
sqlite-dev
tidyhtml-dev
unixodbc-dev
zlib-dev
"
provides="php7-cli php-cli php" # for backward compatibility
provider_priority=100
subpackages="$pkgname-dev $pkgname-doc $pkgname-apache2 $pkgname-phpdbg
$pkgname-embed $pkgname-litespeed $pkgname-cgi $pkgname-fpm
$pkgname-pear::noarch
"
source="https://php.net/distributions/$_pkgreal-$pkgver.tar.xz
$pkgname-fpm.initd
$pkgname-fpm.logrotate
$pkgname-module.conf
disabled-tests.list
install-pear.patch
includedir.patch
sharedir.patch
php7-fpm-version-suffix.patch
allow-build-recode-and-imap-together.patch
fix-tests-devserver.patch
u8-001-CVE-2020-7071-1.patch
u8-002-CVE-2020-7071-2.patch
u8-003-CVE-2020-7071-3.patch
u8-004-CVE-2021-21702-1.patch
u8-005-CVE-2021-21702-2.patch
u8-006-CVE-2021-21704-1.patch
u8-007-CVE-2021-21704-2.patch
u8-008-CVE-2021-21704-3.patch
u8-009-CVE-2021-21704-4.patch
u8-010-CVE-2021-21705.patch
u8-011-CVE-2021-21705-2.patch
u9-001-lp-1939853-1-Fix-Segfault-with-get_result-and-PS-cursors.patch
u9-002-lp-1939853-2-MySQLnd-Support-cursors-in-store-get-result.patch
u10-001-CVE-2021-21703.patch
u11-001-CVE-2017-8923.patch
u11-002-CVE-2017-9118-pre1.patch
u11-003-CVE-2017-9118.patch
u11-004-CVE-2017-9119.patch
u11-005-CVE-2017-9120.patch
u11-006-CVE-2021-21707.patch
u12-001-CVE-2022-31625.patch
u12-002-CVE-2022-31626.patch
u13-001-CVE-2022-31625-2.patch
"
builddir="$srcdir/$_pkgreal-$pkgver"
_libdir="/usr/lib/$pkgname"
_extension_dir="$_libdir/modules"
_extension_confd="/etc/$pkgname/conf.d"
_extensions="
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
exif
fileinfo
ftp
gd
gettext
gmp
iconv
imap
intl
json
ldap
mbstring
mysqli
mysqlnd
odbc
opcache
openssl
pcntl
pdo
pdo_dblib
pdo_mysql
pdo_odbc
pdo_pgsql
pdo_sqlite
pgsql
phar
posix
pspell
recode
session
shmop
simplexml
snmp
soap
sodium
sockets
sqlite3
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
"
for _ext in $_extensions; do
case "$_ext" in
phar) subpackages="$subpackages $pkgname-$_ext:$_ext";;
*) subpackages="$subpackages $pkgname-$_ext:_extension";;
esac
done
subpackages="$subpackages $pkgname-common::noarch"
# FIXME: tests fails on s390x and x86_64
case "$CARCH" in
x86_64) options="$options !check";;
s390x) options="$options !check";;
esac
# secfixes:
# 7.2.18-r0:
# - CVE-2019-11036
# 7.2.17-r0:
# - CVE-2019-11034
# - CVE-2019-11035
# - CVE-2019-9641
# - CVE-2019-9640
# - CVE-2019-9639
# - CVE-2019-9638
# - CVE-2019-9637
# 7.2.14-r0:
# - CVE-2019-9024
# - CVE-2019-9023
# - CVE-2019-9022
# - CVE-2019-9021
# - CVE-2019-9020
# 7.2.13-r0:
# - CVE-2018-20783
# 7.2.8-r0:
# - CVE-2015-9253
# - CVE-2018-12882
# - CVE-2018-12883
# - CVE-2018-14851
# 7.2.5-r0:
# - CVE-2018-5712
# - CVE-2018-10546
# - CVE-2018-10547
# - CVE-2018-10548
# - CVE-2018-10549
prepare() {
cd "$builddir"
default_prepare
update_config_sub
local vapi=$(sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h)
if [ "$vapi" != "$_apiver" ]; then
error "Upstreram API version is now $vapi. Expecting $_apiver"
error "After updating _apiver, all 3rd-party extensions must be rebuilt."
return 1
fi
# https://bugs.php.net/63362 - Not needed but installed headers.
# Drop some Windows specific headers to avoid installation,
# before build to ensure they are really not needed.
rm -f TSRM/tsrm_win32.h \
TSRM/tsrm_config.w32.h \
Zend/zend_config.w32.h \
ext/mysqlnd/config-win.h \
ext/standard/winver.h \
main/win32_internal_function_disabled.h \
main/win95nt.h
# Fix some bogus permissions.
find . -name \*.[ch] -exec chmod 644 {} \;
# XXX: Delete failing tests.
sed -n '/^[^#]/p' "$srcdir"/disabled-tests.list | while read item; do
rm -r $item # do it in this way to apply globbing...
done
autoconf
}
# Notes:
# * gd-jis-conv breaks any non-latin font rendering (vakartel).
# * libxml cannot be build as shared.
# * Doesn't work with system-provided onigurama, some tests fail (invalid code
# point); probably because bundled onigurama is version 5.x, but we have 6.x.
# Tests are faulty - use system oniguruma
_build() {
local without_pcre_jit
[ "$CARCH" = "s390x" ] && without_pcre_jit="--without-pcre-jit"
EXTENSION_DIR=$_extension_dir ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--program-suffix=$_suffix \
--libdir=$_libdir \
--datadir=/usr/share/$pkgname \
--sysconfdir=/etc/$pkgname \
--localstatedir=/var \
--with-layout=GNU \
--with-pic \
--with-pear=/usr/share/$pkgname \
--with-config-file-path=/etc/$pkgname \
--with-config-file-scan-dir=$_extension_confd \
--disable-short-tags \
\
--enable-bcmath=shared \
--with-bz2=shared \
--enable-calendar=shared \
--enable-ctype=shared \
--with-curl=shared \
--enable-dba=shared \
--with-db4 \
--with-dbmaker=shared \
--with-gdbm \
--enable-dom=shared \
--with-enchant=shared \
--enable-exif=shared \
--enable-fileinfo=shared \
--enable-ftp=shared \
--with-gd=shared \
--with-freetype-dir=/usr \
--disable-gd-jis-conv \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-webp-dir=/usr \
--with-xpm-dir=/usr \
--with-gettext=shared \
--with-gmp=shared \
--with-iconv=shared \
--with-imap=shared \
--with-imap-ssl \
--with-icu-dir=/usr/local \
--enable-intl=shared \
--enable-json=shared \
--with-kerberos \
--with-ldap=shared \
--with-ldap-sasl \
--with-libedit \
--enable-libxml \
--with-libxml-dir=/usr \
--enable-mbstring=shared \
--with-onig=/usr \
--with-mysqli=shared,mysqlnd \
--with-mysql-sock=/run/mysqld/mysqld.sock \
--enable-mysqlnd=shared \
--enable-opcache=shared \
--with-openssl=shared \
--with-system-ciphers \
--enable-pcntl=shared \
--with-pcre-regex=/usr \
$without_pcre_jit \
--enable-pdo=shared \
--with-pdo-dblib=shared \
--with-pdo-mysql=shared,mysqlnd \
--with-pdo-odbc=shared,unixODBC,/usr \
--with-pdo-pgsql=shared \
--with-pdo-sqlite=shared,/usr \
--with-pgsql=shared \
--enable-phar=shared \
--enable-posix=shared \
--with-pspell=shared \
--without-readline \
--with-recode=shared \
--enable-session=shared \
--enable-shmop=shared \
--enable-simplexml=shared \
--with-snmp=shared \
--enable-soap=shared \
--with-sodium=shared \
--enable-sockets=shared \
--with-sqlite3=shared,/usr \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--with-tidy=shared \
--enable-tokenizer=shared \
--with-unixODBC=shared,/usr \
--enable-wddx=shared \
--enable-xml=shared \
--enable-xmlreader=shared \
--with-xmlrpc=shared \
--enable-xmlwriter=shared \
--with-xsl=shared \
--enable-zip=shared \
--with-libzip=/usr \
--with-zlib \
--with-zlib-dir=/usr \
$@
make
}
build() {
cd "$builddir"
# phpdbg
_build --enable-phpdbg \
--enable-phpdbg-webhelper \
--disable-cgi \
--disable-cli
# apache2 module
_build --disable-phpdbg \
--disable-cgi \
--disable-cli \
--with-apxs2
mv libs/libphp${_suffixA}.so sapi/apache2handler/mod_php${_suffix}.so
# cgi, cli, fpm, embed, litespeed
_build --disable-phpdbg \
--enable-fpm \
--enable-embed \
--with-litespeed
}
check() {
cd "$builddir"
# PHP is so stupid that it's not able to resolve dependencies
# between extensions and load them in correct order, so we must
# help it...
# opcache is Zend extension, it's handled specially in Makefile
local php_modules=$(_extensions_by_load_order \
| grep -vx opcache \
| xargs -n 1 printf "'$builddir/modules/%s.la' ")
sed -i "/^PHP_TEST_SHARED_EXTENSIONS/,/extension=/ \
s|in \$(PHP_MODULES)\"*|in $php_modules|" Makefile
# XXX: Few tests fail on the named platforms.
# Ignore it for now and continue build even on test failures.
local allow_fail='no'
case "$CARCH" in
x86 | arm* | aarch64 | ppc64le | mips*) allow_fail='yes'
esac
NO_INTERACTION=1 REPORT_EXIT_STATUS=1 \
SKIP_SLOW_TESTS=1 SKIP_ONLINE_TESTS=1 TEST_TIMEOUT=10 \
TZ= LANG= LC_ALL= \
make test || [ "$allow_fail" = yes ] || return 1
echo 'NOTE: We have skipped quite a lot tests, see disabled-tests.list.'
}
package() {
cd "$builddir"
make -j1 INSTALL_ROOT="$pkgdir" install
install -Dm644 php.ini-production "$pkgdir"/etc/$pkgname/php.ini
local file; for file in pear peardev pecl; do
sed -i -e "s|/usr/bin/php|/usr/bin/php$_suffix|g" \
-e "s|PHP=php|PHP=php$_suffix|" \
"$pkgdir"/usr/bin/$file
done
find "$pkgdir" -name '.*' | xargs rm -rf
rmdir "$pkgdir"/var/run
if [ "$_default_php" = yes ]; then
ln -s php$_suffix "$pkgdir"/usr/bin/php
fi
}
dev() {
default_dev
replaces="php7-dev php-dev"
cd "$pkgdir"
_mv usr/bin/php-config$_suffix \
usr/bin/phpize$_suffix \
"$subpkgdir"/usr/bin/
_mv ./$_libdir/build "$subpkgdir"/$_libdir/
if [ "$_default_php" = yes ]; then
ln -s phpize$_suffix "$subpkgdir"/usr/bin/phpize
ln -s php-config$_suffix "$subpkgdir"/usr/bin/php-config
fi
}
doc() {
default_doc
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
cp CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS \
README* UPGRADING* \
"$subpkgdir"/usr/share/doc/$pkgname/
}
apache2() {
pkgdesc="PHP$_suffix Module for Apache2"
depends="$depends apache2"
provides="php7-apache2 php-apache2"
install -D -m 755 "$builddir"/sapi/apache2handler/mod_php$_suffix.so \
"$subpkgdir"/usr/lib/apache2/mod_php$_suffix.so
install -D -m 644 "$srcdir"/php$_suffix-module.conf \
"$subpkgdir"/etc/apache2/conf.d/php$_suffix-module.conf
}
phpdbg() {
pkgdesc="Interactive PHP$_suffix debugger"
provides="php7-phpdbg php-phpdbg"
install -Dm755 "$builddir"/sapi/phpdbg/phpdbg \
"$subpkgdir"/usr/bin/phpdbg$_suffix
if [ "$_default_php" = yes ]; then
ln -s phpdbg$_suffix "$subpkgdir"/usr/bin/phpdbg
fi
}
embed() {
pkgdesc="PHP$_suffix Embedded Library"
provides="php7-embed php-embed"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libphp${_suffixA}.so "$subpkgdir"/usr/lib/libphp${_suffix}.so
}
litespeed() {
pkgdesc="PHP$_suffix LiteSpeed SAPI"
provides="php7-lightspeed php-lightspeed"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/lsphp$_suffix "$subpkgdir"/usr/bin
if [ "$_default_php" = yes ]; then
ln -s lsphp$_suffix "$subpkgdir"/usr/bin/lsphp
fi
}
cgi() {
pkgdesc="PHP$_suffix Common Gateway Interface"
provides="php7-cgi php-cgi"
_mv "$pkgdir"/usr/bin/php-cgi$_suffix "$subpkgdir"/usr/bin/
if [ "$_default_php" = yes ]; then
ln -s php-cgi$_suffix "$subpkgdir"/usr/bin/php-cgi
fi
}
fpm() {
pkgdesc="PHP$_suffix FastCGI Process Manager"
provides="php7-fpm php-fpm"
cd "$pkgdir"
_mv var "$subpkgdir"/
_mv usr/share/$pkgname/fpm "$subpkgdir"/var/lib/$pkgname/
_mv usr/sbin "$subpkgdir"/usr/
_mv etc/$pkgname/php-fpm* "$subpkgdir"/etc/$pkgname/
local file; for file in php-fpm.conf php-fpm.d/www.conf; do
mv "$subpkgdir"/etc/$pkgname/$file.default \
"$subpkgdir"/etc/$pkgname/$file
done
install -D -m 755 "$srcdir"/$pkgname-fpm.initd \
"$subpkgdir"/etc/init.d/php-fpm$_suffix
install -D -m 644 "$srcdir"/$pkgname-fpm.logrotate \
"$subpkgdir"/etc/logrotate.d/php-fpm$_suffix
mkdir -p "$subpkgdir"/var/log/$pkgname
}
pear() {
pkgdesc="PHP$_suffix Extension and Application Repository"
depends="$pkgname $pkgname-xml"
provides="php7-pear php-pear"
cd "$pkgdir"
# pecl needs xml extension and since we build it as shared, it must be
# explicitly declared to be loaded.
sed -i 's/\$INCARG/& -d extension=xml.so/' usr/bin/pecl
mkdir -p "$subpkgdir"/usr/bin
local file; for file in pecl pear peardev; do
mv usr/bin/$file "$subpkgdir"/usr/bin/$file$_suffix
if [ "$_default_php" = yes ]; then
ln -s $file$_suffix "$subpkgdir"/usr/bin/$file
fi
done
_mv etc/$pkgname/pear.conf "$subpkgdir"/etc/$pkgname/
_mv usr/share "$subpkgdir"/usr/
}
common() {
pkgdesc="$pkgdesc (common config)"
provides="php7-common php-common $pkgname-zlib php-zlib" # for backward compatibility
depends=""
cd "$pkgdir"
_mv usr/lib "$subpkgdir"/usr/
_mv etc "$subpkgdir"/
mkdir -p "$subpkgdir"/$_extension_confd
}
phar() {
_extension
cd "$pkgdir"
mkdir -p "$subpkgdir"/usr/bin
mv usr/bin/phar.phar "$subpkgdir"/usr/bin/phar.phar$_suffix
rm usr/bin/phar
ln -s phar.phar$_suffix "$subpkgdir"/usr/bin/phar$_suffix
if [ "$_default_php" = yes ]; then
ln -s phar.phar$_suffix "$subpkgdir"/usr/bin/phar.phar
ln -s phar.phar$_suffix "$subpkgdir"/usr/bin/phar
fi
}
_extension() {
local extname="${subpkgname#$pkgname-}"
local extdepends="$(eval "echo \$_depends_$extname")"
local extdesc="$(head -n1 "$builddir"/ext/$extname/CREDITS 2>/dev/null ||:)"
pkgdesc="PHP$_suffix extension: ${extdesc:-$extname}"
provides="php-$extname"
: ${extdepends:=$(_resolve_extension_deps "$extname")}
depends="$depends $extdepends"
local load_order=$(_extension_load_order "$extname")
# extension prefix
local prefix=
[ "$extname" != "opcache" ] || prefix="zend_"
_mv "$pkgdir"/$_extension_dir/$extname.so \
"$subpkgdir"/$_extension_dir/
mkdir -p "$subpkgdir"/$_extension_confd
echo "${prefix}extension=$extname.so" \
> "$subpkgdir"/$_extension_confd/$(printf %02d $load_order)_$extname.ini
}
# Resolves dependencies of the given extension name (without $pkgname- prefix)
# on other extensions in $_extensions and prints them with $pkgname- prefix.
_resolve_extension_deps() {
local name="$1"
# We use config.w32 just because it's more accurate than config.m4.
local config="$builddir/ext/$name/config.w32"
[ -f "$config" ] || return 0
cat "$config" \
| sed -En "s/.*ADD_EXTENSION_DEP\('$name', ([^)]+)\).*/\1/p" \
| tr -d "'," | tr ' ' '\n' \
| sort -u \
| while read dep; do
if echo "$_extensions" | grep -qw "$dep"; then
echo "$pkgname-$dep"
fi
done
}
# Prints a load order (0-based integer) for the given extension name. Extension
# with lower load order should be loaded before exts with higher load order.
# It's based on number of dependencies of the extension (with exception for
# "imap"), which is flawed, but simple and good enough for now.
_extension_load_order() {
local name="$1"
local deps=$(eval "echo \$_depends_$name")
case "$name" in
# XXX: This must be loaded after recode, even though it does
# not depend on it. So we must use this hack...
imap) echo 1;;
*) echo "${deps:=$(_resolve_extension_deps $name)}" | wc -w;;
esac
}
# Prints $_extensions sorted by load order and name.
_extensions_by_load_order() {
local deps list name
for name in $_extensions; do
list="$list $(_extension_load_order $name);$name"
done
printf '%s\n' $list | sort -t ';' -k 1 | sed -E 's/\d+;//'
}
_mv() {
local dest; for dest; do true; done # get last argument
mkdir -p "$dest"
mv $@
}
sha512sums="
7ecc3de3b5db41ec4ff6a5ce6c7e77dc330753c6f3fd87db4d07d6bb763a0b047e83afeef2251b4c6a5d2ff53fd9f3d7e99d091ef2e2c6ab8f18db7447d8a97d php-7.2.34.tar.xz
78ebccf0124ade38fcf8a9cadd4e3bf637f79c45f8bbaebdf1c9c387e39a311555f633ad0713ea9031986e9fb3550055e7e3d719a0477edc3458fccac9307cfd php7.2-fpm.initd
b65f01e7de2195c0ea6b9e09b5acaf022ef8e0b69bfc2c143a5316293f36e8e3a4556b1847ffd330cb7aa2106dac9ca67950c240504934418c5ceb0cea5beb56 php7.2-fpm.logrotate
b44532f8cfe74f7a0c37ede23ee736a5e86a9f254756eca90a5ed8e917bc3e282fe53f0f9a9cc030b49ba94aa52d11363d53433b957501aad2d5ffcdcf6f3573 php7.2-module.conf
6593accfe1ef0d9d28d257b2825823afdbfaa72bbf2e09e4ed689b644571a0d085cd4d6c92ffdff6ca9d0bb6d31cf84e5db5c4a4d88f192bba3f95a0c9b1dfd7 disabled-tests.list
f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a313d689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505 install-pear.patch
e65383c878c991f554641371c145f67eaf6a59f2a0071645279478d69ba16183e92608442ddbe9be092cb1e9f091aee62be6cc0eedeea90c3256f55ac2831b8a includedir.patch
7ded89fb6674efd57028e0e4f40b67f46af45c9bd20d56abd0a8b911c3ab506a2518a57b002e417c80b4fd767721aa2d9ba8e6decd908a742b28f1a4b7373f44 sharedir.patch
6a2f17e0e0e74810eb092da84b025c7226695a46351c3a77d56116cc671a867c97eae253ef3a5c7d34c12361b95673307dc03232b924c2668a2205fa9217632d php7-fpm-version-suffix.patch
f8ecae241a90cbc3e98aa4deb3d5d35ef555f51380e29f4e182a8060dffeb84be74f030a14c6b452668471030d78964f52795ca74275db05543ccad20ef1f2cc allow-build-recode-and-imap-together.patch
5bb1f90de8c543d4efffa8bc604fb3239e478d9d9625d30cd03449643906a0fe5407123403206ec57f4bf9f18893a7ff4524ccf417b2bd8bce4ee7d18815b576 fix-tests-devserver.patch
1ad7276cd0cc253c7c084248b7c1a3508de0a7f7df68b9b48202f225424de470f8fbc62fb2c10211042e8b7ec1ac353ca1cde1638e743199f1ff8d79ce669598 u8-001-CVE-2020-7071-1.patch
3a609c3ccbb39d518a20afd777f1100bc14de98ebc18487ab688c9633a10b44af40b63bb479ebd8b4ddf285aea14526f9b855056b5ac54c7fbd08c5f306f53d1 u8-002-CVE-2020-7071-2.patch
49edc27552743eb93666386927067b0d41846f7200d019bb3c73ffe0e3158eefc8ac01eedf132c9e59bd97b36418d0276c85151ad679e7a62da9c7ea7b7698d5 u8-003-CVE-2020-7071-3.patch
c7d3f8c788704d5b997d40ea1cafa51c9d57d40fb34c4ad2d8f096ff12610830b742f974cfaa96eac82dc41549fe649a07f262904b2737c2d53de85558c051eb u8-004-CVE-2021-21702-1.patch
a3b631bb2d8fa016c29a70ca0f2be4e9bf61137ed221710b5ab23b1d187086f81a8d0e1dbb2c7c2e499c7dc389e698a8f1acfe89807a6a445e83a56c45e4424c u8-005-CVE-2021-21702-2.patch
4ac7923156a851cf059783bcf44183339a5ad3b105bedf8d15980ec34a195fafef397d77ced07d4333f26a0953b1b09c73cfb969df7228235d8bc1985f29ee64 u8-006-CVE-2021-21704-1.patch
4f0764654fa430b5bf52b5ac37413d8fd879fc87aeadbd3ab698b4812a68d0720ce58499bf0a885ed122270fbc419a8f5d0bf4c2fba8705880e830915d22f8ad u8-007-CVE-2021-21704-2.patch
9f24a63f6ae20f81fb3dbd297a0f7e28ab66f0b22aa3683c82a711f5991b031477bdd641b1d3ac9ec529e51a82b5711916dc8523c6742218e0783629868f4364 u8-008-CVE-2021-21704-3.patch
5612baf6614e8c18411efb7fd7a027bf03ca06d9f9f41d33b1733b333316e1a975a34eae785238368e479e98be1bba5a6cc64901d911976b5ccb9e4083fdfa8b u8-009-CVE-2021-21704-4.patch
43e7eb90d0ba9bf6eca92b594d991bd3990817801a1addbaa69b2632a904c67b2831b233e12f494757e4bdf673c255b109a41f4581ea5272f6dec95d39e40ef7 u8-010-CVE-2021-21705.patch
6eeaac947df36a16a703d60bd4c31ce3bb17c1c6ab9fdf76bb78ac278c0f88b197dd6ddc226c9f5d0428b9170ffdd186c30f368077626aabe2a9f05c3e9d735f u8-011-CVE-2021-21705-2.patch
c837e778c17780093a47255d48cc7f47b5ca3fdd9569174145eeae73614bce8565cbbb54cae488b1510e32614edd28a716f5acf5f932cc61a422a33b5606ea4c u9-001-lp-1939853-1-Fix-Segfault-with-get_result-and-PS-cursors.patch
844b7736b3a5ecc5ad247d41419e97e466fae382b82cc1cdf6d56e9a8fa9280bc0f624a3f07fd9d52205372c5d82201d7b3b97dde46577b1d79a62dbb545b07d u9-002-lp-1939853-2-MySQLnd-Support-cursors-in-store-get-result.patch
ea82fa077ea0f5171bbbcd25f1e5265c69bf0b6b544cd601379269755ad9e76184932ade958efbddfd4c921813e333f618e7740334227d3f10bd2036727615d0 u10-001-CVE-2021-21703.patch
bba7c89f05d7663f32ab6fd1fd716496ac8ed801e07e3ace732df8d1e026c851d1ce85c1248a73ee6270a6d8844f1ef687d7e02b595f9d9768e7c550db641ab1 u11-001-CVE-2017-8923.patch
ab62b120c20ae6c1c56a7fbffa09fad6bbdab816e1aaa6888fc3933cf72e6b5a09741181a56879cf3b1b87634675194d5c256dd2bae3926f1f91185313bedec4 u11-002-CVE-2017-9118-pre1.patch
e63ae6e3385bc79ba8507d0676483467a3cd67d1134b8613b0561c5dffe0d247af7561b0a5011d6f84a56dc3f5c9234ecdc2726ee1ea2ccfa77e91a9486ad7cb u11-003-CVE-2017-9118.patch
02f47153d9873359e01e9155f413e06f3a3a0689e059e2012d3d2b3c81ab32a0d695655f98822c771c1c5867ca27123a06eb33ee6766109e235f0e2ed1851019 u11-004-CVE-2017-9119.patch
fddf6c50682b4d778908130477a9160df68dbd257f33991262d49c3eb05a220ec608a9625ce2b7f00241010aaa4ec7d9c7daa1884d66decda4ac7c4547082a4d u11-005-CVE-2017-9120.patch
64460be7ba985c5192a51badabdbec3e530e6a0818d71612f1ad2b1e5e80eedcb97bb7da3bc2b2daca2c9a610d969336432e89b7babc6aa474153f2dbe5d0451 u11-006-CVE-2021-21707.patch
bdd0212861e5b20d4420546dd20d835ad00f704c744214ba4777a534c156cc53254fd191341a96a3556c1a7ad1455be3beb31edf198a9ead77d92d569847bbdb u12-001-CVE-2022-31625.patch
9f5e5798b22e9ed4c6b9cb0fe10372a457c7cfa2fc11b6eac459a358eef9b7ed4e15682365747be431804370fb6511506728fc13ed001906fb60ee26fb3b31b8 u12-002-CVE-2022-31626.patch
06d342debefb45e5ba4b8619cf08614966b89d6eaec00d8c22f01232ef3a4f773e54dcb8a63f2d0d910f7d0f5bb779fd7a22e9bfd6070bb5e73736c358189d27 u13-001-CVE-2022-31625-2.patch
"

@ -1,20 +0,0 @@
Extensions recode and imap can't be loaded together, but they can be build
together, and that's what we want.
Source: https://src.fedoraproject.org/cgit/rpms/php.git/tree/php-5.3.0-recode.patch?h=f26
--- a/ext/recode/config9.m4
+++ b/ext/recode/config9.m4
@@ -4,13 +4,6 @@ dnl
dnl Check for extensions with which Recode can not work
if test "$PHP_RECODE" != "no"; then
- test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap"
-
- if test -n "$MYSQL_LIBNAME"; then
- PHP_CHECK_LIBRARY($MYSQL_LIBNAME, hash_insert, [
- recode_conflict="$recode_conflict mysql"
- ])
- fi
if test -n "$recode_conflict"; then
AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict])

@ -1,230 +0,0 @@
#
# Tests that we don't need to run
#
# These are mostly unit or regression tests, we care about integration tests.
tests/lang/*
tests/classes/*
Zend/tests/*
#
# Tests that fail and probably should not...
#
# Too many tests fail! Some of them bogus, some not.
# THIS SHOULD BE REALLY FIXED!
ext/openssl/tests/*
# Broken tests, missing config.
sapi/fpm/tests/*
# Incorrect result.
sapi/cli/tests/upload_2G.phpt
# Fails in chroot (on Travis).
sapi/cli/tests/cli_process_title_unix.phpt
# Error messages in different order.
sapi/cgi/tests/005.phpt
# Fails on ppc64le.
sapi/phpdbg/tests/watch_006.phpt
# Missing timezone in date.
ext/date/tests/bug27780.phpt
ext/date/tests/bug32555.phpt
ext/date/tests/bug33532.phpt
# Number overflow!?
ext/date/tests/bug53437_var5.phpt
ext/date/tests/bug53437_var6.phpt
# Incompatible version of enchant library?
ext/enchant/tests/broker_list_dicts.phpt
ext/enchant/tests/bug13181.phpt
# Wrong charset, conversion from `UTF-8' to `ASCII//TRANSLIT' is not allowed.
ext/iconv/tests/iconv_basic_001.phpt
# Wrong charset, conversion from `UTF-8' to `UTF-8//IGNORE' is not allowed.
ext/iconv/tests/bug48147.phpt
# Float rounding error and/or different precision.
ext/date/tests/date_time_fractions.phpt
ext/intl/tests/bug14562.phpt
ext/intl/tests/formatter_parse.phpt
ext/intl/tests/formatter_parse_currency.phpt
ext/intl/tests/msgfmt_parse.phpt
# Incorrect results.
ext/intl/tests/spoofchecker_001.phpt
ext/intl/tests/timezone_IDforWindowsID_basic.phpt
ext/intl/tests/timezone_windowsID_basic.phpt
# Class 'Phar' not found.
ext/opcache/tests/issue0115.phpt
ext/opcache/tests/issue0149.phpt
# Invalid datasource.
ext/pdo_odbc/tests/max_columns.phpt
# Fails in chroot (on Travis).
ext/posix/tests/posix_errno_variation2.phpt
ext/posix/tests/posix_kill_basic.phpt
# Randomly fails.
ext/pcntl/tests/002.phpt
# Call to undefined function session_start().
ext/session/tests/session_regenerate_id_cookie.phpt
# Class 'SoapServer' not found.
ext/soap/tests/bug73037.phpt
# Incorrect results.
ext/soap/tests/server009.phpt
# Fails on ppc64le.
ext/sockets/tests/mcast_ipv6_send.phpt
# Depends on something from ext/openssl/tests
ext/standard/tests/streams/stream_context_tcp_nodelay_server.phpt
# Incorrect results.
ext/standard/tests/crypt/bcrypt_invalid_algorithm.phpt
ext/standard/tests/crypt/bcrypt_invalid_cost.phpt
ext/standard/tests/crypt/des_fallback_invalid_salt.phpt
ext/standard/tests/strings/crypt_blowfish.phpt
ext/standard/tests/strings/crypt_blowfish_variation1.phpt
ext/standard/tests/strings/crypt_blowfish_variation2.phpt
ext/standard/tests/strings/crypt_des_error.phpt
# Incorrect results.
ext/standard/tests/strings/bug51059.phpt
# Fails in chroot (on Travis).
ext/standard/tests/general_functions/proc_nice_basic.phpt
# Cannot find serialization handler 'wddx'.
ext/wddx/tests/004.phpt
ext/wddx/tests/005.phpt
ext/wddx/tests/bug70741.phpt
# Globbing in zip file does not work.
ext/zip/tests/bug70103.phpt
# ZipArchive::close() doesn't indicate errors; fails on ppc64le.
ext/zip/tests/bug70322.phpt
# Test timeouts.
#Zend/tests/concat_003.phpt
# Failing tests related to locale and/or iconv.
ext/date/tests/009.phpt
ext/gettext/tests/gettext_basic-enus.phpt
ext/gettext/tests/gettext_basic.phpt
ext/gettext/tests/gettext_bindtextdomain-cwd.phpt
ext/gettext/tests/gettext_dcgettext.phpt
ext/gettext/tests/gettext_dgettext.phpt
ext/gettext/tests/gettext_dngettext-plural.phpt
ext/gettext/tests/gettext_ngettext.phpt
ext/iconv/tests/bug52211.phpt
ext/intl/tests/bug67052.phpt
ext/intl/tests/formatter_format6.phpt
ext/json/tests/bug41403.phpt
ext/pcre/tests/locales.phpt
ext/soap/tests/bugs/bug39815.phpt
ext/standard/tests/array/locale_sort.phpt
ext/standard/tests/file/bug43008.phpt
ext/standard/tests/strings/htmlentities02.phpt
ext/standard/tests/strings/htmlentities03.phpt
ext/standard/tests/strings/moneyformat.phpt
ext/standard/tests/strings/setlocale_basic1.phpt
ext/standard/tests/strings/setlocale_basic2.phpt
ext/standard/tests/strings/setlocale_basic3.phpt
ext/standard/tests/strings/setlocale_error.phpt
ext/standard/tests/strings/setlocale_variation1.phpt
ext/standard/tests/strings/setlocale_variation2.phpt
ext/standard/tests/strings/setlocale_variation3.phpt
ext/standard/tests/strings/setlocale_variation4.phpt
ext/standard/tests/strings/setlocale_variation5.phpt
ext/standard/tests/strings/sprintf_f_3.phpt
ext/standard/tests/strings/strtoupper.phpt
ext/standard/tests/time/strptime_basic.phpt
ext/standard/tests/time/strptime_parts.phpt
#tests/lang/034.phpt
#tests/lang/bug30638.phpt
#
# Tests that fail for known reason and/or we don't need to worry about them
#
# Output does not match due to verbose messages from curl. Probably just
# different curl version...
ext/curl/tests/bug48203.phpt
ext/curl/tests/bug48203_multi.phpt
# Fails due to unsupported JP charsets.
ext/iconv/tests/eucjp2iso2022jp.phpt
ext/iconv/tests/eucjp2sjis.phpt
ext/iconv/tests/eucjp2utf8.phpt
ext/iconv/tests/iconv_basic.phpt
ext/iconv/tests/iconv_mime_decode.phpt
ext/iconv/tests/iconv_mime_encode.phpt
ext/iconv/tests/iconv_stream_filter.phpt
ext/iconv/tests/iconv_stream_filter_delimiter.phpt
ext/iconv/tests/iconv_strpos.phpt
ext/iconv/tests/iconv_strrpos.phpt
ext/iconv/tests/iconv_substr.phpt
ext/iconv/tests/ob_iconv_handler.phpt
ext/standard/tests/strings/htmlentities04.phpt
ext/standard/tests/strings/htmlentities15.phpt
# Segfaults, it tests JIT stacklimit exhaustion.
ext/pcre/tests/preg_match_error3.phpt
# Timeouts.
ext/recode/tests/001.phpt
# Requires running SNMP server.
ext/snmp/tests/*
# Operation not permitted.
ext/sockets/tests/socket_set_option_bindtodevice.phpt
# Different wording of socket error messages (due to different libc).
ext/sockets/tests/socket_strerror.phpt
# Broken test.
ext/standard/tests/file/disk_free_space_basic.phpt
# Fails probably due to differencies in musl.
ext/standard/tests/file/lstat_stat_variation9.phpt
ext/standard/tests/file/popen_pclose_error.phpt
# WTF?! getservername(true, "tcp") and similar non-senses...
ext/standard/tests/general_functions/getservbyport_variation1.phpt
ext/standard/tests/general_functions/getservbyname_variation2.phpt
ext/standard/tests/general_functions/getservbyname_variation5.phpt
# Needs GNU cut utility.
ext/standard/tests/mail/mail_basic2.phpt
ext/standard/tests/mail/mail_variation2.phpt
# Fails probably due to differencies in musl.
ext/sockets/tests/socket_create_pair-wrongparams.phpt
# Error message does not match due to some extra info.
ext/standard/tests/strings/007.phpt
# Causes stack exhausion.
#Zend/tests/bug54268.phpt
#Zend/tests/bug68412.phpt
# Fails because of locale settings.
ext/intl/tests/dateformat_create_cal_arg_variant4.phpt
ext/intl/tests/dateformat_get_set_calendar_variant4.phpt
ext/intl/tests/formatter_get_locale_variant2.phpt

@ -1,23 +0,0 @@
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Mon, 01 May 2017 01:33:00 +0200
Subject: [PATCH] Fix tests failing due to extra message from built-in web server
Remove messages like:
PHP 7.1.4 Development Server started at Mon May 1 00:42:39 2017
from test outputs, because tests do not expect them. I have no clue what
happens here...
--- a/run-tests.php
+++ b/run-tests.php
@@ -2009,6 +2009,9 @@
// Does the output match what is expected?
$output = preg_replace("/\r\n/", "\n", trim($out));
+ // Remove message from built-in development server.
+ $output = preg_replace("/^PHP [0-9.]+ Development Server started at .*\n\n?/m", "", $output);
+
/* when using CGI, strip the headers from the output */
$headers = array();

@ -1,41 +0,0 @@
--- a/scripts/Makefile.frag
+++ b/scripts/Makefile.frag
@@ -3,7 +3,7 @@
# Build environment install
#
-phpincludedir = $(includedir)/php
+phpincludedir = $(includedir)/php7.2
phpbuilddir = $(libdir)/build
BUILD_FILES = \
--- a/ext/pdo/Makefile.frag
+++ b/ext/pdo/Makefile.frag
@@ -1,4 +1,4 @@
-phpincludedir=$(prefix)/include/php
+phpincludedir=$(prefix)/include/php7.2
PDO_HEADER_FILES= \
php_pdo.h \
--- a/scripts/php-config.in
+++ b/scripts/php-config.in
@@ -6,7 +6,7 @@
exec_prefix="@exec_prefix@"
version="@PHP_VERSION@"
vernum="@PHP_VERSION_ID@"
-include_dir="@includedir@/php"
+include_dir="@includedir@/php7.2"
includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
ldflags="@PHP_LDFLAGS@"
libs="@EXTRA_LIBS@"
--- a/scripts/phpize.in
+++ b/scripts/phpize.in
@@ -5,7 +5,7 @@
datarootdir='@datarootdir@'
exec_prefix="`eval echo @exec_prefix@`"
phpdir="`eval echo @libdir@`/build"
-includedir="`eval echo @includedir@`/php"
+includedir="`eval echo @includedir@`/php7.2"
builddir="`pwd`"
SED="@SED@"

@ -1,15 +0,0 @@
--- ./pear/Makefile.frag.orig 2013-04-12 07:02:27.041602514 +0000
+++ ./pear/Makefile.frag 2013-04-12 07:04:09.065836822 +0000
@@ -2,8 +2,11 @@
peardir=$(PEAR_INSTALLDIR)
+# help the built php to find xml extension so we can install pear
+PEAR_INSTALL_XML_FLAGS = -d extension_dir="$(top_builddir)/modules" -d extension=xml.so
+
# Skip all php.ini files altogether
-PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0
+PEAR_INSTALL_FLAGS = -n -dshort_open_tag=0 -dopen_basedir= -derror_reporting=1803 -dmemory_limit=-1 -ddetect_unicode=0 $(PEAR_INSTALL_XML_FLAGS)
WGET = `which wget 2>/dev/null`
FETCH = `which fetch 2>/dev/null`

@ -1,79 +0,0 @@
--- a/sapi/fpm/fpm/fpm_conf.c
+++ b/sapi/fpm/fpm/fpm_conf.c
@@ -1205,7 +1205,7 @@
}
if (!fpm_global_config.error_log) {
- fpm_global_config.error_log = strdup("log/php-fpm.log");
+ fpm_global_config.error_log = strdup("log/php7.2/error.log");
}
#ifdef HAVE_SYSTEMD
@@ -1216,7 +1216,7 @@
#ifdef HAVE_SYSLOG_H
if (!fpm_global_config.syslog_ident) {
- fpm_global_config.syslog_ident = strdup("php-fpm");
+ fpm_global_config.syslog_ident = strdup("php-fpm7.2");
}
if (fpm_global_config.syslog_facility < 0) {
@@ -1710,7 +1710,7 @@
if (fpm_globals.prefix == NULL) {
spprintf(&tmp, 0, "%s/php-fpm.conf", PHP_SYSCONFDIR);
} else {
- spprintf(&tmp, 0, "%s/etc/php-fpm.conf", fpm_globals.prefix);
+ spprintf(&tmp, 0, "%s/etc/php7.2/php-fpm.conf", fpm_globals.prefix);
}
if (!tmp) {
--- a/sapi/fpm/php-fpm.conf.in
+++ b/sapi/fpm/php-fpm.conf.in
@@ -16,3 +16,3 @@
; Default Value: none
-;pid = run/php-fpm.pid
+;pid = run/php-fpm7.2.pid
@@ -22,4 +22,4 @@
; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
-; Default Value: log/php-fpm.log
-;error_log = log/php-fpm.log
+; Default Value: log/php7.2/error.log
+;error_log = log/php7.2/error.log
@@ -35,4 +35,4 @@
; which must suit common needs.
-; Default Value: php-fpm
-;syslog.ident = php-fpm
+; Default Value: php-fpm7.2
+;syslog.ident = php-fpm7.2
--- a/sapi/fpm/www.conf.in
+++ b/sapi/fpm/www.conf.in
@@ -256,7 +256,7 @@
; The access log file
; Default: not set
-;access.log = log/$pool.access.log
+;access.log = log/php7.2/$pool.access.log
; The access log format.
; The following syntax is allowed
@@ -320,7 +320,7 @@
; The log file for slow requests
; Default Value: not set
; Note: slowlog is mandatory if request_slowlog_timeout is set
-;slowlog = log/$pool.log.slow
+;slowlog = log/php7.2/$pool.slow.log
; The timeout for serving a single request after which a PHP backtrace will be
; dumped to the 'slowlog' file. A value of '0s' means 'off'.
@@ -418,6 +418,6 @@
; specified at startup with the -d argument
;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com
;php_flag[display_errors] = off
-;php_admin_value[error_log] = /var/log/fpm-php.www.log
+;php_admin_value[error_log] = /var/log/php7.2/$pool.error.log
;php_admin_flag[log_errors] = on
;php_admin_value[memory_limit] = 32M

@ -1,93 +0,0 @@
#!/sbin/openrc-run
# If you want to run separate master process per pool, then create a symlink
# to this runscript for each pool. In that mode, the php-fpm daemon is started
# as nobody by default. You can override the user (and group) by declaring
# variable "user" and optionally "group" in conf.d file, or in the $fpm_config
# file (the former has precedence).
: ${name:="PHP FastCGI Process Manager"}
command="/usr/sbin/php-fpm7.2"
command_background="yes"
start_stop_daemon_args="--quiet"
pidfile="/run/$RC_SVCNAME/php-fpm.pid"
retry="SIGTERM/20"
# configtest is here only for backward compatibility
extra_commands="checkconfig configtest"
extra_started_commands="reload reopen"
description_checkconfig="Run php-fpm config check"
description_reload="Gracefully reload workers and config"
description_reopen="Reopen log files"
required_files="$fpm_config"
depend() {
need net
use apache2 lighttpd nginx
}
init_vars() {
# Defaults for single master process with multiple pools
if [ "$RC_SVCNAME" = "php-fpm7.2" ]; then
: ${fpm_config:="/etc/php7.2/php-fpm.conf"}
: ${user:="root"}
# Defaults for master process per pool
else
: ${fpm_config="/etc/php7.2/php-fpm.d/${RC_SVCNAME#php-fpm7.2.}.conf"}
: ${user:="$(conf_get user)"}
: ${user:="nobody"}
: ${group:="$(conf_get group)"}
fi
command_args="--nodaemonize --fpm-config $fpm_config"
start_stop_daemon_args="$start_stop_daemon_args
--user $user ${group:+"--group $group"}"
}
start_pre() {
checkconfig || return 1
# If unix socket is used (instead of TCP/IP), then ensure that the
# directory exists and has correct privileges.
local listen="$(conf_get listen)"
if [ "${listen:0:1}" = "/" ]; then
checkpath -d -o $user:$group "$(dirname "$listen")"
fi
checkpath -d "$(dirname "$pidfile")"
}
reload() {
ebegin "Reloading $name"
start-stop-daemon --signal USR2 --pidfile "$pidfile"
eend $?
}
reopen() {
ebegin "Reopening $name log files"
start-stop-daemon --signal USR1 --pidfile "$pidfile"
eend $?
}
checkconfig() {
init_vars
ebegin "Checking $fpm_config"
local out
out="$(su -s /bin/sh -c "$command --test --fpm-config $fpm_config" $user 2>&1)" || {
printf "%s\n" "$out"
eend 1 "failed, please correct errors above"
return 1
}
}
configtest() {
ewarn "configtest is deprecated, use checkconfig instead"
checkconfig
}
conf_get() {
local key="$1"
sed -nE "s/^${key}\s*=\s*\"?([^\";]+).*/\1/p" "$fpm_config" | head -n 1
}

@ -1,13 +0,0 @@
/var/log/php7.2/*.log {
rotate 7
daily
missingok
notifempty
delaycompress
compress
dateext
sharedscripts
postrotate
/etc/init.d/php-fpm7.2 --ifstarted --quiet reopen
endscript
}

@ -1,13 +0,0 @@
LoadModule php7_module modules/mod_php7.2.so
DirectoryIndex index.php index.html
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
# Uncomment the following to allow .phps files to be handled by the php source filter,
# and displayed as syntax-highlighted source code
#<FilesMatch "\.phps$">
# SetHandler application/x-httpd-php-source
#</FilesMatch>

@ -1,11 +0,0 @@
--- a/php.ini-production 2018-07-28 18:05:51.737130931 +0300
+++ b/php.ini-production 2018-07-28 18:06:45.177774666 +0300
@@ -711,7 +711,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
+include_path = ".:/usr/share/php7.2"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
Loading…
Cancel
Save