Skip to content

Instantly share code, notes, and snippets.

@fetus-hina
Created September 5, 2011 14:26
Show Gist options
  • Save fetus-hina/1195111 to your computer and use it in GitHub Desktop.
Save fetus-hina/1195111 to your computer and use it in GitHub Desktop.
Zend_Service_Twitter を PHP 5.1 で動かすための無理矢理な動作変更継承
<?php
class Xend_Service_Twitter extends Zend_Service_Twitter {
protected function _prepare($path) {
try {
parent::_prepare($path);
} catch(Zend_Uri_Exception $e) {
$this->_localHttpClient->resetParameters()->setUri($this->_uri->__toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment