For non-persistent SAPIs like CLI prevent long searches for php.ini, by placing the file where PHP would look for it first.

PHP CLI
/usr/local/lib/php-cli.ini
PHP CGI
/usr/local/lib/php-cgi-fcgi.ini
or
./php-cgi-fcgi.ini