dmj/php_repl — pull request #1 by niclashoyer (2012-03-05 19:26:53+00:00)
Title: Add check for PHP_INCLUDE_PATH environment variable

The binary wrapper /scripts/php-repl will now check if the environment variable `PHP_INCLUDE_PATH` is set and add it to the `include_path` php.ini directive.

I use this to install my PEAR environment into my home dir:

$ mkdir -p $HOME/.local/lib/php $HOME/.local/bin
$ pear config-create $HOME $HOME/.pearrc
$ pear config-set bin_dir $HOME/.local/bin
config-set succeeded
$ pear config-set php_dir $HOME/.local/lib/php
config-set succeeded
$ echo "export PHP_INCLUDE_PATH=$HOME/.local/lib/php" >> .bashrc