Skip to content

Commit

Permalink
Sync outdated files (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Aug 26, 2024
1 parent bd38f80 commit c7785e0
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 20 deletions.
6 changes: 3 additions & 3 deletions reference/info/functions/ini-get-all.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4e6f0774f03131cbeeb8c21019a690bf97fd22b6 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: c8a8981a9df9a1564a4b9a79e84583d41a7b6ac5 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.ini-get-all" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ini_get_all</refname>
Expand Down Expand Up @@ -156,7 +156,7 @@ Array
<note>
<para>
<function>ini_get_all</function> 忽略 "array" 的 ini 选项,例如
pdo.dsn.*
<literal>pdo.dsn.<replaceable>*</replaceable></literal>
</para>
</note>
</refsect1>
Expand Down
7 changes: 4 additions & 3 deletions reference/mbstring/functions/mb-substitute-character.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 92f1b8b177eb5730382abf9f27bae868f1bb636f Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: d023b296f3cfb211f2f3b5a2c39440fe42855e7a Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.mb-substitute-character" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_substitute_character</refname>
Expand All @@ -21,7 +21,8 @@
<para>
该设置会影响 <function>mb_convert_encoding</function>、
<function>mb_convert_variables</function>、
<function>mb_output_handler</function>
<function>mb_output_handler</function>、
<function>mb_scrub</function>
和 <function>mb_send_mail</function>。
</para>
</refsect1>
Expand Down
8 changes: 4 additions & 4 deletions reference/mcrypt/functions/mcrypt-module-open.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e41806c30bf6975e452c0d4ce35ab0984c2fa68c Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: f27cfeeefc13717f86a53d7fefa0ce54f7bfaaaf Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.mcrypt-module-open" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mcrypt_module_open</refname>
Expand Down Expand Up @@ -119,8 +119,8 @@
$iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM);
$ks = mcrypt_enc_get_key_size($td);
/* 创建密钥 */
$key = substr(md5('very secret key'), 0, $ks);
/* 创建密钥 (此处仅为示例:MD5 不是一个好的哈希算法) */
$key = substr(hash('md5', 'very secret key'), 0, $ks);
/* 初始化加密 */
mcrypt_generic_init($td, $key, $iv);
Expand Down
9 changes: 2 additions & 7 deletions reference/mysqli/mysqli/set-charset.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 63b99082ef83eade08151f8cb528246fded81db9 Maintainer: Yf D Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: f977ae030850934859df8eb01f24fbb0c56ededa Maintainer: Yf D Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="mysqli.set-charset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mysqli::set_charset</refname>
Expand Down Expand Up @@ -104,11 +104,6 @@ Current character set: utf8mb4

<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
如果在 Windows 平台上使用该方法,需要 MySQL 客户端库版本 4.1.11 或以上(且 MySQL 5.0 版本需要 5.0.6 及以上)。
</para>
</note>
<note>
<para>
这是改变字符集的首选方法,不推荐使用 <function>mysqli_query</function> 来设置(如 <literal>SET NAMES
Expand Down
7 changes: 4 additions & 3 deletions reference/network/functions/setcookie.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 5c1ccc6e24e5d470e75ef0a5887c2ff583266375 Maintainer: daijie Status: ready -->
<!-- EN-Revision: 1ad4e2d550953000e2441b663226300596962ef2 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.setcookie" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -203,7 +203,8 @@ $value = 'something from somewhere';
setcookie("TestCookie", $value);
setcookie("TestCookie", $value, time()+3600); /* 1 小时过期 */
setcookie("TestCookie", $value, time()+3600, "/~rasmus/", "example.com", 1);
setcookie("TestCookie", $value, time()+3600, "/~rasmus/", "example.com", true);
?>
]]>
</programlisting>
Expand Down Expand Up @@ -313,7 +314,7 @@ one : cookieone
<listitem>
<simpara>
为同一个参数再次设置 Cookie 前,必须先把它删掉。
如果参数的值是空 string,并且其他参数和上次调用 setcookie 仍旧一样,
如果 <parameter>value</parameter> 的值是空 string,并且其他参数和上次调用 <function>setcookie</function> 仍旧一样,
则指定的名称会被远程客户端删除。
内部的实现是:将值设置成 <literal>'deleted'</literal>,且过去的过期时间。
</simpara>
Expand Down

0 comments on commit c7785e0

Please sign in to comment.