xuelang3hui / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

PHP Fatal error: Cannot redeclare class OAuthException in OAuth.php on line 8 #242

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you use this library with OAuth included in PHP you get the following error:

PHP Fatal error:  Cannot redeclare class OAuthException in OAuth.php on line 8

Please wrap it like that:

if (!class_exists('OAuthException')) { 

    class OAuthException extends Exception {
          // pass
    }

}

Original issue reported on code.google.com by i...@soeren-mueller.com on 3 Nov 2013 at 12:40