Lines Matching refs:charset

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