I have a LinkedIn API class that I've written for PHP that makes use of a third-party stand-alone OAuth class, not the possibly installed PECL PHP OAuth extension. I've designed it this way to allow the many users don't have the ability/access to install the PECL extension to make the needed OAuth calls.
So, for PHP installs with no PECL extension installed, all works perfectly. The issue is on server's that DO have the PECL extension installed... instantiating the third-party OAuth class gives re-definition errors, as both the PECL extension and the third-party class have called their classes 'OAuth'.
It would be great to have my class flexible enough to support both situations, but of course the two conflicting classes have different method names, etc.
I know the simple answer is to advise people that my library is ONLY for those situations on the server where you don't have the PECL extension installed, but I am wondering if there are any other suggestions from the SO crowd.
Thanks!