From 8f149e8aa1267131bd90ad79f8724742df77fc99 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 25 May 2022 16:47:23 +0200 Subject: [PATCH] Add support for php_trie (#578) --- MAINTAINERS.md | 5 +++++ data/supported-extensions | 1 + install-php-extensions | 10 ++++++++++ 3 files changed, 16 insertions(+) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 512b1ec..c522bdc 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -74,6 +74,11 @@ We need to monitor new releases at https://www.ioncube.com/news.php The only available versions of the `mosquitto` PHP extension are all alpha/beta. We should switch to the stable release once it will be available. +## php_trie + +The `php_trie` PHP extension uses the HAT-trie library. +We need to monitor new releases at https://github.com/Tessil/hat-trie/releases + ### opencensus The only available versions of the `opencensus` PHP extension are all alpha. diff --git a/data/supported-extensions b/data/supported-extensions index cd10a14..0d88f46 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -72,6 +72,7 @@ pdo_odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 pdo_pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1 pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 +php_trie 7.3 7.4 8.0 8.1 propro 5.5 5.6 7.0 7.1 7.2 7.3 7.4 protobuf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 pspell 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 diff --git a/install-php-extensions b/install-php-extensions index ccf1a9b..7cca4bd 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1021,6 +1021,9 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev" ;; + php_trie@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++" + ;; pspell@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent aspell-libs" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile aspell-dev" @@ -2828,6 +2831,13 @@ installRemoteModule() { fi fi ;; + php_trie) + if ! test -f /usr/local/include/hat-trie/include/tsl/htrie_map.h; then + installRemoteModule_src="$(getPackageSource https://codeload.github.com/Tessil/hat-trie/tar.gz/v0.6.0)" + mkdir -p /usr/local/include/hat-trie + mv "$installRemoteModule_src/include" /usr/local/include/hat-trie + fi + ;; propro) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then