I am running 12.7.1, when I tried to add more than one extension, it still prompts an error "This directive already exist"!!!
Please fix this, the end-user needs 3 extensions to be loaded.
At the moment, I am overriding it by putting in the container's overlay/usr/local/lib/php.ini, but I don't think that will survvive any changes.