Description
By default, Sun (well Oracle) Solaris has it's own find command which does not support gnu find options such as -noleaf or -regexptype. So S2.2 does not work out of the box.
A simple patch to Finder::Shell with a check for PHP_OS=sunos will fix the problem. I can prepare one if need be.
However, I think the problem is more generic. It's same issue as when you attempt to do browser detection. You still never know if the system will support a command until you test for it. In the case of solaris, you could install a gnu find command in which case all would be well.
I think an actual version test for find (or gfind) would be better than os sniffing.
I see that there was also a proposal to make a finder factory service. That would allow the option of specifying which adapter to use. Makes things real simple.