Skip to content

Commit

Permalink
Update datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
mowangjuanzi committed Jul 28, 2023
1 parent f0da3d9 commit d508b7b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
32 changes: 31 additions & 1 deletion reference/datetime/datetime/createfromformat.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: ee8255a997c094cbe51af77e557d70982b473e1c Maintainer: yuanyuqiang Status: ready -->
<!-- EN-Revision: 4d13f5e4b45f699eb855a5e84736aeda2ebd142a Maintainer: yuanyuqiang Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="datetime.createfromformat" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -55,6 +55,36 @@
</para>
</refsect1>

<refsect1 role="errors">
&reftitle.errors;
<para>
当 <parameter>datetime</parameter> 包含 NULL 字节时,此方法抛出 <exceptionname>ValueError</exceptionname>。
</para>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.21、8.1.8、8.2.0</entry>
<entry>
现在,当将 NULL 字节传递到 <parameter>datetime</parameter> 时,会引发
<exceptionname>ValueError</exceptionname>,而之前会默默忽略该错误。
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down
4 changes: 2 additions & 2 deletions reference/datetime/ini.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: f221feb6fea3695aaa14279bca515934d4964538 Maintainer: HonestQiao Status: ready -->
<!-- EN-Revision: b27b713b7ba469f08a7fd61d33b77fb0c758bad3 Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<section xml:id="datetime.configuration" xmlns="http://docbook.org/ns/docbook">
&reftitle.runtime;
Expand Down Expand Up @@ -46,7 +46,7 @@
<entry><link linkend="ini.date.timezone">date.timezone</link></entry>
<entry>"UTC"</entry>
<entry>PHP_INI_ALL</entry>
<entry></entry>
<entry>自 PHP 8.2.0 起,将其设置为无效值或者空字符串时将发出警告。</entry>
</row>
</tbody>
</tgroup>
Expand Down

0 comments on commit d508b7b

Please sign in to comment.