<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-holy</author_name>
  <author_url>https://blog.hatena.ne.jp/k-holy/</author_url>
  <blog_title>k-holyのPHPとか諸々メモ</blog_title>
  <blog_url>https://k-holy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>auto_prepend_fileで既存コードに手を加えずエラー発生時の処理を変更する方法の続きです。参考リンク紹介するだけというのもなんなので、シャットダウン関数を併用したエラー処理について試してみました。 試行錯誤する中で、どうにも無名関数だけでやるのが厳しく感じたので、今回はクラスに分離しました。 以下、環境は Linux版 PHP5.3.14 です。前回と同様、.htaccess で auto_prepend_file を設定します。 読み込ませる方のスクリプトは、クラスを使ったのでだいぶ記述が簡略化されています。 まずはじめに出力バッファリングを開始し、エラーハンドラ、例外ハンドラと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-holy.hatenablog.com%2Fentry%2F2012%2F09%2F26%2F210324&quot; title=&quot;出力バッファリングとシャットダウン関数でエラー処理してみた - k-holyのPHPとか諸々メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-26 21:03:24</published>
  <title>出力バッファリングとシャットダウン関数でエラー処理してみた</title>
  <type>rich</type>
  <url>https://k-holy.hatenablog.com/entry/2012/09/26/210324</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
