Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions reference/datetime/dateerror.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 4d17b7b4947e7819ff5036715dd706be87ae4def Maintainer: lacatoire Status: ready -->
<reference xml:id="class.dateerror" role="exception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>DateError 类</title>
<titleabbrev>DateError</titleabbrev>

<partintro>

<!-- {{{ DateError intro -->
<section xml:id="dateerror.intro">
&reftitle.intro;
<para>
当找不到时区数据库或数据库包含无效数据时抛出。
</para>
<para>
此错误不应该出现,并且与代码无关。有两个子异常(<exceptionname>DateObjectError</exceptionname>
和 <exceptionname>DateRangeError</exceptionname>),它们根据程序员错误或范围相关问题抛出。
</para>
</section>
<!-- }}} -->

<section xml:id="dateerror.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooexception>
<exceptionname>DateError</exceptionname>
</ooexception>

<ooclass>
<modifier>extends</modifier>
<classname>Error</classname>
</ooclass>

<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
<xi:fallback/>
</xi:include>

<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Error'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.error')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Error'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->

</section>

<section role="seealso">
&reftitle.seealso;
<simplelist>
<member><exceptionname>DateObjectError</exceptionname></member>
<member><exceptionname>DateRangeError</exceptionname></member>
</simplelist>
</section>
</partintro>

</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
81 changes: 81 additions & 0 deletions reference/datetime/dateexception.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 4d17b7b4947e7819ff5036715dd706be87ae4def Maintainer: lacatoire Status: ready -->
<reference xml:id="class.dateexception" role="exception" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>DateException 类</title>
<titleabbrev>DateException</titleabbrev>

<partintro>

<!-- {{{ DateException intro -->
<section xml:id="dateexception.intro">
&reftitle.intro;
<para>
日期/时间异常的父类,用于由用户输入或需要解析的自由格式文本参数引发的问题。
</para>
<para>
该扩展会抛出以下子异常:
<itemizedlist>
<listitem><simpara><exceptionname>DateInvalidOperationException</exceptionname></simpara></listitem>
<listitem><simpara><exceptionname>DateInvalidTimezoneException</exceptionname></simpara></listitem>
<listitem><simpara><exceptionname>DateMalformedIntervalStringException</exceptionname></simpara></listitem>
<listitem><simpara><exceptionname>DateMalformedPeriodStringException</exceptionname></simpara></listitem>
<listitem><simpara><exceptionname>DateMalformedStringException</exceptionname></simpara></listitem>
</itemizedlist>
</para>
</section>
<!-- }}} -->

<section xml:id="dateexception.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooexception>
<exceptionname>DateException</exceptionname>
</ooexception>

<ooclass>
<modifier>extends</modifier>
<classname>Exception</classname>
</ooclass>

<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
<xi:fallback/>
</xi:include>

<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='Exception'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->

</section>

</partintro>

</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
6 changes: 2 additions & 4 deletions reference/datetime/datetime/settime.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@
<tbody>
<row>
<entry>8.1.0</entry>
<entry>The behaviour with double existing hours (during the fall-back
DST transition) changed. Previously PHP would pick the second occurrence
(after the DST transition), instead of the first occurrence (before DST
transition).</entry>
<entry>重复存在的小时(在夏令时回拨转换期间)的行为已更改。之前
PHP 会选择第二次出现的时间(夏令时转换之后),而不是第一次出现的时间(夏令时转换之前)。</entry>
</row>
<row>
<entry>7.1.0</entry>
Expand Down
4 changes: 2 additions & 2 deletions reference/datetime/datetimeinterface.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
<term><constant>DATE_RFC3339</constant></term>
<listitem>
<simpara>
同 <constant>DATE_ATOM</constant>(自 PHP 5.1.3 版本可用)
同 <constant>DATE_ATOM</constant>
</simpara>
</listitem>
</varlistentry>
Expand Down Expand Up @@ -340,7 +340,7 @@
<term><constant>DATE_W3C</constant></term>
<listitem>
<simpara>
RSS 格式(示例:2005-08-15T15:52:01+00:00)
World Wide Web Consortium(示例:2005-08-15T15:52:01+00:00)
</simpara>
</listitem>
</varlistentry>
Expand Down
2 changes: 1 addition & 1 deletion reference/filesystem/functions/move-uploaded-file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
&reftitle.examples;
<para>
<example>
<title>Uploading multiple files</title>
<title>上传多个文件</title>
<programlisting role="php">
<![CDATA[
<?php
Expand Down
Loading