svn: /phpdoc/ja/trunk/appendices/migration72/ incompatible.xml

From: Date: Wed, 18 Dec 2019 18:02:41 +0000
Subject: svn: /phpdoc/ja/trunk/appendices/migration72/ incompatible.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5171@lists.php.net to get a copy of this message
mumumu Wed, 18 Dec 2019 18:02:41 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348576 Log: Fix #78524: The zone element of the array is also changed for date_parse in 7.2 Bug: https://bugs.php.net/78524 (Closed) The zone element of the array is also changed for date_parse in 7.2 Changed paths: U phpdoc/ja/trunk/appendices/migration72/incompatible.xml Modified: phpdoc/ja/trunk/appendices/migration72/incompatible.xml =================================================================== --- phpdoc/ja/trunk/appendices/migration72/incompatible.xml 2019-12-18 17:46:00 UTC (rev 348575) +++ phpdoc/ja/trunk/appendices/migration72/incompatible.xml 2019-12-18 18:02:41 UTC (rev 348576) @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 344642 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 348153 Maintainer: takagi Status: ready --> +<!-- CREDITS: mumumu --> <sect1 xml:id="migration72.incompatible"> <title>下位互換性のない変更点</title> @@ -260,6 +261,19 @@ </para> </sect2> + <sect2 xml:id="migration72.incompatible.array-unique"> + <title><function>array_unique</function> 関数を + <constant>SORT_STRING</constant> と使う場合</title> + + <para> + <function>array_unique</function> 関数を <constant>SORT_STRING</constant> + と使う場合、以前は配列をコピーし、重複した要素を削除 + (配列を後にパックせずに) していましたが、このバージョンからは + 新しい配列作られ、ユニークな要素を追加するようになりました。 + これにより、以前のバージョンとは異なった数値のインデックスが生成されます。 + </para> + </sect2> + <sect2 xml:id="migration72.incompatible.bcmod-and-floats"> <title><function>bcmod</function> の小数点に対する挙動変更</title> @@ -308,6 +322,21 @@ <parameter>sql.safe_mode</parameter> のini設定が削除されました。 </para> </sect2> + + <sect2 xml:id="migration72.incompatible.date_parse_from_format"> + <title><function>date_parse</function> と + <function>date_parse_from_format</function> 関数への変更</title> + + <para> + <function>date_parse</function> 関数 と + <function>date_parse_from_format</function> 関数 + が返す <literal>zone</literal> 要素は、 + 分ではなくて秒を表現するようになり、符号も逆になりました。 + たとえば <literal>-120</literal> 分は + <literal>7200</literal> 秒を意味するようになりました。 + </para> + </sect2> + </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.ja (#5171) next »