xref: /PHP-8.1/ext/mysqli/tests/028.phpt (revision b5a14e6c)
1--TEST--
2function test: mysqli_character_set_name
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once('skipifconnectfailure.inc');
8?>
9--FILE--
10<?php
11    require_once("connect.inc");
12
13    /*** test mysqli_connect 127.0.0.1 ***/
14    $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
15
16    $cset = substr(mysqli_character_set_name($link),0,6);
17
18    var_dump($cset);
19
20    mysqli_close($link);
21    print "done!";
22?>
23--EXPECTF--
24string(%d) "%s"
25done!
26