Use pg_version only if php>=5.0
This commit is contained in:
parent
d04abab1b0
commit
ad766871a5
@ -38,6 +38,7 @@ class KVStoragePgsql
|
||||
|
||||
public function version(){
|
||||
if (!$this->available) return '-.-.-';
|
||||
if (PHP_VERSION<'5.0') return '-.-.-';
|
||||
$v=pg_version($this->conn);
|
||||
if($v) return $v['server'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user