Lines Matching refs:charset

40 …if (!$res = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connect…
44 …if (!($character_set_connection = $tmp['charset']) || !($collation_connection = $tmp['collation']))
70 if (!is_object($charset = mysqli_get_charset($link)))
71 printf("[015] Expecting object/std_class, got %s/%s\n", gettype($charset), $charset);
73 if (!isset($charset->charset) ||
74 !in_array(gettype($charset->charset), array("string", "unicode")) ||
75 ($character_set_connection !== $charset->charset))
76 …string/%s, got %s/%s\n", $character_set_connection, gettype($charset->charset), $charset->charset);
77 if (!isset($charset->collation) ||
78 !in_array(gettype($charset->collation), array("string", "unicode")) ||
79 ($collation_connection !== $charset->collation))
80 …ting string/%s, got %s/%s\n", $collation_connection, gettype($charset->collation), $charset->colla…
82 if (!isset($charset->dir) ||
83 !is_string($charset->dir))
84 …ng string - ideally %s*, got %s/%s\n", $character_sets_dir, gettype($charset->dir), $charset->dir);
86 if (!isset($charset->min_length) ||
87 !(is_int($charset->min_length)) ||
88 ($charset->min_length < 0) ||
89 ($charset->min_length > $charset->max_length))
90 printf("[020] Expecting int between 0 ... %d, got %s/%s\n", $charset->max_length,
91 gettype($charset->min_length), $charset->min_length);
93 if (!isset($charset->number) ||
94 !is_int($charset->number) ||
95 ($charset->number !== (int)$id))
96 … printf("[021] Expecting int/%d, got %s/%s\n", $id, gettype($charset->number), $charset->number);
98 if (!isset($charset->state) ||
99 !is_int($charset->state))
100 printf("[022] Expecting int/any, got %s/%s\n", gettype($charset->state), $charset->state);