/PHP-5.5/ext/mysqli/ |
H A D | mysqli.c | 1173 char tmp[22]; in php_mysqli_fetch_into_hash_aux() local 1188 …snprintf(tmp, sizeof(tmp), (mysql_fetch_field_direct(result, i)->flags & UNSIGNED_FLAG)? MYSQLI_LL… in php_mysqli_fetch_into_hash_aux() 1189 ZVAL_STRING(res, tmp, 1); in php_mysqli_fetch_into_hash_aux()
|
H A D | mysqli_api.c | 502 my_bool tmp; in mysqli_stmt_bind_result_do_bind() local 504 ulong tmp = 0; in mysqli_stmt_bind_result_do_bind() 513 !mysql_stmt_attr_get(stmt->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &tmp) && !tmp) in mysqli_stmt_bind_result_do_bind() 1037 char *tmp, *p; local 1039 tmp= emalloc(11); 1040 p= &tmp[9]; 1045 tmp[10]= '\0'; 1107 char tmp[22]; local 1112 …snprintf(tmp, sizeof(tmp), (stmt->stmt->fields[i].flags & UNSIGNED_FLAG)? MYSQLI_LLU_SPEC : MYSQLI… 2586 my_bool tmp=1; local [all …]
|
/PHP-5.5/ext/mysqli/tests/ |
H A D | 065.phpt | 27 $tmp = null; 31 if (3 !== ($tmp = strlen($mysql->real_escape_string($esc_str)))) 32 printf("[003] Expecting 3/int got %s/%s\n", gettype($tmp), $tmp); 34 if ('latin1' !== ($tmp = $mysql->character_set_name())) 35 printf("[004] Expecting latin1/string got %s/%s\n", gettype($tmp), $tmp); 43 if (2 !== ($tmp = strlen($mysql->real_escape_string($esc_str)))) 44 printf("[005] Expecting 2/int got %s/%s\n", gettype($tmp), $tmp); 46 if ('gbk' !== ($tmp = $mysql->character_set_name())) 47 printf("[005] Expecting gbk/string got %s/%s\n", gettype($tmp), $tmp);;
|
H A D | local_infile_tools.inc | 125 if (!$tmp = mysqli_fetch_assoc($res)) { 129 if ($values['id'] != $tmp['id']) { 132 $values['id'], $tmp['id']); 135 if ($values['label'] != $tmp['label']) { 138 $values['label'], $tmp['label']); 143 if ($res && $tmp = mysqli_fetch_assoc($res)) { 146 var_dump($tmp); 147 } while ($tmp = mysqli_fetch_assoc($res));
|
H A D | mysqli_affected_rows.phpt | 13 $tmp = NULL; 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 31 gettype($tmp), $tmp, mysqli_errno($link), mysqli_error($link)); 43 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 60 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 67 printf("[017] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_affected_rows_oo.phpt | 15 printf("[000a] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[002] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[006] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[007] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[009] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 52 printf("[011] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 59 printf("[013] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 65 printf("[015] Expecting int/4, got %s/%s\n", gettype($tmp), $tmp); 71 printf("[016] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 77 printf("[018] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_autocommit.phpt | 22 $tmp = NULL; 26 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[005] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[009] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 79 if ((!$tmp = mysqli_fetch_assoc($res)) || (1 != $tmp['num'])) 99 printf("[022] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 114 if (0 != $tmp['num']) 127 if ((!$tmp = mysqli_fetch_assoc($res)) || (1 != $tmp['num'])) [all …]
|
H A D | mysqli_autocommit_oo.phpt | 29 printf("[002] Expecting boolean/any, got %s/%s\n", gettype($tmp), $tmp); 37 $tmp = $res->fetch_assoc(); 39 if ($tmp['auto_commit']) 43 printf("[006] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 49 if (!$tmp['auto_commit']) 68 if ((!$tmp = $res->fetch_assoc()) || (1 != $tmp['num'])) 85 if (!$tmp['auto_commit']) 89 printf("[019] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 104 if (0 != $tmp['num']) 117 if ((!$tmp = $res->fetch_assoc()) || (1 != $tmp['num'])) [all …]
|
H A D | mysqli_begin_transaction.phpt | 20 $tmp = NULL; 24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 40 printf("[006] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[007] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 52 printf("[010] Cannot turn on autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 61 $tmp = mysqli_rollback($link); 62 if ($tmp !== true) [all …]
|
H A D | mysqli_change_user.phpt | 13 $tmp = NULL; 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 39 printf("[008] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 42 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 60 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_change_user_old.phpt | 20 $tmp = NULL; 24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 33 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 36 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 46 printf("[008] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 49 printf("[009] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 70 printf("[013] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_change_user_oo.phpt | 19 $tmp = NULL; 26 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[004] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 35 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 38 printf("[006] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 41 printf("[007] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 44 printf("[008] Expecting false, got %s/%s\n", gettype($tmp), $tmp); 58 if (1 != $tmp['test_var']) 62 printf("[012] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_change_user_set_names.phpt | 15 $tmp = mysqli_fetch_assoc($res); 17 $version = explode('.', $tmp['server_version']);
|
H A D | mysqli_character_set.phpt | 21 $tmp = NULL; 29 $tmp = mysqli_fetch_assoc($res); 31 $version = explode('.', $tmp['server_version']); 85 if (!$tmp = mysqli_fetch_assoc($res)) 88 if ($tmp['id'] != $i) 90 $i, $tmp['id'], 93 if ($tmp['label'] != chr(ord("a") + $i)) 95 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 NULL, 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 NULL, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_class_mysqli_driver_reflection.phpt | 8 if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5)) 9 die("skip Reflection not available before PHP 5 (found PHP $tmp)");
|
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_class_mysqli_result_reflection.phpt | 10 if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5)) 11 die("skip Reflection not available before PHP 5 (found PHP $tmp)");
|
H A D | mysqli_class_mysqli_warning_reflection.phpt | 9 if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5)) 10 die("skip Reflection not available before PHP 5 (found PHP $tmp)");
|
H A D | mysqli_close.phpt | 13 $tmp = NULL; 16 if (!is_null($tmp = @mysqli_close())) 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 26 $tmp = @mysqli_close(NULL); 27 if (NULL !== $tmp) 28 printf("[004] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); 30 $tmp = mysqli_close($link); 31 if (true !== $tmp) 32 printf("[005] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_close_oo.phpt | 13 $tmp = NULL; 20 if (!is_null($tmp = @$mysqli->close($link))) 21 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 $tmp = $mysqli->close(); 24 if (true !== $tmp) 25 printf("[003] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 27 if (!is_null($tmp = @$mysqli->close())) 28 printf("[004] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 30 if (!is_null($tmp = @$mysqli->query("SELECT 1"))) 31 printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
H A D | mysqli_commit.phpt | 20 $tmp = NULL; 24 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 27 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 37 printf("[005] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 48 $tmp = mysqli_commit($link); 49 if ($tmp !== true) 50 printf("[009] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 57 $tmp = mysqli_fetch_assoc($res); 58 if (1 != $tmp['num']) [all …]
|
H A D | mysqli_commit_oo.phpt | 20 $tmp = NULL; 24 if (!is_null($tmp = @$mysqli->commit())) { 25 printf("[013] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 34 printf("[002] Expecting boolean/true got %s/%s\n", gettype($tmp), $tmp); 38 printf("[003] Cannot turn off autocommit, expecting true, got %s/%s\n", gettype($tmp), $tmp); 53 $tmp = $mysqli->commit(); 54 if ($tmp !== true) { 55 printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp); 65 $tmp = $res->fetch_assoc(); 66 if (1 != $tmp['num']) { [all …]
|
H A D | mysqli_connect.phpt | 13 $tmp = NULL; 24 printf("[001] Expecting NULL got %s/%s\n", gettype($tmp), $tmp); 27 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 28 printf("[002] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 32 if (($anon_allow && gettype($tmp) != "object") || (!$anon_allow && $tmp != false)) { 33 printf("[003] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 38 printf("[004] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 43 printf("[005] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 48 printf("[006] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); 53 printf("[007] Expecting %s, got %s/%s\n", $exptype, gettype($tmp), $tmp); [all …]
|