The generated autoload.php from the ebuild's prepare stage hardcodes library dependency paths to /usr/share/php/..., which will not be valid in a Prefix installation. While the package will install fine, it will not be loadable due to invalid dependency paths. The generated file should be modified to include EPREFIX in the absolute path to its dependency.
Created attachment 878407 [details, diff] Patch to include $EPREFIX in autoload.php absolute path
@PHP: what do you think, OK to apply?