Description
Recently the PHP foundation has been working on a new official tool for installing extensions, which has now been released as PHP PIE. See also https://thephp.foundation/blog/2024/11/19/pie-pre-release/ and https://github.com/php/pie. Given that this aims to replace PECL (and indirectly PEAR), which currently are already deprecated and are causing more and more issues (see e.g. #1552 and #1553), the official image could probably follow the same path at some point.
Given that the tool is currently still in pre-release state and still requires more testing and moreover requires the PHP extension ecosystem to make some active changes to allow installation, the time to migrate is most likely not now just yet. However, I am hoping to slowly start discussing the possibilities and required steps with this issue.