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

24 lines
459 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');
2007-10-10 10:07:46 +00:00
require_once('skipifconnectfailure.inc');
?>
2003-02-12 00:46:29 +00:00
--FILE--
<?php
require_once("connect.inc");
2007-10-10 10:07:46 +00:00
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);
2007-10-10 10:07:46 +00:00
print "done!";
2003-02-12 00:46:29 +00:00
?>
--EXPECTF--
%unicode|string%(%d) "%s"
2007-10-10 10:07:46 +00:00
done!