Skip to content

Disable core dumps in the development container - #65

Merged
niden merged 1 commit into
3.0.xfrom
T64-no-core-dumps
Dec 4, 2026
Merged

niden merged 1 commit into
3.0.xfrom
T64-no-core-dumps

Conversation

@niden

@niden niden commented Dec 4, 2026

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG

Small description of change:

Stacked on #63. Merge #59, #61 and #63 first.

  • docker-compose.yml: ulimits: core: 0 for the app service. The Infection mutants that make stripSlashes() recurse with no end still crash PHP, and Infection still counts them as killed. But the crashes do not write core.<pid> files into the repository root.
  • This changes only the development environment. There is no test and no CHANGELOG line.
  • After you pull this change, run docker compose up -d to recreate the container. A rebuild is not necessary.

Results in the recreated PHP 8.3 container: ulimit -c is 0. composer infection has MSI 100% (122 mutants, 3 crashes) and writes no core files. The tests, PHPCS, PHPStan and PHP CS Fixer pass.

Thanks

@niden niden added the enhancement New feature or request label Dec 4, 2026
@niden niden self-assigned this Dec 4, 2026
Base automatically changed from T62-get-string to 3.0.x December 4, 2026 19:51
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Code Metrics Report

master (4b6c04c) T64-no-core-dumps (281b3a8) +/-
Coverage 100.0% 100.0% 0.0%
Test Execution Time 1s 1s 0s
Details
  |                     | master (4b6c04c) | T64-no-core-dumps (281b3a8) | +/-  |
  |---------------------|------------------|-----------------------------|------|
  | Coverage            |           100.0% |                      100.0% | 0.0% |
  |   Files             |                1 |                           1 |    0 |
  |   Lines             |               71 |                          75 |   +4 |
+ |   Covered           |               71 |                          75 |   +4 |
  | Test Execution Time |               1s |                          1s |   0s |

Reported by octocov

@niden
niden merged commit 92974a1 into 3.0.x Dec 4, 2026
14 checks passed
@niden
niden deleted the T64-no-core-dumps branch December 4, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant