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

From: Date: Sun, 03 Mar 2019 22:34:57 +0000
Subject: svn: /phpdoc/ja/trunk/appendices/migration71/ incompatible.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5018@lists.php.net to get a copy of this message
satoruyoshida Sun, 03 Mar 2019 22:34:57 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=346968 Log: sync en Changed paths: U phpdoc/ja/trunk/appendices/migration71/incompatible.xml Modified: phpdoc/ja/trunk/appendices/migration71/incompatible.xml =================================================================== --- phpdoc/ja/trunk/appendices/migration71/incompatible.xml 2019-03-03 19:36:45 UTC (rev 346967) +++ phpdoc/ja/trunk/appendices/migration71/incompatible.xml 2019-03-03 22:34:57 UTC (rev 346968) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 343797 Maintainer: takagi Status: working --> +<!-- EN-Revision: 346032 Maintainer: takagi Status: working --> <sect1 xml:id="migration71.incompatible"> <title>下位互換性のない変更点</title> @@ -231,6 +231,43 @@ ただ配列に変換されるだけでした。 </para> </sect2> +<!-- to be translated --> + <sect2 xml:id="migration71.incompatible.empty-string-modifcation-by-character"> + <title>Assignment via string index access on an empty string</title> + <para> + String modification by character on an empty string now works like for non-empty + strings, i.e. writing to an out of range offset pads the string with spaces, + where non-integer types are converted to integer, and only the first character of + the assigned string is used. Formerly, empty strings where silently treated like + an empty array. + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +$a = ''; +$a[10] = 'foo'; +var_dump($a); +?> +]]> + </programlisting> + &example.outputs.70; + <screen> +<![CDATA[ +array(1) { + [10]=> + string(3) "foo" +} +]]> + </screen> + &example.outputs.71; + <screen> +<![CDATA[ +string(11) " f" +]]> + </screen> + </informalexample> + </para> + </sect2> <sect2 xml:id="migration71.incompatible.removed-ini-directives"> <title>削除された INI 項目</title> @@ -321,7 +358,7 @@ </para> </note> </sect2> - +<!-- to be translated --> <sect2 xml:id="migration71.incompatible.e-recoverable"> <title>Error message for E_RECOVERABLE errors</title> <para> @@ -561,7 +598,7 @@ parameter semantics </title> <para> - The third paramter to the <function>mb_ereg</function> and + The third parameter to the <function>mb_ereg</function> and <function>mb_eregi</function> functions (<parameter>regs</parameter>) will now be set to an empty array if nothing was matched. Formerly, the parameter would not have been modified.

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