After lots of searching round I finally worked out where the hell I was going wrong. Just remount /var/tmp with exec temporarily.
$ sudo mount -o remount,exec /var/tmp
$ sudo pecl install <pecl_extension>
$ sudo mount -o remount,noexec /var/tmp
No tags