Lines Matching refs:charset

18 …if (!$res = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connect…
22 …if (!($character_set_connection = $tmp['charset']) || !($collation_connection = $tmp['collation']))
48 if (!is_object($charset = mysqli_get_charset($link)))
49 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
51 if (!isset($charset->charset) ||
52 !in_array(gettype($charset->charset), array("string", "unicode")) ||
53 ($character_set_connection !== $charset->charset))
54 …string/%s, got %s/%s\n", $character_set_connection, gettype($charset->charset), $charset->charset);
55 if (!isset($charset->collation) ||
56 !in_array(gettype($charset->collation), array("string", "unicode")) ||
57 ($collation_connection !== $charset->collation))
58 …ting string/%s, got %s/%s\n", $collation_connection, gettype($charset->collation), $charset->colla…
60 if (!isset($charset->dir) ||
61 !is_string($charset->dir))
62 …ng string - ideally %s*, got %s/%s\n", $character_sets_dir, gettype($charset->dir), $charset->dir);
64 if (!isset($charset->min_length) ||
65 !(is_int($charset->min_length)) ||
66 ($charset->min_length < 0) ||
67 ($charset->min_length > $charset->max_length))
68 printf("[020] Expecting int between 0 ... %d, got %s/%s\n", $charset->max_length,
69 gettype($charset->min_length), $charset->min_length);
71 if (!isset($charset->number) ||
72 !is_int($charset->number) ||
73 ($charset->number !== (int)$id))
74 … printf("[021] Expecting int/%d, got %s/%s\n", $id, gettype($charset->number), $charset->number);
76 if (!isset($charset->state) ||
77 !is_int($charset->state))
78 printf("[022] Expecting int/any, got %s/%s\n", gettype($charset->state), $charset->state);