svn: /phpdoc/ru/trunk/reference/ filesystem/functions/stat.xml stream/streamwrapper/url-stat.xml

From: Date: Wed, 27 Nov 2019 05:18:05 +0000
Subject: svn: /phpdoc/ru/trunk/reference/ filesystem/functions/stat.xml stream/streamwrapper/url-stat.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-8123@lists.php.net to get a copy of this message
sergey Wed, 27 Nov 2019 05:18:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348352 Log: docs(ru): Updated to English revision Changed paths: U phpdoc/ru/trunk/reference/filesystem/functions/stat.xml U phpdoc/ru/trunk/reference/stream/streamwrapper/url-stat.xml Modified: phpdoc/ru/trunk/reference/filesystem/functions/stat.xml =================================================================== --- phpdoc/ru/trunk/reference/filesystem/functions/stat.xml 2019-11-27 05:06:01 UTC (rev 348351) +++ phpdoc/ru/trunk/reference/filesystem/functions/stat.xml 2019-11-27 05:18:05 UTC (rev 348352) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 334605 Maintainer: shein Status: ready --> +<!-- EN-Revision: 348349 Maintainer: shein Status: ready --> <!-- Reviewed: yes --> <!-- $Revision$ --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stat"> @@ -134,6 +134,46 @@ системы (например, Windows) вернут -1. </para> <para> + Значение <literal>mode</literal> содержит информацию, читаемую несколькими функциями. + При записи в восьмеричном виде, начиная справа, первые три цифры возвращаются функцией + <function>chmod</function>. Следующая цифра игнорируется PHP. Следующие две цифры указывают + тип файла: + <table> + <title><literal>mode</literal> типов файлов</title> + <tgroup cols="2"> + <thead> + <row> + <entry><literal>mode</literal> в восьмеричном виде</entry> + <entry>Значение</entry> + </row> + </thead> + <tbody> + <row> + <entry><constant>0120000</constant></entry> + <entry>символическая ссылка</entry> + </row> + <row> + <entry><constant>0100000</constant></entry> + <entry>обычный файл</entry> + </row> + <row> + <entry><constant>0060000</constant></entry> + <entry>блочное устройство</entry> + </row> + <row> + <entry><constant>0040000</constant></entry> + <entry>директория</entry> + </row> + <row> + <entry><constant>0010000</constant></entry> + <entry>fifo</entry> + </row> + </tbody> + </tgroup> + </table> + Так, например, обычный файл может быть <constant>0100644</constant>, а директория может быть <constant>0040755</constant>. + </para> + <para> В случае ошибки <function>stat</function> возвращает &false;. </para> &fs.file.32bit; Modified: phpdoc/ru/trunk/reference/stream/streamwrapper/url-stat.xml =================================================================== --- phpdoc/ru/trunk/reference/stream/streamwrapper/url-stat.xml 2019-11-27 05:06:01 UTC (rev 348351) +++ phpdoc/ru/trunk/reference/stream/streamwrapper/url-stat.xml 2019-11-27 05:18:05 UTC (rev 348352) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 288721 Maintainer: tmn Status: ready --> +<!-- EN-Revision: 348349 Maintainer: tmn Status: ready --> <!-- Reviewed: yes Maintainer: lex --> <!-- $Revision$ --> @@ -125,7 +125,7 @@ Должна возвращать столько элементов, сколько возвращает вызывающая <function>stat</function>. Неизвестные или недоступные значения необходимо приводить к разумным значениям - (обычно к <constant>0</constant>). + (обычно к <constant>0</constant>). Обратите особое внимание на <literal>mode</literal>, как описано в разделе <function>stat</function>. </para> </refsect1>

« previous php.doc.ru (#8123) next »