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'); ?>
|
2003-02-12 00:46:29 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
2004-12-04 08:16:04 +00:00
|
|
|
include "connect.inc";
|
2003-02-12 00:46:29 +00:00
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2004-12-04 08:16:04 +00:00
|
|
|
$link = mysqli_connect($host, $user, $passwd);
|
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);
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
string(6) "latin1"
|