in php5.4, $array?:$xxx will always return $xxx. so that the params of connection will always set to default