mysqli_stmt_bind_result($stmt, $c1, $c2);
mysqli_stmt_fetch($stmt);
mysqli_stmt_close($stmt);
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) && mysqli_get_server_version($link) < 50000) {
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1) && mysqli_get_server_version($link) < 50000) {
/* variables are binary */
settype($c1, "unicode");
settype($c2, "unicode");
if (!function_exists('mysqli_set_charset')) {
die('skip mysqli_set_charset() not available');
}
-if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
}
?>
if (gettype($id) !== 'string') {
printf("[002] Expecting string on 32bit got %s/%s\n", gettype($id), var_export($id, true));
}
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
- (version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
!is_unicode($id)) {
printf("[003] Expecting unicode string\n");
}
if (!function_exists('mysqli_set_charset')) {
die('skip mysqli_set_charset() not available');
}
-if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) {
+if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
die("skip Functionality not available in unicode mode");
}
?>
var_dump($defaults);
}
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) {
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
// charsets cannot take any other value but utf8 in unicode mode
$defaults['charset_client'] = 'utf8';
$defaults['charset_connection'] = 'utf8';
if (!function_exists('mysqli_set_charset')) {
die('skip mysqli_set_charset() not available');
}
-if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
- die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
-}
?>
--FILE--
<?php
$host, $user, $db, $port, $socket);
}
- if (!(version_compare(PHP_VERSION, '5.9.9', '>') == 1)) {
+ if (!(version_compare(PHP_VERSION, '6.0', '==') == 1)) {
mysqli_query($link, "set names utf8");
}
mysqli_get_client_stats_assert_eq('result_set_queries', $new_info, $info, $test_counter);
/* we need to skip this test in unicode - we send set names utf8 during mysql_connect */
- if (!(version_compare(PHP_VERSION, '5.9.9', '>') == 1))
+ if (!(version_compare(PHP_VERSION, '6.0', '==') == 1))
mysqli_get_client_stats_assert_eq('non_result_set_queries', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('buffered_sets', $new_info, $info, $test_counter);
mysqli_get_client_stats_assert_eq('unbuffered_sets', $new_info, $info, $test_counter);
$warning = new mysqli_warning($mysqli);
$i = 1;
while ($warning->next() && ('' != ($tmp = $warning->message))) {
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
- (version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
!is_unicode($tmp))
printf("[033a] Warning should have been a unicode string, got %s/%s", gettype($tmp), $tmp);
$i++;
if (!is_string($tmp = mysqli_info($link)) || ('' == $tmp))
printf("[006] Expecting string/any_non_empty, got %s/%s\n", gettype($tmp), $tmp);
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1) &&
- (version_compare(PHP_VERSION, '6.9.9', '<=') == 1) &&
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1) &&
!is_unicode($tmp))
printf("[007] Expecting unicode, because unicode mode it on. Got binary string\n");
/*
Trying to test what Ramil suggests in http://bugs.mysql.com/bug.php?id=29576
However, this won't work, because we're lacking MYSQLI_SET_CHARSET_NAME.
- if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1)) {
+ if ((version_compare(PHP_VERSION, '6.0', '==') == 1)) {
if (mysqli_get_server_version() > 50002) {
@mysqli_query($link, "DROP USER IF EXISTS 'тест'@'%'");
if (TRUE !== mysqli_query($link, "CREATE USER 'тест'@'%'")) {
mysqli_real_escape_string() - gbk
--SKIPIF--
<?php
-if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
}
mysqli_real_escape_string() - sjis
--SKIPIF--
<?php
-if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
}
if (!$IS_MYSQLND)
die("skip Test for mysqlnd only");
-if ((version_compare(PHP_VERSION, '5.9.9', '>') == 1))
+if ((version_compare(PHP_VERSION, '6.0', '==') == 1))
die("skip (TODO) PHP 6.0 has a difference debug_zval_dump output format");
?>
<?php require_once('skipifemb.inc'); ?>
require_once('skipifemb.inc');
require_once('skipifconnectfailure.inc');
-if (version_compare(PHP_VERSION, '5.9.9', '>') == 1) {
+if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
die('skip set character set not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
}
<?php
require_once("connect.inc");
- $hint_str_or_unicode = (version_compare(PHP_VERSION, '5.9.9', '>') == 1) ? "unicode":"string";
+ $hint_str_or_unicode = (version_compare(PHP_VERSION, '6.0', '==') == 1) ? "unicode":"string";
$tmp = NULL;
$link = NULL;
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
- $hint_str_or_unicode = (version_compare(PHP_VERSION, '5.9.9', '>') == 1) ? 'unicode' : 'string';
+ $hint_str_or_unicode = (version_compare(PHP_VERSION, '6.0', '==') == 1) ? 'unicode' : 'string';
function func_mysqli_stmt_get_result($link, $engine, $bind_type, $sql_type, $bind_value, $offset, $type_hint = null) {
<?php
-if (version_compare(PHP_VERSION, '6.0', '!=') == 1) {
+if (version_compare(PHP_VERSION, '6.0', '==') == 1) {
die('skip Not functional with PHP 6 (fomerly PHP 6 && unicode.semantics=On)');
}
?>