svn: /phpdoc/fr/trunk/ appendices/tokens.xml language/control-structures/include.xml language/functions.xml
reference/yaf/yaf_dispatcher/setappdirectory.xml
| From: | Yannick Torres | Date: | Mon, 07 Nov 2011 23:11:20 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/ appendices/tokens.xml language/control-structures/include.xml language/functions.xml reference/yaf/yaf_dispatcher/setappdirectory.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-8881@lists.php.net to get a copy of this message | ||
yannick Mon, 07 Nov 2011 23:11:20 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=318895
Log:
sync with EN
Changed paths:
U phpdoc/fr/trunk/appendices/tokens.xml
U phpdoc/fr/trunk/language/control-structures/include.xml
U phpdoc/fr/trunk/language/functions.xml
U phpdoc/fr/trunk/reference/yaf/yaf_dispatcher/setappdirectory.xml
Modified: phpdoc/fr/trunk/appendices/tokens.xml
===================================================================
--- phpdoc/fr/trunk/appendices/tokens.xml 2011-11-07 22:31:07 UTC (rev 318894)
+++ phpdoc/fr/trunk/appendices/tokens.xml 2011-11-07 23:11:20 UTC (rev 318895)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 307324 Maintainer: jpauli Status: ready -->
+<!-- EN-Revision: 318883 Maintainer: jpauli Status: ready -->
<!-- Reviewed: yes -->
<appendix xml:id="tokens" xmlns="http://docbook.org/ns/docbook">
@@ -17,6 +17,24 @@
voici une liste de ces identifiants, la syntaxe PHP correspondante, et
les références appropriées au manuel.
</para>
+
+ <note>
+ <title>Utilisation des constantes T_*</title>
+ <para>
+ Tous les tokens listés ci-dessous sont également définis comme constantes PHP.
+ Leurs valeurs sont automatiquement générées suivant l'infrastructure sous jacente
+ de PHP. Ceci signifie que la valeur concrète d'un token peut changer entre
+ deux versions de PHP. Par exemple, la constante <constant>T_FILE</constant> vaut
+ <literal>365</literal> en PHP 5.3, alors que la même valeur se réfère maintenant
+ à la constante <constant>T_TRAIT</constant> en PHP 5.4 et la valeur de la constante
+ <constant>T_FILE</constant> est de <literal>369</literal>. Ceci signifie
que votre code
+ ne doit jamais utiliser la valeur littérale des constantes T_* depuis une version PHP X.Y.Z
+ et ce, afin d'assurer une meilleure portabilité entre plusieurs versions de PHP. À la
+ place, votre code doit utiliser les valeurs (utilisation de très grand nombre comme
+ <literal>10000</literal>) ainsi qu'une stratégie appropriée qui fonctionnera
à la
+ fois avec les versions de PHP et les valeurs T_*.
+ </para>
+ </note>
<table>
<title>Tokens</title>
<tgroup cols="3">
Modified: phpdoc/fr/trunk/language/control-structures/include.xml
===================================================================
--- phpdoc/fr/trunk/language/control-structures/include.xml 2011-11-07 22:31:07 UTC (rev 318894)
+++ phpdoc/fr/trunk/language/control-structures/include.xml 2011-11-07 23:11:20 UTC (rev 318895)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 312947 Maintainer: jpauli Status: ready -->
+<!-- EN-Revision: 318884 Maintainer: jpauli Status: ready -->
<!-- Reviewed: yes -->
<sect1 xml:id="function.include" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
Modified: phpdoc/fr/trunk/language/functions.xml
===================================================================
--- phpdoc/fr/trunk/language/functions.xml 2011-11-07 22:31:07 UTC (rev 318894)
+++ phpdoc/fr/trunk/language/functions.xml 2011-11-07 23:11:20 UTC (rev 318895)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 318236 Maintainer: jpauli Status: ready -->
+<!-- EN-Revision: 318884 Maintainer: jpauli Status: ready -->
<!-- Reviewed: yes -->
<chapter xml:id="language.functions" xmlns="http://docbook.org/ns/docbook">
Modified: phpdoc/fr/trunk/reference/yaf/yaf_dispatcher/setappdirectory.xml
===================================================================
--- phpdoc/fr/trunk/reference/yaf/yaf_dispatcher/setappdirectory.xml 2011-11-07 22:31:07 UTC (rev
318894)
+++ phpdoc/fr/trunk/reference/yaf/yaf_dispatcher/setappdirectory.xml 2011-11-07 23:11:20 UTC (rev
318895)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 317663 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 318881 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="yaf-dispatcher.setappdirectory" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">