diff --git a/README.md b/README.md index a45f922c..bb8b18d6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Go to `https://localhost`, and enjoy! ### Standalone Binary If you prefer not to use Docker, we provide standalone FrankenPHP binaries for Linux and macOS -containing [PHP 8.3](https://www.php.net/releases/8.3/en.php) and most popular PHP extensions. +containing [PHP 8.4](https://www.php.net/releases/8.4/en.php) and most popular PHP extensions. On Windows, use [WSL](https://learn.microsoft.com/windows/wsl/) to run FrankenPHP. diff --git a/build-static.sh b/build-static.sh index 3c342cb6..543da582 100755 --- a/build-static.sh +++ b/build-static.sh @@ -42,7 +42,7 @@ if ! echo "${PHP_EXTENSION_LIBS}" | grep -q "\bbrotli\b"; then fi if [ -z "${PHP_VERSION}" ]; then - export PHP_VERSION="8.3" + export PHP_VERSION="8.4" fi if [ -z "${FRANKENPHP_VERSION}" ]; then @@ -159,6 +159,11 @@ elif [ "${os}" = "linux" ] && [ -z "${DEBUG_SYMBOLS}" ]; then CGO_LDFLAGS="-Wl,-O1 -pie" fi +# Temporary workaround for https://github.com/crazywhalecc/static-php-cli/issues/560 +if [[ "${PHP_EXTENSIONS}" == *"pgsql"* ]]; then + CGO_LDFLAGS="${CGO_LDFLAGS} ${PWD}/buildroot/lib/libpgcommon.a ${PWD}/buildroot/lib/libpgport.a ${PWD}/buildroot/lib/libpq.a" +fi + CGO_LDFLAGS="${CGO_LDFLAGS} ${PWD}/buildroot/lib/libbrotlicommon.a ${PWD}/buildroot/lib/libbrotlienc.a ${PWD}/buildroot/lib/libbrotlidec.a ${PWD}/buildroot/lib/libwatcher-c.a $(./buildroot/bin/php-config --ldflags || true) $(./buildroot/bin/php-config --libs | sed -e 's/-lgcc_s//g' || true)" if [ "${os}" = "linux" ]; then if echo "${PHP_EXTENSIONS}" | grep -qE "\b(intl|imagick|grpc|v8js|protobuf|mongodb|tbb)\b"; then diff --git a/docs/cn/README.md b/docs/cn/README.md index 3228eaf7..59ef44a4 100644 --- a/docs/cn/README.md +++ b/docs/cn/README.md @@ -34,7 +34,7 @@ docker run -v $PWD:/app/public \ ### 独立二进制 如果您不想使用 Docker,我们为 Linux 和 macOS 提供独立的 FrankenPHP 二进制文件 -,其中包含 [PHP 8.3](https://www.php.net/releases/8.3/en.php) 和最流行的 PHP 扩展:[下载 FrankenPHP](https://github.com/dunglas/frankenphp/releases)。 +,其中包含 [PHP 8.4](https://www.php.net/releases/8.4/en.php) 和最流行的 PHP 扩展:[下载 FrankenPHP](https://github.com/dunglas/frankenphp/releases)。 若要启动当前目录的内容,请运行: diff --git a/docs/fr/README.md b/docs/fr/README.md index 0fd709c5..c613f14a 100644 --- a/docs/fr/README.md +++ b/docs/fr/README.md @@ -34,7 +34,7 @@ Rendez-vous sur `https://localhost`, c'est parti ! ### Binaire autonome Si vous préférez ne pas utiliser Docker, nous fournissons des binaires autonomes de FrankenPHP pour Linux et macOS -contenant [PHP 8.3](https://www.php.net/releases/8.3/fr.php) et la plupart des extensions PHP populaires. +contenant [PHP 8.4](https://www.php.net/releases/8.4/fr.php) et la plupart des extensions PHP populaires. Sous Windows, utilisez [WSL](https://learn.microsoft.com/windows/wsl/) pour exécuter FrankenPHP. diff --git a/docs/tr/README.md b/docs/tr/README.md index 483bbc41..ee4b238b 100644 --- a/docs/tr/README.md +++ b/docs/tr/README.md @@ -34,7 +34,7 @@ docker run -v $PWD:/app/public \ ### Binary Çıktısı Docker kullanmayı tercih etmiyorsanız, Linux ve macOS için bağımsız FrankenPHP binary dosyası sağlıyoruz -[PHP 8.3](https://www.php.net/releases/8.3/en.php) ve en popüler PHP eklentilerini de içermekte: [FrankenPHP](https://github.com/dunglas/frankenphp/releases) indirin +[PHP 8.4](https://www.php.net/releases/8.4/en.php) ve en popüler PHP eklentilerini de içermekte: [FrankenPHP](https://github.com/dunglas/frankenphp/releases) indirin Geçerli dizinin içeriğini başlatmak için çalıştırın: