kousik / simple-linkedinphp

Automatically exported from code.google.com/p/simple-linkedinphp
0 stars 0 forks source link

Incompatible with other libraries using OAuth #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build a page that uses the twitteroauth library, for example. 
https://github.com/abraham/twitteroauth
2. Use this (simple-linkedinphp) library as well.

What is the expected output? What do you see instead?
I expect a page with no fatal errors. I see "Cannot redeclare class..." instead.

What version of the product are you using? On what operating system?
Using version 3.2.0.

Please provide any additional information below.

Suggested fix: Change line 75 from:
require_once('OAuth.php');

To:
if (class_exists('OAuthException', false) === false) { 
require_once('OAuth.php'); }

Original issue reported on code.google.com by charles....@gmail.com on 14 Jun 2013 at 3:18