Skip to content

Conversation

@tianon
Copy link
Member

@tianon tianon commented Mar 24, 2022

Closes #1268

strip --strip-all "$@" || :
' -- '{}' +

if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then
Copy link
Member Author

Choose a reason for hiding this comment

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

For the avoidance of doubt:

$ docker run --pull=always --rm php bash -c "if ! php -n -d 'display_errors=stderr' -r 'exit(ZEND_DEBUG_BUILD ? 0 : 1);' > /dev/null; then echo yay tianon got the logic correct; fi"
latest: Pulling from library/php
Digest: sha256:732e90365bc098199c252a05a320a63ceb077474728ec9eb3dc6cda2490463bc
Status: Image is up to date for php:latest
yay tianon got the logic correct

…UILD"

Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
@tianon tianon force-pushed the conditional-strip branch from 60a3cd6 to af4cd1a Compare March 24, 2022 21:53
@yosifkit yosifkit merged commit 9ebf005 into docker-library:master Mar 24, 2022
@yosifkit yosifkit deleted the conditional-strip branch March 24, 2022 22:14
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Mar 25, 2022
Changes:

- docker-library/php@9ebf005: Merge pull request docker-library/php#1278 from infosiftr/conditional-strip
- docker-library/php@af4cd1a: Make "strip" in "docker-php-ext-install" conditional on "ZEND_DEBUG_BUILD"
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.

strip --strip-all must be conditional when php was (re)compiled with --enable-debug

3 participants