/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_get_proto_info.phpt | 13 if (!is_null($tmp = @mysqli_get_proto_info())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_proto_info(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_null($tmp = @mysqli_get_proto_info('too many', 'arguments'))) 24 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_get_server_info.phpt | 13 if (!is_null($tmp = @mysqli_get_server_info())) 14 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 16 if (!is_null($tmp = @mysqli_get_server_info(NULL))) 17 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_null($tmp = @mysqli_get_server_info('too', 'many arguments'))) 24 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_character_set.phpt | 17 $tmp = NULL; 25 $tmp = mysqli_fetch_assoc($res); 27 $version = explode('.', $tmp['server_version']); 81 if (!$tmp = mysqli_fetch_assoc($res)) 84 if ($tmp['id'] != $i) 86 $i, $tmp['id'], 89 if ($tmp['label'] != chr(ord("a") + $i)) 91 chr(ord("a") + $i), $tmp['label'],
|
H A D | mysqli_character_set_name.phpt | 14 $tmp = NULL; 18 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 24 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 $tmp = mysqli_fetch_assoc($res); 43 $tmp = mysqli_fetch_assoc($res); 45 if (!$tmp['charset']) 49 if ($tmp['charset'] !== $charset) { 52 $tmp['collation'], $tmp['charset'], gettype($charset), $charset); 66 printf("[013] Expecting false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_character_set_name_oo.phpt | 14 $tmp = NULL; 22 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 $tmp = $res->fetch_assoc(); 28 $version = explode('.', $tmp['server_version']); 37 $tmp = $res->fetch_assoc(); 39 if (!$tmp['charset']) 43 if ($tmp['charset'] !== $charset) { 44 if ($tmp['collation'] === $charset) { 46 $tmp['collation'], $tmp['charset'], gettype($charset), $charset); 61 printf("[013] Expecting false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_debug_control_string.phpt | 28 if (true !== ($tmp = mysqli_debug($control_string))) { 32 gettype($tmp), 33 $tmp); 51 gettype($tmp), 52 $tmp);
|
H A D | mysqli_debug_mysqlnd_control_string.phpt | 29 if (true !== ($tmp = @mysqli_debug($control_string))) { 33 gettype($tmp), 34 $tmp); 55 gettype($tmp), 56 $tmp); 146 $tmp = array_diff($functions_all_funcs, $functions_trace); 147 if (!empty($tmp)) { 149 var_dump($tmp); 199 $tmp = array_merge($test_functions['doubledot'], $test_functions['simple']); 200 if (!empty($tmp)) { [all …]
|
H A D | mysqli_debug_mysqlnd_only.phpt | 30 if (true !== ($tmp = @mysqli_debug($control_string))) { 34 gettype($tmp), 35 $tmp); 56 gettype($tmp), 57 $tmp);
|
H A D | mysqli_disable_reads_from_master.phpt | 17 $tmp = NULL; 20 if (NULL !== ($tmp = @mysqli_disable_reads_from_master())) 21 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (NULL !== ($tmp = @mysqli_disable_reads_from_master($link))) 24 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (!is_bool($tmp = mysqli_disable_reads_from_master($link))) 32 printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp); 36 if (NULL !== ($tmp = mysqli_disable_reads_from_master($link))) 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_driver.phpt | 17 if (($tmp = $driver->client_info) !== $client_info) 20 gettype($tmp), $tmp); 23 if (($tmp = $driver->client_version) !== $client_version) 26 gettype($tmp), $tmp); 28 if (!is_int($tmp = $driver->driver_version) || (0 == $tmp)) 30 gettype($tmp), $tmp); 63 $tmp = $e->getTrace(); 64 if (empty($tmp))
|
H A D | mysqli_dump_debug_info_oo.phpt | 13 $tmp = NULL; 19 if (NULL !== ($tmp = @$mysqli->dump_debug_info($link))) 20 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 22 if (!is_bool($tmp = $mysqli->dump_debug_info())) 24 gettype($tmp), $tmp, 29 if (false !== ($tmp = $mysqli->dump_debug_info())) 31 gettype($tmp), $tmp,
|
H A D | mysqli_embedded_connect.phpt | 12 $tmp = NULL; 15 if (NULL !== ($tmp = @mysqli_embedded_connect())) 16 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (!is_bool($tmp = mysqli_embedded_connect($db . '_unknown'))) 24 printf("[003] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_errno.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_errno())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (!is_null($tmp = @mysqli_errno($link))) 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 if (($tmp = mysqli_errno($link)) == 0) 38 printf("[005] Expecting int/any non zero got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_errno_oo.phpt | 13 $tmp = NULL; 17 if (0 !== ($tmp = @$mysqli->errno)) 18 printf("[001] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 34 if (($tmp = $mysqli->errno) === 0) 35 printf("[004] Expecting int/any non zero got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_error_oo.phpt | 13 $tmp = NULL; 17 if ('' !== ($tmp = @$mysqli->error)) 18 printf("[001] Expecting empty string, got %s/'%s'\n", gettype($tmp), $tmp); 24 $tmp = $mysqli->error; 25 if (!is_string($tmp) || ('' !== $tmp)) 26 …printf("[003] Expecting string/empty, got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno, … 33 $tmp = $mysqli->error; 34 if (!is_string($tmp) || !preg_match("/Table '\w*\.test' doesn't exist/su", $tmp)) 35 …ecting string/[Table... doesn't exit], got %s/%s. [%d] %s\n", gettype($tmp), $tmp, $mysqli->errno,…
|
H A D | mysqli_class_mysqli_result_interface.phpt | 82 assert(($tmp = mysqli_field_tell($res)) === $mysqli_result->current_field); 85 $tmp, gettype($tmp)); 87 assert(($tmp = mysqli_field_count($link)) === $mysqli_result->field_count); 90 $tmp, gettype($tmp)); 92 assert(($tmp = mysqli_fetch_lengths($res)) === $mysqli_result->lengths); 96 ((is_array($tmp)) ? implode(' ', $tmp) : 'n/a'), 97 gettype($tmp)); 99 assert(($tmp = mysqli_num_rows($res)) === $mysqli_result->num_rows); 102 $tmp, gettype($tmp)); 116 if (null !== ($tmp = @$res->num_rows)) [all …]
|
H A D | mysqli_connect_oo_defaults.phpt | 13 $tmp = NULL; 36 $tmp = $res->fetch_assoc(); 39 if (!isset($tmp['testing']) || $tmp['testing'] != 'mysqli.default_socket') { 41 var_dump($tmp); 118 $tmp = $res->fetch_assoc(); 120 if ($tmp['username'] !== $user) 121 …printf("[011] Expecting string/%s, got %s/%s\n", $user, gettype($tmp['username']), $tmp['username'…
|
H A D | mysqli_connect_twice.phpt | 20 if (true !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket))) 21 printf("[003] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 24 printf("[004] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 45 if (true !== ($tmp = $link->real_connect($host, $user, $passwd, $db, $port, $socket))) 46 printf("[009] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 49 printf("[010] Expecting int/any got %s/%s\n", gettype($tmp), $tmp); 63 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 64 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 70 if (NULL !== ($tmp = $link->connect($host, $user, $passwd, $db, $port, $socket))) 71 printf("[015] Expecting NULL got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_data_seek.phpt | 13 $tmp = NULL; 16 if (NULL !== ($tmp = @mysqli_data_seek())) 17 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 44 printf("[009] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 47 printf("[010] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 55 printf("[012] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_data_seek_oo.phpt | 13 $tmp = NULL; 24 printf("[002] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[004] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 33 printf("[005] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[006] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[009] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 53 printf("[011] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 56 printf("[012] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); 64 printf("[014] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_debug.phpt | 22 if (NULL !== ($tmp = @mysqli_debug())) 23 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 26 …if (true !== ($tmp = mysqli_debug(sprintf('d:t:O,%s/mysqli_debug_phpt.trace', sys_get_temp_dir()))… 27 printf("[002] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_debug_append.phpt | 27 …if (true !== ($tmp = mysqli_debug(sprintf('d:t:O,%s/mysqli_debug_phpt.trace', sys_get_temp_dir()))… 28 printf("[001] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 55 if (true !== ($tmp = mysqli_debug(sprintf('d:a,%s', $trace_file)))) 56 printf("[006] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 67 if (true !== ($tmp = mysqli_debug(sprintf('d:A,%s', $trace_file)))) 68 printf("[009] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_debug_ini.phpt | 22 if (!$fp = @fopen('/tmp/mysqli_debug_phpt.trace', 'w')) 23 die("skip PHP cannot create a file in /tmp/mysqli_debug_phpt"); 26 @unlink("/tmp/mysqli_debug_phpt.trace"); 29 mysqlnd.debug="t:O,/tmp/mysqli_debug_phpt.trace" 37 $trace_file = '/tmp/mysqli_debug_phpt.trace'; 52 string(32) "t:O,/tmp/mysqli_debug_phpt.trace"
|
H A D | mysqli_dump_debug_info.phpt | 13 $tmp = NULL; 16 if (NULL !== ($tmp = @mysqli_dump_debug_info())) 17 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 19 if (NULL !== ($tmp = @mysqli_dump_debug_info($link))) 20 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 28 if (!is_bool($tmp = mysqli_dump_debug_info($link))) 30 gettype($tmp), $tmp, 35 if (false !== ($tmp = mysqli_dump_debug_info($link))) 37 gettype($tmp), $tmp,
|
H A D | mysqli_enable_reads_from_master.phpt | 17 $tmp = NULL; 20 if (NULL !== ($tmp = @mysqli_enable_reads_from_master())) 21 printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 23 if (NULL !== ($tmp = @mysqli_enable_reads_from_master($link))) 24 printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 31 if (!is_bool($tmp = mysqli_enable_reads_from_master($link))) 32 printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp); 36 if (NULL !== ($tmp = mysqli_enable_reads_from_master($link))) 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|