-
-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
Tester runs PHP with -n flag by default, ignoring php.ini to ensure a clean, reproducible environment. Users who need php.ini must explicitly use -C or -c path/to/php.ini.
The idea was to provide a consistent, isolated environment where all configuration is explicitly provided by the test suite, avoiding "works on my machine" issues caused by different php.ini settings.
In practice, this approach doesn't work well on Linux because:
- Extensions like intl, fileinfo, etc. are installed system-wide and require extension_dir to be set correctly
- There's no practical way to bundle these extensions with the test suite
- As a result, almost everyone ends up using -C anyway
- Tests fail with confusing errors about "missing extensions" when -C is forgotten
Proposal:
Remove the default -n behavior - let Tester use system php.ini by default (equivalent to current -C).
Users who want isolated environment can still use explicit -c flag.
janpechaJanTvrdik
Metadata
Metadata
Assignees
Labels
No labels