#!/bin/sh MATCH="^[[:space:]]*($|;)" echo "==== Additional PHP 5.6 information ====" >&3 echo "" >&3 echo "++++ PHP 5.6 SAPI (php5.6query -S): ++++" >&3 /usr/sbin/php5.6query -S >&3 echo "" >&3 echo "++++ PHP 5.6 Extensions (php5.6query -M -v): ++++" >&3 /usr/sbin/php5.6query -M -v >&3 echo "" >&3 echo "++++ Configuration files: ++++" >&3 "**** /etc/php/5.6/cli/php.ini ****" >&3 grep -Ev "$MATCH" /etc/php/5.6/cli/php.ini >&3 echo "" >&3 find /etc/php/5.6/cli/conf.d/ -name '*.ini' | \ while read CONF; do echo "**** $CONF ****" >&3 grep -Ev "$MATCH" "$CONF" >&3 echo "" >&3 done