php
php copied to clipboard
Fix conditional "strip" based on "ZEND_DEBUG_BUILD"
strip --strip-all is present on two places, in https://github.com/docker-library/php/pull/1278, it was made conditional for modules, this PR makes it conditional also for the main binaries
I'm a bit less convinced on this one -- for this new if to ever not execute, you've already got to be editing the Dockerfile, right?
Yes, you are correct, I am updating the Dockerfile with sed to add --enable-debug. However, I think this condition is non-intrusive and 1:1 used in https://github.com/docker-library/php/pull/1278.
How about using this together with my idea? https://github.com/docker-library/php/pull/1287
Can this PR be merged? If the template is modified or the DockerFile directly, with this PR, the debug build is detected correctly, and as this align the condition introduced in #1278, I belive such unified check is better than any other condition.