From 63db434312cb6f409777d235cc0d6aca79fd0679 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 15 Oct 2024 15:57:07 +0200 Subject: [PATCH] Add support for phalcon (#994) --- data/supported-extensions | 1 + install-php-extensions | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 4c48d5e..5c65a3d 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -81,6 +81,7 @@ pdo_odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 pdo_pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 +phalcon 7.2 7.3 7.4 8.0 8.1 8.2 8.3 php_trie 7.3 7.4 8.0 8.1 8.2 8.3 8.4 phpy 8.1 8.2 8.3 8.4 pkcs11 7.4 8.0 8.1 8.2 8.3 8.4 diff --git a/install-php-extensions b/install-php-extensions index d832787..d53b8ce 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -597,6 +597,10 @@ sortModulesToInstall() { checkRequiredModule relay igbinary # pq requires raphf checkRequiredModule pq raphf + # phalcon up to v5.0.0beta3 requires psr + if test $PHP_MAJMINPAT_VERSION -lt 70401; then + checkRequiredModule phalcon psr + fi # Some module installation may use sockets if available: move it before other modules if stringInList 'sockets' "$PHP_MODULES_TO_INSTALL"; then PHP_MODULES_TO_INSTALL="$(removeStringFromList 'sockets' "$PHP_MODULES_TO_INSTALL")" @@ -3644,6 +3648,15 @@ installRemoteModule() { fi fi ;; + phalcon) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMINPAT_VERSION -lt 70401; then + installRemoteModule_version=4.1.2 + elif test $PHP_MAJMIN_VERSION -lt 800; then + installRemoteModule_version=5.4.0 + 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)"