Bug #81308 [NEW]: fpm does not starts pool when ENV is more 8000 bytes

From: Date: Thu, 29 Jul 2021 15:50:33 +0000
Subject: Bug #81308 [NEW]: fpm does not starts pool when ENV is more 8000 bytes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235459@lists.php.net to get a copy of this message
From: igor0386 at gmail dot com Operating system: debian,apline PHP version: 8.0.8 Package: FPM related Bug Type: Bug Bug description:fpm does not starts pool when ENV is more 8000 bytes Description: ------------ I run the docker container with 300 env variable, but php-fpm is always down. When I research I found that fpm return 104 code if env weight more 8000 bytes. I try on the dockerized 8.1.0beta1, 8, 7.4, 7.2 and 7.3 from deb on the debian os. alpine work when env | wc -c less 7995 debian container work when env | wc -c less 8119 Simple reproduce by docker-compose from Test script: section and check by cgi-fcgi from Expected result: section. Test script: --------------- docker-compose.yaml version: "3" services: fpm: image: php:8.1.0beta1-fpm-alpine3.14 # image: php:8-fpm # image: php:7.4-fpm # image: php:7.2-fpm env_file: .env volumes: - ./www.conf:/usr/local/etc/php-fpm.d/www.conf www.conf [global] log_level = debug error_log = /tmp/php-fpm.log [www] user = www-data group = www-data listen = 9000 pm = dynamic pm.max_spare_servers = 1 pm.min_spare_servers = 1 pm.start_servers = 1 pm.max_children = 1 pm.max_requests = 1 pm.status_path = /fpm-status .env with any contents, many short ENV=value or one BIG_ENV=8000_simbols Expected result: ---------------- root@4624397c329e:/www# env | wc -c 8118 root@4624397c329e:/www# SCRIPT_NAME=/fpm-status SCRIPT_FILENAME=/ REQUEST_METHOD=GET /usr/bin/cgi-fcgi -bind -connect localhost:9000 && echo $? 0 Actual result: -------------- root@835b25c9bd0a:/www# env | wc -c 8119 root@835b25c9bd0a:/www# SCRIPT_NAME=/fpm-status SCRIPT_FILENAME=/ REQUEST_METHOD=GET /usr/bin/cgi-fcgi -bind -connect localhost:9000; echo $? 104 -- Edit bug report at https://bugs.php.net/bug.php?id=81308&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81308&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81308&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81308&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81308&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81308&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81308&r=support Expected behavior: https://bugs.php.net/fix.php?id=81308&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81308&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81308&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81308&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81308&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81308&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81308&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81308&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81308&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81308&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81308&r=mysqlcfg

« previous php.bugs (#235459) next »