Lines Matching refs:charset
27 …if (!$res = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connect…
31 …if (!($character_set_connection = $tmp['charset']) || !($collation_connection = $tmp['collation']))
57 if (!is_object($charset = mysqli_get_charset($link)))
58 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
60 if (!isset($charset->charset) ||
61 !in_array(gettype($charset->charset), array("string", "unicode")) ||
62 ($character_set_connection !== $charset->charset))
63 …string/%s, got %s/%s\n", $character_set_connection, gettype($charset->charset), $charset->charset);
64 if (!isset($charset->collation) ||
65 !in_array(gettype($charset->collation), array("string", "unicode")) ||
66 ($collation_connection !== $charset->collation))
67 …ting string/%s, got %s/%s\n", $collation_connection, gettype($charset->collation), $charset->colla…
69 if (!isset($charset->dir) ||
70 !is_string($charset->dir))
71 …ng string - ideally %s*, got %s/%s\n", $character_sets_dir, gettype($charset->dir), $charset->dir);
73 if (!isset($charset->min_length) ||
74 !(is_int($charset->min_length)) ||
75 ($charset->min_length < 0) ||
76 ($charset->min_length > $charset->max_length))
77 printf("[020] Expecting int between 0 ... %d, got %s/%s\n", $charset->max_length,
78 gettype($charset->min_length), $charset->min_length);
80 if (!isset($charset->number) ||
81 !is_int($charset->number) ||
82 ($charset->number !== (int)$id))
83 … printf("[021] Expecting int/%d, got %s/%s\n", $id, gettype($charset->number), $charset->number);
85 if (!isset($charset->state) ||
86 !is_int($charset->state))
87 printf("[022] Expecting int/any, got %s/%s\n", gettype($charset->state), $charset->state);