原因:PHP版本不同,对参数存在一定限制
解决办法:判断一下PHP版本,给不同的参数
// Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true);
//此方法对PHP版本有一定要求,不同版本的PHP,参数要求不一样 报错:phpCAS error: phpCAS::client(): CAS_TypeMismatchException: type mismatched for parameter $changeSessionID (should be 'boolean '), string given.
if (PHP_MAJOR_VERSION>7){
phpCAS::client(CAS_VERSION_3_0, $_sso_config['server_ip'], $_sso_config['server_port'], $_sso_config['server_path'],"http://".$_SERVER['HTTP_HOST']);
}else{
phpCAS::client(CAS_VERSION_3_0, $_sso_config['server_ip'], $_sso_config['server_port'], $_sso_config['server_path']);
}