diff --git a/build-static.sh b/build-static.sh index 4ede25206..a78ded0f3 100755 --- a/build-static.sh +++ b/build-static.sh @@ -3,7 +3,7 @@ set -o errexit set -x -if ! type "git" > /dev/null; then +if ! type "git" > /dev/null 2>&1; then echo "The \"git\" command must be installed." exit 1 fi @@ -16,7 +16,7 @@ if [ "${os}" = "darwin" ]; then md5binary="md5 -q" fi -if [ "${os}" = "linux" ] && ! type "cmake" > /dev/null; then +if [ "${os}" = "linux" ] && ! type "cmake" > /dev/null 2>&1; then echo "The \"cmake\" command must be installed." exit 1 fi @@ -28,7 +28,7 @@ if [ -z "${PHP_EXTENSIONS}" ]; then export PHP_EXTENSIONS cd - else - export PHP_EXTENSIONS="apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,ftp,gd,gmp,gettext,iconv,igbinary,imagick,intl,ldap,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,parallel,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,protobuf,readline,redis,session,shmop,simplexml,soap,sockets,sodium,sqlite3,ssh2,sysvmsg,sysvsem,sysvshm,tidy,tokenizer,xlswriter,xml,xmlreader,xmlwriter,zip,zlib,yaml,zstd" + export PHP_EXTENSIONS="apcu,bcmath,bz2,calendar,ctype,curl,dba,dom,exif,fileinfo,filter,ftp,gd,gmp,gettext,iconv,igbinary,imagick,intl,ldap,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pcntl,pdo,pdo_mysql,pdo_pgsql,pdo_sqlite,pgsql,phar,posix,protobuf,readline,redis,session,shmop,simplexml,soap,sockets,sodium,sqlite3,ssh2,sysvmsg,sysvsem,sysvshm,tidy,tokenizer,xlswriter,xml,xmlreader,xmlwriter,zip,zlib,yaml,zstd" fi fi @@ -83,18 +83,20 @@ else cd static-php-cli/ git pull else - git clone --depth 1 https://github.com/crazywhalecc/static-php-cli + # TODO: switch back to upstream when https://github.com/crazywhalecc/static-php-cli/pull/481 will be merged + #git clone --depth 1 https://github.com/crazywhalecc/static-php-cli + git clone --depth 1 --branch fix/480 https://github.com/dunglas/static-php-cli cd static-php-cli/ fi - if type "brew" > /dev/null; then + if type "brew" > /dev/null 2>&1; then if ! type "composer" > /dev/null; then packages="composer" fi if ! type "go" > /dev/null; then packages="${packages} go" fi - if [ -n "${RELEASE}" ] && ! type "gh" > /dev/null; then + if [ -n "${RELEASE}" ] && ! type "gh" > /dev/null 2>&1; then packages="${packages} gh" fi @@ -242,7 +244,7 @@ if [ -d "${EMBED}" ]; then truncate -s 0 app_checksum.txt fi -if type "upx" > /dev/null && [ -z "${DEBUG_SYMBOLS}" ] && [ -z "${NO_COMPRESS}" ]; then +if type "upx" > /dev/null 2>&1 && [ -z "${DEBUG_SYMBOLS}" ] && [ -z "${NO_COMPRESS}" ]; then upx --best "dist/${bin}" fi diff --git a/docs/fr/known-issues.md b/docs/fr/known-issues.md index 94d3f704d..8ab3301b0 100644 --- a/docs/fr/known-issues.md +++ b/docs/fr/known-issues.md @@ -43,8 +43,10 @@ Les extensions suivantes sont connues pour ne pas être compatibles avec Franken Les extensions suivantes ont des bugs connus ou des comportements inattendus lorsqu'elles sont utilisées avec FrankenPHP : -Nom | Problème -[ext-openssl](https://www.php.net/manual/fr/book.openssl.php) | Lors de l'utilisation d'une version statique de FrankenPHP (construite avec la libc musl), l'extension OpenSSL peut planter sous de fortes charges. Une solution consiste à utiliser une version liée dynamiquement (comme celle utilisée dans les images Docker). Ce bogue est [suivi par PHP](https://github.com/php/php-src/issues/13648). +| Nom | Problème | +|---------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [ext-openssl](https://www.php.net/manual/fr/book.openssl.php) | Lors de l'utilisation d'une version statique de FrankenPHP (construite avec la libc musl), l'extension OpenSSL peut planter sous de fortes charges. Une solution consiste à utiliser une version liée dynamiquement (comme celle utilisée dans les images Docker). Ce bogue est [suivi par PHP](https://github.com/php/php-src/issues/13648). | +| [parallel](https://github.com/krakjoe/parallel) | `parallel` fait geler et planter FrankenPHP. [Rapport de bogue](https://github.com/krakjoe/parallel/issues/308) | ## get_browser diff --git a/docs/known-issues.md b/docs/known-issues.md index 4e5c3aaf0..8dacdd676 100644 --- a/docs/known-issues.md +++ b/docs/known-issues.md @@ -46,6 +46,7 @@ The following extensions have known bugs and unexpected behaviors when used with | Name | Problem | |---------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ext-openssl](https://www.php.net/manual/en/book.openssl.php) | When using a static build of FrankenPHP (built with the musl libc), the OpenSSL extension may crash under heavy loads. A workaround is to use a dynamically linked build (like the one used in Docker images). This bug is [being tracked by PHP](https://github.com/php/php-src/issues/13648). | +| [parallel](https://github.com/krakjoe/parallel) | `parallel` makes FrankenPHP freeze and crash. [Bug report](https://github.com/krakjoe/parallel/issues/308) | ## get_browser