com doc/ja: Fix #66104: strtotime reports "2011-02-31" and "2011-11-31" as valid dates: reference/datetime/formats.xml

[email protected] (Yoshinari Takaoka) Thu, 28 Jan 2021 17:57:29 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    8f913a80f74422b18100800abafe949ce7366649
Author:    Yoshinari Takaoka <[email protected]>         Fri, 29 Jan 2021 02:57:29 +0900
Parents:   ae67631ba713dc2767e7373af474454bcf9f8e54
Branches:  master

Link:       http://git.php.net/?p=doc/ja.git;a=commitdiff;h=8f913a80f74422b18100800abafe949ce7366649

Log:
Fix #66104: strtotime reports "2011-02-31" and "2011-11-31" as valid dates

We upgrade the already existing note to caution.

While we're at it, we also remove obsolete info in that document.

Bugs:
https://bugs.php.net/66104

Changed paths:
  M  reference/datetime/formats.xml


Diff:
diff --git a/reference/datetime/formats.xml b/reference/datetime/formats.xml
index 025d98b11c..004d4eed08 100644
--- a/reference/datetime/formats.xml
+++ b/reference/datetime/formats.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: a59ed9b526c8bae64a3e762063f2bd4de39a00da Maintainer: takagi Status: ready -->
+<!-- EN-Revision: f3bc618211dd65a97eb427aceb9473d3b4a0c3d0 Maintainer: takagi Status: ready -->
 <!-- CREDITS: hnw,mumumu -->
 <chapter xml:id="datetime.formats" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <title>サポートする日付と時刻の書式</title>
@@ -121,7 +121,7 @@
       <entry>"4:08:37 am", "7:19:19P.M."</entry>
      </row>
      <row>
-      <entry>MS SQL (時、分、秒、端数、午前/午後), PHP 5.3 以降で利用可能</entry>
+      <entry>MS SQL (時、分、秒、端数、午前/午後)</entry>
       <entry><literal>hh</literal> ":" <literal>MM</literal> ":" <literal>II</literal> [.:] [0-9]+ <literal>meridian</literal></entry>
       <entry>"4:08:39:12313am"</entry>
      </row>
@@ -426,7 +426,7 @@
    </para>
   </note>
 
-  <note>
+  <caution>
    <para>
     シンボル <literal>dd</literal> と <literal>DD</literal> について、
     オーバーフローやアンダーフローすることができます。
@@ -437,7 +437,7 @@
     ( 6 月は 30 日までしかないので)。
    </para>
    <para>
-    PHP 5.1.0 以降では「日」の範囲が 0 から 31 までに絞られたことに注意しましょう。
+    「日」の範囲が 0 から 31 までに絞られていることに注意しましょう。
     先ほどの正規表現が示すとおりです。
     したがって、たとえば "2008-06-32" は日付文字列として妥当な形式ではなくなります。
    </para>
@@ -455,7 +455,7 @@
     (ISO 8601 における -1 年は、予測的グレゴリオ暦 (proleptic Gregorian calendar)
     で言うところの紀元前 2 年になります。)
    </para>
-  </note>
+  </caution>
  </sect1>
  <!--}}}-->