pecl runkit with php-5.2.x

As of writing, the current pecl runkit-0.9 package does not compile with PHP 5.2+ . Below is how I got the latest installed from svn trunk on CentOS-5.4 with php-5.2.9.

  • Install runkit:
          svn co
          cd trunk
          make install
  • Create "/etc/php.d/runkit.ini":

  • Restart apache and validate with phpinfo.

Note: you would need php-pear and php-devel installed already.