Skip to content

[CI] Set zend.assertions to 1 ini PHP Setup to break on asserts #250

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

cvergne
Copy link
Contributor

@cvergne cvergne commented Jun 6, 2025

Hi,

As mentioned in #249, currently the CI tests doesn't break on PHP assert because zend.assertions is not set by default to 1 on the config currently used by setup-php action.

Cf. shivammathur/setup-php#582

Tests on this PR should break so because of assert on security config node, fixed by #249.

Note

I've only set the zend.assertions config here, but it might be better to use ini-file: development instead which use a PHP ini config file for development. But maybe it will break more with it so we should try it later.

@andrew-demb
Copy link
Collaborator

Please rebase on master to check whether we will have green CI.

I've only set the zend.assertions config here, but it might be better to use ini-file: development instead which use a PHP ini config file for development. But maybe it will break more with it so we should try it later.

👍

@cvergne cvergne force-pushed the ci/set-php-zend-assertion branch from ee18aa5 to de49176 Compare June 6, 2025 11:46
@cvergne
Copy link
Contributor Author

cvergne commented Jun 6, 2025

Rebase done, and green CI :)

@andrew-demb andrew-demb merged commit 6af6ed5 into thecodingmachine:master Jun 6, 2025
3 checks passed
@andrew-demb
Copy link
Collaborator

Thank you @cvergne

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants