php-src/ext/mysqli/tests/028.phpt

25 lines
450 B
Plaintext
Raw Normal View History

2003-02-12 00:46:29 +00:00
--TEST--
function test: mysqli_character_set_name
2004-12-04 08:50:33 +00:00
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
2003-02-12 00:46:29 +00:00
--FILE--
<?php
require_once("connect.inc");
2003-02-12 00:46:29 +00:00
/*** test mysqli_connect 127.0.0.1 ***/
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
2003-02-12 00:46:29 +00:00
2003-04-02 22:07:27 +00:00
$cset = substr(mysqli_character_set_name($link),0,6);
2003-02-12 00:46:29 +00:00
var_dump($cset);
mysqli_close($link);
print "done!";
2003-02-12 00:46:29 +00:00
?>
--EXPECTF--
2016-11-22 21:12:07 +00:00
string(%d) "%s"
done!