Woohoo! After a really fun debugging session with Rob, we got PHP4 working as a DSO under OpenBSD. It's been bugging me for ages, and it's great to see it finally work.
Patch has been committed to PHP CVS, so the next release should see a PHP4 package for the ports tree.