Reference passing for objects is changed in php 5, triggering a lot of E_STRICT errors. Please review appended patch which should make dev-php/PEAR-Mail_Mime php5 compliant. Note that there is quite some time since I wrote ebuilds regularily, so there might be an better approach than adding a local use-flag.
Created attachment 81673 [details, diff] Adds php 5 compliance patch when USE=php5 is active
Created attachment 81674 [details, diff] PEAR-Mail_Mime/php5 reference passing
We definitely won't be adding php4/php5 use flags. ;)
If this patch fixes the pass-by-reference errors in PHP5 I don't see why we wouldn't want to apply this also on PHP4 since there are probably the same errors there, so I don't really see a need for an USE flag. ;) I'll see to add the patch to our PEAR-Mail packages during the day and hopefully upstream will fix this too in the next releases as it looks like a relatively easy fix that shouldn't break anything. Best regards, CHTEKK.
The patch was added to dev-php/PEAR-Mail_Mime-1.3.1-r2, which is currently marked unstable. Please emerge --sync in a few hours and test the new release, the patch applies fine. Best regards, CHTEKK.
Still unfixed in 1.5.2 (!), please report this upstream, not really keen on porting this patch over and over again. http://pear.php.net/bugs/search.php?cmd=display&package_name[0]=Mail_Mime