基本的に、ページに他の場所からのフィードを含めたいユーザーに提供するこのモジュールがあります。私は汗をかきません。問題は、Zend Feed が致命的なエラーと同じようにクラッシュしてページ全体が焼き尽くされるため、ユーザーがフィード リンクを手で誤って処理するたびに、手動でモジュールを存在から削除する必要があることです。通常、次のようなコード ブロックが期待されます。
try { // Test piece straight off the Zend tutorial
$slashdotRss = Zend_Feed::import('http://rss.slashdot.org/Slashdot/slashdot');
} catch (Zend_Feed_Exception $e) {
// feed import failed
echo "Exception caught importing feed: {$e->getMessage()}\n";
exit;
}
.. 「httn://rss.grrllarrrlll.aarrg/Slashdot/slashdot」と入力して、「404」または「なんてこった」の行に沿って何かを言うと、動作します。いいえ、死にます。クラッシュして死ぬ。クラッシュして燃えて死んで、幸せなトライキャッチの方法論を完全に無視しています。
では基本的に、on feedfetch を記述する必要がありますか、それとも Zend のスリップに対する簡単な救済策はありますか?
追加されたログ:
exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://www.barglllrragglll:80. Error #10946: ' in /library/Zend/Http/Client/Adapter/Socket.php:148
#0 /library/Zend/Http/Client.php(827): Zend_Http_Client_Adapter_Socket->connect('www.barglllrragglll...', 80, false)
#1 /library/Zend/Feed.php(284): Zend_Http_Client->request()
...... Trace etc ....