Good catch! That PLIST contains:
Code:
@sample ${CHROOT_DIR}/tmp/
Perhaps you could discuss adding an @exec-add to the PLISTs with Stuart Henderson, the PHP maintainer. Testing and then attaching a unified diff(1) applied to /usr/ports/lang/php/{7.2,7.3}/pkg/PLIST-main in your Email would permit him to review your recommendation, and if approved, easily commit your patch.
Stuart's Email can be obtained with
$ pkg_info php--
, note the two dash characters.