タグ

2009年4月24日のブックマーク (2件)

  • PHPでのデバッグ方法

    ヤフー株式会社は、2023年10月1日にLINEヤフー株式会社になりました。LINEヤフー株式会社の新しいブログはこちらです。LINEヤフー Tech Blog おひさしぶりです。オークション担当の山崎 賢です。 前回はPHP Serialize についてでしたが、 今回はPHPでのデバッグに関してお話します。 基PHPはインタプリタ(厳密にはPHPは内部で一度コンパイルしていますのでインタプリタとは言い切れませんが) のデバッグではログ埋め込みが手軽です。 しかし、まれにSIGSEGVやSIGBUSなどでPHPスクリプトが落ちることがあり、途方にくれます。 地道にログを埋め込んでいき、箇所を特定するのも手法の1つですが、今回はgdbを用いたデバッグ方法を記載したいと思います。 ■STEP1 まずは、プログラムが落ちることを目的として以下のようなPHP Moduleを作成します。 ・ ・

    PHPでのデバッグ方法
    shoma
    shoma 2009/04/24
  • The International Obfuscated C Code Contest

    The source winners of the 27th IOCCC have been released. Congratulations! The IOCCC is currently CLOSED. Right now, you CANNOT register as a contestant with the IOCCC, nor can you submit an entry because the IOCCC is yet NOT open. Please see the watch the IOCCC news below for information on the next IOCCC. You may also check on the status.json for the current status of the IOCCC. Goals of the Cont

    shoma
    shoma 2009/04/24