When trying to use pecl in a prebuild or postbuild script with Azure webapps I get the following error:
/tmp/oryx/platforms/php/7.4.9/bin/pecl: 28: exec: /opt