x-ite's diary

覚え書きです。想定読者は俺

previous declaration of "OAuthException"

php5.3から入ったOAuthモジュールとPHPでの標準OAuthライブラリのOAuth.phpの定義が重なっている可能性がある。

OAuth.phpが必要ならOAuthExceptionの定義をclass_existでクラスの存在を確認してから定義するように変更する。

<?php
if  (!class_exists('OAuthException')) {
  class OAuthException extends Exception {
    // pass
  }
}

あまり、ライブラリを自分の中だけで改変したくないが。