php4の環境整えてみる

xdebug

http://xdebug.org/index.php

$ tar xzvf xdebug-1.3.2.tgz
$ cd xdebug-1.3.2/
$ /usr/local/php/bin/phpize
$ ./configure --enable-xdebug --with-php-config=/path/to/php-config
$ make
$ sudo cp ./module/xdebug.so /path/to/extension/.
  • php.iniに追加
zend_extension="/path/to/xdebug.so"


pear

$ sudo pear upgrade-all
$ pear config-set preferred_state 'beta'
$ sudo pear install -a DB_DataObject HTML_QuickForm Mail_Mime Pager Log
$ sudo pear install -a Auth PhpDocumentor XML_FastCreate 

simpletest

http://www.lastcraft.com/simple_test.php

  • pearでインストールできる1.0.0はリファレンスエラーを起こす。
  • 1-1.0.1alpha2なら大丈夫。
  • pearified放置気味なので、サイトから1-1.0.1alpha3を落とす。
  • include_pathに追加

smarty

http://smarty.php.net/download.php

  • pearで追加してみる。
$ sudo pear channel-discover pearified.com
$ sudo pear install -a pearified/Smarty
  • pearified放置状態なのでサイトから2.6.13を落とす。
  • include_pathに追加