| #!/bin/sh |
| |
| |
| |
| t_Log "Running $0 - php phpinfo() function test." |
| |
| |
| |
| FILE='/var/tmp/php-test.php' |
| |
| cat > $FILE <<EOF |
| <?php |
| phpinfo(); |
| ?> |
| EOF |
| |
| |
| sed -i 's/\;date\.timezone\ \=/date\.timezone = \"Europe\/Berlin\"/' /etc/php.ini |
| |
| php $FILE | grep -q 'Zend Engine' |
| |
| t_CheckExitStatus $? |
| |
| |
| /bin/rm $FILE |
| sed -i 's/\date\.timezone\ \=\ \"Europe\/Berlin\"/\;date\.timezone\ \=/' /etc/php.ini |