If you ever want to run PHPCLI with a custom php.ini below are some steps to give you more information on how to set it up and learn whats currently in place for Apache (Webserver):

# learn what php-cli is doing
cat /usr/local/zendsvr/bin/php-cli
# learn what configuration values are set
cat /etc/zce.rc
# learn what extensions are enabled in php.ini
cat /usr/local/zendsvr/etc/php.ini | grep extension
# see extensions included
/usr/local/zendsvr/bin/php-cli -r "phpinfo();" | grep conf.d
# things you should probably create for setting up php-cli specific configuration
cp /usr/local/zendsvr/etc/php.ini /usr/local/zendsvr/etc/cli/php.ini
cp /usr/local/zendsvr/etc/conf.d /usr/local/zendsvr/etc/cli/conf.d
cp /usr/local/zendsvr/etc/conf.d/*.ini /usr/local/zendsvr/etc/cli/conf.d/*.ini
#and edit /usr/local/zendsvr/bin/php-cli
$ZCE_PREFIX/bin/php "$@"
$ZCE_PREFIX/bin/php -c "/usr/local/zendsvr/etc/cli/php.ini" "$@"
#edit /usr/local/zendsvr/etc/cli/php.ini and remove
#then run your phpcli against your script and tail -f the error log to see what extensions you need and modify the /usr/local/zendsvr/etc/cli/conf.d file and include only those extensions
tail – f /usr/local/zendsvr/var/log/php.log
#if you don't tknow your php error log you can find it by:
cat /usr/local/zendsvr/etc/php.ini | grep "error_log ="