docker-library / php

Docker Official Image packaging for PHP
https://php.net
MIT License
3.77k stars 2k forks source link

Possibility to use additional flags in configure #1480

Open winiarekk opened 6 months ago

winiarekk commented 6 months ago

After following PR https://github.com/docker-library/php/pull/1208 that removes ENV PHP_EXTRA_CONFIGURE_ARGS, it seems that there is no possibility to use additional flags in configure script. This is quite problematic in some cases (for example, if I'd like to include debugging symbols for gdb with --enable-debug flag).

Is there any way to easily use additional PHP core configure option, other than creating the own image from the scratch?

tianon commented 6 months ago

Unfortunately, I think https://github.com/docker-library/php/pull/1364 is as close as we're going to come on this, which on the plus side does cover your --enable-debug use case, but regardless this isn't possible without "building" an image because configure flags can't be changed at runtime regardless. :sweat_smile: