これは何? PHPでDebugの方法を確認したくて、わざとSegmentation Faultを出して、Debugしてみるやり方をメモしたもの。 事前準備 PHP + Apache を導入しておく。 sudo yum install -y php-devel PHPのソースの導入 事前準備で導入したバージョンと同じPHPのソースを入手。 入手先の詳細は、http://php.net/git.php で参照。 $ git clone https://github.com/php/php-src.git $ git checkout PHP-5.3 # これは任意のバージョン