Blame tests/p_php_7.3/10_php_api.sh

ecf875
#!/bin/bash
ecf875
f49232
if (t_GetPkgRel basesystem | grep -q el9)
f49232
then
f49232
  t_Log "This is a C9 system. Modular php not present. Skipping."
f49232
  t_CheckExitStatus 0
f49232
  exit $PASS
f49232
fi
f49232
ecf875
t_Log "Running $0 - verify PHP API in phpinfo()"
ecf875
t_SkipReleaseLessThan 8 'no modularity'
ecf875
ecf875
t_EnableModuleStream php:7.3
ecf875
t_InstallPackage php-cli
ecf875
ecf875
t_Log "Executing phpinfo()"
ecf875
output=$(php -d 'date.timezone=UTC' -r 'phpinfo();')
ecf875
t_CheckExitStatus $?
ecf875
ecf875
API='20180731'
ecf875
ecf875
t_Log "Verifying PHP API matches $API"
ecf875
grep -q "PHP API => $API" <<< $output
ecf875
t_CheckExitStatus $?
ecf875
ecf875
t_RemovePackage php-cli
ecf875
t_ResetModule php httpd nginx