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

From: Date: Wed, 27 Nov 2019 15:18:32 +0000
Subject: svn: /phpdoc/fr/trunk/reference/ filesystem/functions/stat.xml stream/streamwrapper/url-stat.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-13107@lists.php.net to get a copy of this message
girgias Wed, 27 Nov 2019 15:18:32 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=348356 Log: Sync with latest EN revision Changed paths: U phpdoc/fr/trunk/reference/filesystem/functions/stat.xml U phpdoc/fr/trunk/reference/stream/streamwrapper/url-stat.xml Modified: phpdoc/fr/trunk/reference/filesystem/functions/stat.xml =================================================================== --- phpdoc/fr/trunk/reference/filesystem/functions/stat.xml 2019-11-27 15:03:55 UTC (rev 348355) +++ phpdoc/fr/trunk/reference/filesystem/functions/stat.xml 2019-11-27 15:18:32 UTC (rev 348356) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 334605 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 348349 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.stat"> @@ -133,6 +133,49 @@ Les autres systèmes (e.g. Windows) retournent -1. </para> <para> + La valeur de <literal>mode</literal> contient des informations lut par + plusieurs fonctions. Quand écrit en octal, commençant par la droite, + les trois premiers chiffres sont retournés par <function>chmod</function>. + Le prochain chiffre est ignoré par PHP. Les deux prochains chiffres indiquent + le type de fichier : + <table> + <title>Les types de fichiers <literal>mode</literal></title> + <tgroup cols="2"> + <thead> + <row> + <entry><literal>mode</literal> en octal</entry> + <entry>Signification</entry> + </row> + </thead> + <tbody> + <row> + <entry><constant>0120000</constant></entry> + <entry>lien symbolique</entry> + </row> + <row> + <entry><constant>0100000</constant></entry> + <entry>fichier régulier</entry> + </row> + <row> + <entry><constant>0060000</constant></entry> + <entry>périphèrique bloc</entry> + </row> + <row> + <entry><constant>0040000</constant></entry> + <entry>dossier</entry> + </row> + <row> + <entry><constant>0010000</constant></entry> + <entry>FIFO (un tube nommé)</entry> + </row> + </tbody> + </tgroup> + </table> + Ainsi, par exemple, un fichier régulier pourrait être + <constant>0100644</constant> et un dossier pourrait + <constant>0040755</constant>. + </para> + <para> En cas d'erreur, <function>stat</function> retourne &false;. </para> &fs.file.32bit; Modified: phpdoc/fr/trunk/reference/stream/streamwrapper/url-stat.xml =================================================================== --- phpdoc/fr/trunk/reference/stream/streamwrapper/url-stat.xml 2019-11-27 15:03:55 UTC (rev 348355) +++ phpdoc/fr/trunk/reference/stream/streamwrapper/url-stat.xml 2019-11-27 15:18:32 UTC (rev 348356) @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 288721 Maintainer: dams Status: ready --> -<!-- Reviewed: yes --> +<!-- EN-Revision: 348349 Maintainer: dams Status: ready --> +<!-- Reviewed: no --> <refentry xml:id="streamwrapper.url-stat" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -128,7 +128,9 @@ <para> Doit retourne autant d'éléments que <function>stat</function> retourne. Les valeurs inconnues ou indisponibles doivent prendre une valeur - raisonnable (généralement, <constant>0</constant>). + raisonnable (généralement, <constant>0</constant>). Portez une attention + particulière à <literal>mode</literal> comme documenté sous + <function>stat</function>. </para> </refsect1>

« previous php.doc.fr (#13107) next »