Some changes in recent 10-STABLE have broken the FilesystemIterator class in PHP http://lists.freebsd.org/pipermail/freebsd-ports/2014-September/095168.html
I have identified the change that breaks php, it is revision 270002
Add PHP Maintainer to CC
This bug is being solved in HEAD and 10-STABLE.
Fix merged into 10-stable.