com php-src: Skip test on incompatible servers: ext/mysqli/tests/bug76386.phpt

From: Date: Mon, 09 Jul 2018 14:39:58 +0000
Subject: com php-src: Skip test on incompatible servers: ext/mysqli/tests/bug76386.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102498@lists.php.net to get a copy of this message
Commit: cce87471b1b5abecf2351dd40962c62374109008 Author: Anatol Belski <ab@php.net> Mon, 9 Jul 2018 16:39:07 +0200 Parents: dbb9867b3ea9c0546e9eb8c88e9650b306e6b770 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cce87471b1b5abecf2351dd40962c62374109008 Log: Skip test on incompatible servers Changed paths: M ext/mysqli/tests/bug76386.phpt Diff: diff --git a/ext/mysqli/tests/bug76386.phpt b/ext/mysqli/tests/bug76386.phpt index 4b51842..4182c65 100644 --- a/ext/mysqli/tests/bug76386.phpt +++ b/ext/mysqli/tests/bug76386.phpt @@ -5,6 +5,16 @@ Prepared Statement formatter truncates fractional seconds from date/time column require_once('skipif.inc'); require_once('skipifemb.inc'); require_once('skipifconnectfailure.inc'); +require_once("connect.inc"); + +if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) + die("skip Cannot connect to check required version"); + +/* Fractional seconds are supported with servers >= 5.6.4. */ +if (mysqli_get_server_version($link) < 50604) { + die(sprintf("skip Server doesn't support fractional seconds in timestamp (%s)", mysqli_get_server_version($link))); +} +mysqli_close($link); ?> --FILE-- <?php

« previous php.cvs (#102498) next »