2003-02-12 00:46:29 +00:00
|
|
|
--TEST--
|
|
|
|
function test: mysqli_character_set_name
|
2004-12-04 08:50:33 +00:00
|
|
|
--SKIPIF--
|
2009-05-28 14:33:43 +00:00
|
|
|
<?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
|
2009-10-19 20:07:25 +00:00
|
|
|
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 ***/
|
2009-09-24 12:51:03 +00:00
|
|
|
$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
|
|
|
?>
|
2006-08-10 13:43:18 +00:00
|
|
|
--EXPECTF--
|
2009-05-28 14:33:43 +00:00
|
|
|
%unicode|string%(%d) "%s"
|
2007-10-10 10:07:46 +00:00
|
|
|
done!
|