]> granicus.if.org Git - php/commitdiff
Remove broken client version checking
authorMatteo Beccati <mbeccati@php.net>
Wed, 19 Jun 2013 06:34:48 +0000 (08:34 +0200)
committerMatteo Beccati <mbeccati@php.net>
Wed, 19 Jun 2013 09:48:03 +0000 (11:48 +0200)
ext/pgsql/tests/skipif.inc

index 7c5153e6f082243d8b995aa1eb96c3fd83e48c62..59bd5a3ea284e595662dc627d8498d734e96a896 100644 (file)
@@ -17,15 +17,11 @@ if (!is_resource($conn)) {
     die("skip could not connect\n");
 }
 
-function skip_server_version($version, $op = '<') { _skip_version('server', $version, $op); }
-function skip_client_version($version, $op = '<') { _skip_version('client', $version, $op); }
-
-
-function _skip_version($type, $version, $op)
+function skip_server_version($version, $op = '<')
 {
-       $pg = pg_parameter_status($type.'_version');
+       $pg = pg_parameter_status('server_version');
        if (version_compare($pg, $version, $op)) {
-               die("skip {$type} version {$pg} is {$op} {$version}\n");
+               die("skip Server version {$pg} is {$op} {$version}\n");
        }
 }