Skip to content

When installing PHP INI settings from STDIN, configure also the PHPDBG SAPI #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Ocramius
Copy link
Member

Q A
Documentation no
Bugfix yes
BC Break no
New Feature no
RFC no
QA no

Description

PHPDBG, being its own independent SAPI, has its settings in /etc/php/${VERSION}/phpdbg,
rather than in /etc/php/${VERSION}/cli.

This change adjusts our entrypoint.sh to write INI settings also to that location,
preventing silly issues like memory limits being too low (our defaults set memory_limit=-1).

Fixes https://github.com/laminas/laminas-ci-matrix-action/issues/72

…G SAPI

PHPDBG, being its own independent SAPI, has its settings in `/etc/php/${VERSION}/phpdbg`,
rather than in `/etc/php/${VERSION}/cli`.

This change adjusts our `entrypoint.sh` to write INI settings also to that location,
preventing silly issues like memory limits being too low (our defaults set `memory_limit=-1`).

Fixes https://github.com/laminas/laminas-ci-matrix-action/issues/72
Copy link
Member

@boesing boesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Not sure if phpdbg directory exists for php-builder and thus most likely could lead to errors when providing early PHP 8.2 binaries but lets see when we work on that.

@Ocramius Ocramius merged commit 3cd771c into laminas:1.14.x Dec 26, 2021
@Ocramius Ocramius deleted the fix/phpdbg-missing-settings-installation branch December 26, 2021 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running into PHP memory limits when running infection/infection with this CI action
2 participants