Files
pl_mail/.gitignore
T
Paul LütznerandClaude Opus 5 0fdcab067e Put the app's PHP ini where FPM will actually read it
The previous commit copied 10-app.ini into the scan dir reported by
`php -r PHP_CONFIG_FILE_SCAN_DIR`, which is the CLI's. The step passed
and changed nothing: `symfony serve` switches to PHP-FPM as soon as it
finds public/index.php, and the CI log confirms it —

    [Web Server] PHP listening path="/usr/sbin/php-fpm8.4"

so the requests under test were served by a SAPI reading
/etc/php/8.4/fpm/conf.d, not the cli one. The 3MB upload test went on
failing at stock 2M.

Symfony CLI's documented per-project override is a php.ini at the
project root, which it hands to FPM. Measured in an ondrej-PPA
container, serving through symfony serve exactly as CI does:

    baseline          sapi=fpm-fcgi upload=2M
    cli scan dir      sapi=fpm-fcgi upload=2M    <- the previous commit
    project php.ini   sapi=fpm-fcgi upload=25M
    fpm scan dir      sapi=fpm-fcgi upload=25M

Both copies are kept, because both SAPIs are in play: FPM serves the
browser suite, and the CLI runs PHPStan and PHPUnit. The CLI needs its
own, since that SAPI deliberately ignores a php.ini in the working
directory — verified rather than assumed.

php.ini is gitignored: CI writes it, and a committed one would quietly
override these limits for everyone from a file nothing points at.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 20:32:07 +02:00

56 lines
1.4 KiB
Plaintext

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###
###> phpunit/phpunit ###
/phpunit.xml
/.phpunit.cache/
###< phpunit/phpunit ###
###> symfony/asset-mapper ###
/public/assets/
/assets/vendor/
###< symfony/asset-mapper ###
# IDE
.idea/
.vscode/
# Docker override. Local by design: compose auto-loads it, so a committed one
# would silently switch every user off the published image and onto a
# build-from-source dev stack. Copy compose.override.yaml.dist to create it.
compose.override.yaml
docker-compose.override.yml
# Mutex directory for the one-time `composer install` in the dev entrypoint.
/.composer-install.lock/
# Symfony CLI reads a php.ini here and passes it to the PHP-FPM behind
# `symfony serve`. CI writes one (a copy of frankenphp/conf.d/10-app.ini) so the
# local server gets the same upload limits as the Docker image. Committing one
# would override those limits for everyone, from a file nothing points at.
/php.ini
truenas.compose.yaml.local
###> lexik/jwt-authentication-bundle ###
/config/jwt/*.pem
###< lexik/jwt-authentication-bundle ###
###> playwright ###
/node_modules/
/test-results/
/playwright-report/
/blob-report/
# Saved storage state from auth.setup.ts — a real authenticated session.
/playwright/.auth/
###< playwright ###
todo.md