[doc-en] master: Fix doc of mysqli_get_charset (#5411)
| From: | Kamil Tekiela via GitHub | Date: | Sat, 07 Mar 2026 22:46:16 +0000 |
| Subject: | [doc-en] master: Fix doc of mysqli_get_charset (#5411) | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-23185@lists.php.net to get a copy of this message | ||
Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2026-03-07T22:46:13Z
Commit: https://github.com/php/doc-en/commit/aa79a143fbe4d33a709e2e918f15b942ce06baa9
Raw diff: https://github.com/php/doc-en/commit/aa79a143fbe4d33a709e2e918f15b942ce06baa9.diff
Fix doc of mysqli_get_charset (#5411)
Changed paths:
M reference/mysqli/mysqli/get-charset.xml
Diff:
diff --git a/reference/mysqli/mysqli/get-charset.xml b/reference/mysqli/mysqli/get-charset.xml
index 74d79d34429a..a541bdd035b3 100644
--- a/reference/mysqli/mysqli/get-charset.xml
+++ b/reference/mysqli/mysqli/get-charset.xml
@@ -51,7 +51,7 @@
</varlistentry>
<varlistentry>
<term><parameter>dir</parameter></term>
- <listitem><para>Directory the charset description was fetched from (?) or
"" for built-in character sets</para></listitem>
+ <listitem><para>Directory the character set description was fetched from or
"" for built-in character sets</para></listitem>
</varlistentry>
<varlistentry>
<term><parameter>min_length</parameter></term>
@@ -67,7 +67,7 @@
</varlistentry>
<varlistentry>
<term><parameter>state</parameter></term>
- <listitem><para>Character set status (?)</para></listitem>
+ <listitem><para>As of PHP 8.2.0, it is always
<literal>1</literal></para></listitem>
</varlistentry>
</variablelist>
</para>
@@ -83,6 +83,7 @@
<?php
$db = mysqli_init();
$db->real_connect("localhost","root","","test");
+ $db->set_charset('latin1');
var_dump($db->get_charset());
?>
]]>
@@ -93,6 +94,7 @@
<?php
$db = mysqli_init();
mysqli_real_connect($db, "localhost","root","","test");
+ mysqli_set_charset($db, 'latin1');
var_dump(mysqli_get_charset($db));
?>
]]>
@@ -114,7 +116,7 @@ object(stdClass)#2 (7) {
["number"]=>
int(8)
["state"]=>
- int(801)
+ int(1)
}
]]>
</screen>