svn: /phpdoc/ja/trunk/reference/filesystem/functions/ stat.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Thu, 16 Jul 2020 23:43:49 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=350163

Log:
Update inode info regarding Windows

We also fix the markup, and an erroneous info about the device number.

Changed paths:
    U   phpdoc/ja/trunk/reference/filesystem/functions/stat.xml

Modified: phpdoc/ja/trunk/reference/filesystem/functions/stat.xml
===================================================================
--- phpdoc/ja/trunk/reference/filesystem/functions/stat.xml	2020-07-16 23:33:14 UTC (rev 350162)
+++ phpdoc/ja/trunk/reference/filesystem/functions/stat.xml	2020-07-16 23:43:49 UTC (rev 350163)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350100 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 350157 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka,mumumu -->
 <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stat">
  <refnamediv>
@@ -66,7 +66,7 @@
       <row>
        <entry>1</entry>
        <entry>ino</entry>
-       <entry>inode 番号(*)</entry>
+       <entry>inode 番号(****)</entry>
       </row>
       <row>
        <entry>2</entry>
@@ -126,6 +126,8 @@
      </tbody>
     </tgroup>
    </table>
+  </para>
+  <para>
    * Windows では常に <literal>0</literal> となります。
   </para>
   <para>
@@ -133,14 +135,20 @@
    その他のシステム(例えば Windows)では <literal>-1</literal> を返します。
   </para>
   <para>
-   *** PHP 7.4.0 以降、Windows では、この値はファイルを含んだボリュームのシリアル番号です。
-   これは32ビットの <emphasis>符号なし</emphasis> 整数です。
-   よって、32ビットシステムではオーバーフローする可能性があります。
+   *** PHP 7.4.0 以降、Windows では、この値はファイルが含まれるボリュームのシリアル番号です。
+   これは64ビットの <emphasis>符号なし</emphasis> 整数です。
+   よって、オーバーフローする可能性があります。
    これより前のバージョンでは、<function>stat</function> 関数ではドライブレターを数値で表現した値
    (たとえば、<literal>C:</literal> では <literal>2</literal>) でした。
    <function>lstat</function> 関数では <literal>0</literal> でした。
   </para>
   <para>
+   **** PHP 7.4.0 以降、Windows では、この値はファイルに関連付けられた識別子です。
+   これは64ビットの <emphasis>符号なし</emphasis> 整数です。
+   よって、オーバーフローする可能性があります。
+   これより前のバージョンでは、この値は常に <literal>0</literal> でした。
+  </para>
+  <para>
   <literal>mode</literal> の値は、複数の関数によって読まれる情報が含まれています。
   8進数の場合、一番右の桁から評価され、はじめの3桁が <function>chmod</function> によって返されます。
   次の桁は PHP によって無視されます。その次の2桁は以下のファイルタイプを示します:
@@ -209,6 +217,7 @@
       <entry>
        Windows では、
        デバイス番号は、ファイルが含まれるボリュームのシリアル番号を返すようになりました。
+       そして、inode 番号は、ファイルに関連付けられた識別子を返すようになりました。
       </entry>
      </row>
     </tbody>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.