You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
616 B
26 lines
616 B
12 months ago
|
#!/bin/sh
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
||
|
|
||
|
t_Log "Running $0 - php test: looking for Zend Engine in phpinfo()."
|
||
|
t_SkipReleaseGreaterThan 7 'use module-aware tests instead'
|
||
|
|
||
|
FILE='/var/tmp/php-test.php'
|
||
|
|
||
|
cat > $FILE <<EOF
|
||
|
<?php
|
||
|
phpinfo();
|
||
|
?>
|
||
|
EOF
|
||
|
|
||
|
# setting timezone for phpinfo
|
||
|
sed -i 's/\;date\.timezone\ \=/date\.timezone = \"Europe\/Berlin\"/' /etc/php.ini
|
||
|
|
||
|
php $FILE | grep -q 'Zend Engine'
|
||
|
|
||
|
t_CheckExitStatus $?
|
||
|
|
||
|
#reversing changes
|
||
|
/bin/rm $FILE
|
||
|
sed -i 's/\date\.timezone\ \=\ \"Europe\/Berlin\"/\;date\.timezone\ \=/' /etc/php.ini
|