cvs: phpdoc-fr /appendices history.xml /faq misc.xml /features file-upload.xml http-auth.xml /install/unix index.xml /install/windows manual.xml
/language control-structures.xml oop.xml /language/oop5 exceptions.xml
| From: | Yannick Torres | Date: | Wed, 08 Dec 2004 21:19:11 +0000 |
| Subject: | cvs: phpdoc-fr /appendices history.xml /faq misc.xml /features file-upload.xml http-auth.xml /install/unix index.xml /install/windows manual.xml /language control-structures.xml oop.xml /language/oop5 exceptions.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3701@lists.php.net to get a copy of this message | ||
yannick Wed Dec 8 16:19:11 2004 EDT
Modified files:
/phpdoc-fr/appendices history.xml
/phpdoc-fr/faq misc.xml
/phpdoc-fr/features file-upload.xml http-auth.xml
/phpdoc-fr/install/unix index.xml
/phpdoc-fr/install/windows manual.xml
/phpdoc-fr/language/oop5 exceptions.xml
/phpdoc-fr/language control-structures.xml oop.xml
Log:
sync with EN
http://cvs.php.net/diff.php/phpdoc-fr/appendices/history.xml?r1=1.19&r2=1.20&ty=u Index: phpdoc-fr/appendices/history.xml diff -u phpdoc-fr/appendices/history.xml:1.19 phpdoc-fr/appendices/history.xml:1.20 --- phpdoc-fr/appendices/history.xml:1.19 Sun Jul 18 19:33:54 2004 +++ phpdoc-fr/appendices/history.xml Wed Dec 8 16:19:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.24 Maintainer: dams Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.25 Maintainer: dams Status: ready --> <appendix id="history"> <title>Histoire de &php;</title> @@ -125,11 +125,6 @@ langage. </para> <para> - &php; 4 est actuellement la dernière version de &php;. Le projet de &php; 5.0 - a déjà débuté, afin d'améliorer le moteur Zend, et y intégrer des - capacités objets améliorées. - </para> - <para> Actuellement, &php; est utilisé par des centaines de milliers de développeurs, et plusieurs millions de sites web indiquent qu'ils sont configurés avec &php;, ce qui représente environs 20% des noms de domaines sur Internet. @@ -143,9 +138,11 @@ <sect2 id="history.php5"> <title>&php; 5</title> <para> - Le futur de &php; est essentiellement constitué par son coeur, le Zend Engine. - &php; 5 incluera la nouvelle version du Zend Engine 2.0. Pour plus d'informations - sur ce moteur, <ulink url="&url.zend.future;">voyez sa page web</ulink>. + &php; 5 est sorti en Juillet 2004 après un long développement et plusieurs + pré-versions. Il est régit par son moteur, le <literal>Zend Engine 2.0</literal> + avec un nouveau modèle et des dizianes de nouvelles fonctionnalités. + Pour plus d'informations concernant ce moteur, lisez + <ulink url="&url.zend.future;">cette page web</ulink>. </para> </sect2> </sect1> http://cvs.php.net/diff.php/phpdoc-fr/faq/misc.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/faq/misc.xml diff -u phpdoc-fr/faq/misc.xml:1.10 phpdoc-fr/faq/misc.xml:1.11 --- phpdoc-fr/faq/misc.xml:1.10 Tue Sep 14 09:16:01 2004 +++ phpdoc-fr/faq/misc.xml Wed Dec 8 16:19:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.20 Maintainer: gui Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.22 Maintainer: gui Status: ready --> <chapter id="faq.misc"> <title>Questions diverses</title> <titleabbrev>Questions diverses</titleabbrev> @@ -132,6 +132,7 @@ </para> <programlisting role="php"> <![CDATA[ +<?php // Emulation de register_globals à on if (!ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, @@ -144,6 +145,7 @@ } ini_set('register_globals', true); } +?> ]]> </programlisting> <para> @@ -151,6 +153,7 @@ </para> <programlisting role="php"> <![CDATA[ +<?php // Emulation de register_globals à off if (ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, @@ -159,12 +162,13 @@ array_unshift($superglobals, $_SESSION); } foreach ($superglobals as $superglobal) { - foreach ($superglobal as $global) { + foreach ($superglobal as $global => $value) { unset($GLOBALS[$global]); } } ini_set('register_globals', false); } +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-fr/features/file-upload.xml?r1=1.31&r2=1.32&ty=u Index: phpdoc-fr/features/file-upload.xml diff -u phpdoc-fr/features/file-upload.xml:1.31 phpdoc-fr/features/file-upload.xml:1.32 --- phpdoc-fr/features/file-upload.xml:1.31 Sat Oct 23 13:43:13 2004 +++ phpdoc-fr/features/file-upload.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.31 $ --> -<!-- EN-Revision: 1.80 Maintainer: dams Status: ready --> +<!-- $Revision: 1.32 $ --> +<!-- EN-Revision: 1.81 Maintainer: dams Status: ready --> <chapter id="features.file-upload"> <title>Gestion des chargements de fichier</title> @@ -267,6 +267,15 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><constant>UPLOAD_ERR_NO_TMP_DIR</constant></term> + <listitem> + <para> + Value: 6. Un dossier temporaire est manquant. Introduit en &php; 4.3.10 et &php; + 5.0.3. + </para> + </listitem> + </varlistentry> </variablelist> </para> <note> http://cvs.php.net/diff.php/phpdoc-fr/features/http-auth.xml?r1=1.24&r2=1.25&ty=u Index: phpdoc-fr/features/http-auth.xml diff -u phpdoc-fr/features/http-auth.xml:1.24 phpdoc-fr/features/http-auth.xml:1.25 --- phpdoc-fr/features/http-auth.xml:1.24 Sun Aug 29 09:36:29 2004 +++ phpdoc-fr/features/http-auth.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.40 Maintainer: dams Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.41 Maintainer: dams Status: ready --> <chapter id="features.http-auth"> <title>Identification HTTP avec &php;</title> @@ -174,7 +174,7 @@ être laissés non actifs. </simpara> <simpara> - Une autre limitation si vous utilisez le module IIS (ISAPI), vous ne devez + Une autre limitation si vous utilisez le module IIS (ISAPI) et &php; 4, vous ne devez pas utiliser les variables <literal>PHP_AUTH_*</literal> mais à la place, la variable <literal>HTTP_AUTHORIZATION</literal> est disponible. Par exemple, utilisez le code suivant : <literal>list($user, $pw) = explode(':', http://cvs.php.net/diff.php/phpdoc-fr/install/unix/index.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/install/unix/index.xml diff -u phpdoc-fr/install/unix/index.xml:1.3 phpdoc-fr/install/unix/index.xml:1.4 --- phpdoc-fr/install/unix/index.xml:1.3 Fri Sep 3 04:22:22 2004 +++ phpdoc-fr/install/unix/index.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <chapter id="install.unix"> <title>Installation sous UNIX</title> <para> @@ -86,16 +86,19 @@ <link linkend="install.problems">section Problèmes</link>. </para> - &install.unix.gentoo; - &install.unix.hpux; - &install.unix.openbsd; - &install.unix.solaris; + <!-- spécifiques aux serveurs web --> &install.unix.apache1; &install.unix.apache2; &install.unix.caudium; &install.unix.fhttpd; &install.unix.sun; &install.unix.commandline; + <!-- spécifiques aux systèmes --> + &install.unix.hpux; + &install.unix.openbsd; + &install.unix.solaris; + <!-- spécifiques aux distributions --> + &install.unix.gentoo; </chapter> http://cvs.php.net/diff.php/phpdoc-fr/install/windows/manual.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/install/windows/manual.xml diff -u phpdoc-fr/install/windows/manual.xml:1.8 phpdoc-fr/install/windows/manual.xml:1.9 --- phpdoc-fr/install/windows/manual.xml:1.8 Thu Nov 4 16:00:52 2004 +++ phpdoc-fr/install/windows/manual.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <sect1 id="install.windows.manual"> <title>Installation manuelle sous Windows</title> @@ -391,7 +391,7 @@ <informalexample> <programlisting role="ini"> <![CDATA[ -doc_root = c:\inetpub // pour IIS/PWS +doc_root = c:\inetpub\wwwroot // pour IIS/PWS doc_root = c:\apache\htdocs // pour Apache ]]> http://cvs.php.net/diff.php/phpdoc-fr/language/oop5/exceptions.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/language/oop5/exceptions.xml diff -u phpdoc-fr/language/oop5/exceptions.xml:1.7 phpdoc-fr/language/oop5/exceptions.xml:1.8 --- phpdoc-fr/language/oop5/exceptions.xml:1.7 Sun Oct 24 05:36:56 2004 +++ phpdoc-fr/language/oop5/exceptions.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <sect1 id="language.oop5.exceptions"> <title>Exceptions</title> @@ -67,6 +67,7 @@ final function getMessage(); // message de l'exception final function getCode(); // code de l'exception final function getFile(); // nom du fichier source + final function getLine(); // ligne du fichier source final function getTrace(); // un tableau de backtrace() final function getTraceAsString(); // chaîne formattée de trace http://cvs.php.net/diff.php/phpdoc-fr/language/control-structures.xml?r1=1.61&r2=1.62&ty=u Index: phpdoc-fr/language/control-structures.xml diff -u phpdoc-fr/language/control-structures.xml:1.61 phpdoc-fr/language/control-structures.xml:1.62 --- phpdoc-fr/language/control-structures.xml:1.61 Sun Nov 14 17:24:16 2004 +++ phpdoc-fr/language/control-structures.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.61 $ --> -<!-- EN-Revision: 1.110 Maintainer: dams Status: ready --> +<!-- $Revision: 1.62 $ --> +<!-- EN-Revision: 1.111 Maintainer: dams Status: ready --> <chapter id="language.control-structures"> <title>Les structures de contrôle</title> @@ -1368,6 +1368,8 @@ <filename>b.php</filename> est d'abord recherché dans <filename class="directory">/www/</filename>, puis dans <filename class="directory">/www/include/</filename>. + Si le nom du fichier commence par <literal>../</literal>, il est cherché uniquement + dans l'<option>include_path</option> relatif au dossier courant d'exécution. </simpara> <simpara> Lorsqu'un fichier est inclus, le code le composant hérite de la http://cvs.php.net/diff.php/phpdoc-fr/language/oop.xml?r1=1.49&r2=1.50&ty=u Index: phpdoc-fr/language/oop.xml diff -u phpdoc-fr/language/oop.xml:1.49 phpdoc-fr/language/oop.xml:1.50 --- phpdoc-fr/language/oop.xml:1.49 Tue Sep 28 10:06:44 2004 +++ phpdoc-fr/language/oop.xml Wed Dec 8 16:19:11 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.49 $ --> -<!-- EN-Revision: 1.54 Maintainer: dams Status: ready --> +<!-- $Revision: 1.50 $ --> +<!-- EN-Revision: 1.56 Maintainer: dams Status: ready --> <chapter id="language.oop"> <title>Les classes et les objets (&php; 4)</title> @@ -20,17 +20,22 @@ var $items; // Ajout de $num articles de type $artnr au panier + function add_item ($artnr, $num) { $this->items[$artnr] += $num; } // Suppression de $num articles du type $artnr du panier - function remove_item ($artnr, $num) { + + function remove_item($artnr, $num) { if ($this->items[$artnr] > $num) { $this->items[$artnr] -= $num; - return TRUE; + return true; + } elseif ($this->items[$artnr] == $num) { + unset($this->items[$artnr]); + return true; } else { - return FALSE; + return false; } } } @@ -48,8 +53,10 @@ <warning> <simpara> Vous <emphasis>NE POUVEZ PAS</emphasis> couper la définition d'une - classe en plusieurs fichiers, on en plusieurs blocs &php;. La notation - suivante ne fonctionnera pas : + classe en plusieurs fichiers. De la même façon, vous <emphasis>NE POUVEZ + PAS</emphasis> couper la définition d'une classe en de multiples blocks, à moins + que la coupure ne soit à l'intérieure de la déclaration d'une méthode. Ce qui suit + ne fonctionnera pas : </simpara> <para> <informalexample> @@ -68,6 +75,26 @@ </programlisting> </informalexample> </para> + <simpara> + Néanmoins, ce qui suit est autorisé : + </simpara> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +class test { + function test() { + ?> + <?php + print 'Ok'; + } +} +?> +]]> + </programlisting> + </informalexample> + </para> </warning> <simpara> Les notes suivantes ne sont valables que pour &php; 4.
http://cvs.php.net/diff.php/phpdoc-fr/appendices/history.xml?r1=1.19&r2=1.20&ty=u Index: phpdoc-fr/appendices/history.xml diff -u phpdoc-fr/appendices/history.xml:1.19 phpdoc-fr/appendices/history.xml:1.20 --- phpdoc-fr/appendices/history.xml:1.19 Sun Jul 18 19:33:54 2004 +++ phpdoc-fr/appendices/history.xml Wed Dec 8 16:19:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.19 $ --> -<!-- EN-Revision: 1.24 Maintainer: dams Status: ready --> +<!-- $Revision: 1.20 $ --> +<!-- EN-Revision: 1.25 Maintainer: dams Status: ready --> <appendix id="history"> <title>Histoire de &php;</title> @@ -125,11 +125,6 @@ langage. </para> <para> - &php; 4 est actuellement la dernière version de &php;. Le projet de &php; 5.0 - a déjà débuté, afin d'améliorer le moteur Zend, et y intégrer des - capacités objets améliorées. - </para> - <para> Actuellement, &php; est utilisé par des centaines de milliers de développeurs, et plusieurs millions de sites web indiquent qu'ils sont configurés avec &php;, ce qui représente environs 20% des noms de domaines sur Internet. @@ -143,9 +138,11 @@ <sect2 id="history.php5"> <title>&php; 5</title> <para> - Le futur de &php; est essentiellement constitué par son coeur, le Zend Engine. - &php; 5 incluera la nouvelle version du Zend Engine 2.0. Pour plus d'informations - sur ce moteur, <ulink url="&url.zend.future;">voyez sa page web</ulink>. + &php; 5 est sorti en Juillet 2004 après un long développement et plusieurs + pré-versions. Il est régit par son moteur, le <literal>Zend Engine 2.0</literal> + avec un nouveau modèle et des dizianes de nouvelles fonctionnalités. + Pour plus d'informations concernant ce moteur, lisez + <ulink url="&url.zend.future;">cette page web</ulink>. </para> </sect2> </sect1> http://cvs.php.net/diff.php/phpdoc-fr/faq/misc.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/faq/misc.xml diff -u phpdoc-fr/faq/misc.xml:1.10 phpdoc-fr/faq/misc.xml:1.11 --- phpdoc-fr/faq/misc.xml:1.10 Tue Sep 14 09:16:01 2004 +++ phpdoc-fr/faq/misc.xml Wed Dec 8 16:19:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.20 Maintainer: gui Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.22 Maintainer: gui Status: ready --> <chapter id="faq.misc"> <title>Questions diverses</title> <titleabbrev>Questions diverses</titleabbrev> @@ -132,6 +132,7 @@ </para> <programlisting role="php"> <![CDATA[ +<?php // Emulation de register_globals à on if (!ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, @@ -144,6 +145,7 @@ } ini_set('register_globals', true); } +?> ]]> </programlisting> <para> @@ -151,6 +153,7 @@ </para> <programlisting role="php"> <![CDATA[ +<?php // Emulation de register_globals à off if (ini_get('register_globals')) { $superglobals = array($_SERVER, $_ENV, @@ -159,12 +162,13 @@ array_unshift($superglobals, $_SESSION); } foreach ($superglobals as $superglobal) { - foreach ($superglobal as $global) { + foreach ($superglobal as $global => $value) { unset($GLOBALS[$global]); } } ini_set('register_globals', false); } +?> ]]> </programlisting> </example> http://cvs.php.net/diff.php/phpdoc-fr/features/file-upload.xml?r1=1.31&r2=1.32&ty=u Index: phpdoc-fr/features/file-upload.xml diff -u phpdoc-fr/features/file-upload.xml:1.31 phpdoc-fr/features/file-upload.xml:1.32 --- phpdoc-fr/features/file-upload.xml:1.31 Sat Oct 23 13:43:13 2004 +++ phpdoc-fr/features/file-upload.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.31 $ --> -<!-- EN-Revision: 1.80 Maintainer: dams Status: ready --> +<!-- $Revision: 1.32 $ --> +<!-- EN-Revision: 1.81 Maintainer: dams Status: ready --> <chapter id="features.file-upload"> <title>Gestion des chargements de fichier</title> @@ -267,6 +267,15 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><constant>UPLOAD_ERR_NO_TMP_DIR</constant></term> + <listitem> + <para> + Value: 6. Un dossier temporaire est manquant. Introduit en &php; 4.3.10 et &php; + 5.0.3. + </para> + </listitem> + </varlistentry> </variablelist> </para> <note> http://cvs.php.net/diff.php/phpdoc-fr/features/http-auth.xml?r1=1.24&r2=1.25&ty=u Index: phpdoc-fr/features/http-auth.xml diff -u phpdoc-fr/features/http-auth.xml:1.24 phpdoc-fr/features/http-auth.xml:1.25 --- phpdoc-fr/features/http-auth.xml:1.24 Sun Aug 29 09:36:29 2004 +++ phpdoc-fr/features/http-auth.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> -<!-- EN-Revision: 1.40 Maintainer: dams Status: ready --> +<!-- $Revision: 1.25 $ --> +<!-- EN-Revision: 1.41 Maintainer: dams Status: ready --> <chapter id="features.http-auth"> <title>Identification HTTP avec &php;</title> @@ -174,7 +174,7 @@ être laissés non actifs. </simpara> <simpara> - Une autre limitation si vous utilisez le module IIS (ISAPI), vous ne devez + Une autre limitation si vous utilisez le module IIS (ISAPI) et &php; 4, vous ne devez pas utiliser les variables <literal>PHP_AUTH_*</literal> mais à la place, la variable <literal>HTTP_AUTHORIZATION</literal> est disponible. Par exemple, utilisez le code suivant : <literal>list($user, $pw) = explode(':', http://cvs.php.net/diff.php/phpdoc-fr/install/unix/index.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/install/unix/index.xml diff -u phpdoc-fr/install/unix/index.xml:1.3 phpdoc-fr/install/unix/index.xml:1.4 --- phpdoc-fr/install/unix/index.xml:1.3 Fri Sep 3 04:22:22 2004 +++ phpdoc-fr/install/unix/index.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <chapter id="install.unix"> <title>Installation sous UNIX</title> <para> @@ -86,16 +86,19 @@ <link linkend="install.problems">section Problèmes</link>. </para> - &install.unix.gentoo; - &install.unix.hpux; - &install.unix.openbsd; - &install.unix.solaris; + <!-- spécifiques aux serveurs web --> &install.unix.apache1; &install.unix.apache2; &install.unix.caudium; &install.unix.fhttpd; &install.unix.sun; &install.unix.commandline; + <!-- spécifiques aux systèmes --> + &install.unix.hpux; + &install.unix.openbsd; + &install.unix.solaris; + <!-- spécifiques aux distributions --> + &install.unix.gentoo; </chapter> http://cvs.php.net/diff.php/phpdoc-fr/install/windows/manual.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/install/windows/manual.xml diff -u phpdoc-fr/install/windows/manual.xml:1.8 phpdoc-fr/install/windows/manual.xml:1.9 --- phpdoc-fr/install/windows/manual.xml:1.8 Thu Nov 4 16:00:52 2004 +++ phpdoc-fr/install/windows/manual.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.15 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.16 Maintainer: yannick Status: ready --> <sect1 id="install.windows.manual"> <title>Installation manuelle sous Windows</title> @@ -391,7 +391,7 @@ <informalexample> <programlisting role="ini"> <![CDATA[ -doc_root = c:\inetpub // pour IIS/PWS +doc_root = c:\inetpub\wwwroot // pour IIS/PWS doc_root = c:\apache\htdocs // pour Apache ]]> http://cvs.php.net/diff.php/phpdoc-fr/language/oop5/exceptions.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/language/oop5/exceptions.xml diff -u phpdoc-fr/language/oop5/exceptions.xml:1.7 phpdoc-fr/language/oop5/exceptions.xml:1.8 --- phpdoc-fr/language/oop5/exceptions.xml:1.7 Sun Oct 24 05:36:56 2004 +++ phpdoc-fr/language/oop5/exceptions.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <sect1 id="language.oop5.exceptions"> <title>Exceptions</title> @@ -67,6 +67,7 @@ final function getMessage(); // message de l'exception final function getCode(); // code de l'exception final function getFile(); // nom du fichier source + final function getLine(); // ligne du fichier source final function getTrace(); // un tableau de backtrace() final function getTraceAsString(); // chaîne formattée de trace http://cvs.php.net/diff.php/phpdoc-fr/language/control-structures.xml?r1=1.61&r2=1.62&ty=u Index: phpdoc-fr/language/control-structures.xml diff -u phpdoc-fr/language/control-structures.xml:1.61 phpdoc-fr/language/control-structures.xml:1.62 --- phpdoc-fr/language/control-structures.xml:1.61 Sun Nov 14 17:24:16 2004 +++ phpdoc-fr/language/control-structures.xml Wed Dec 8 16:19:10 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.61 $ --> -<!-- EN-Revision: 1.110 Maintainer: dams Status: ready --> +<!-- $Revision: 1.62 $ --> +<!-- EN-Revision: 1.111 Maintainer: dams Status: ready --> <chapter id="language.control-structures"> <title>Les structures de contrôle</title> @@ -1368,6 +1368,8 @@ <filename>b.php</filename> est d'abord recherché dans <filename class="directory">/www/</filename>, puis dans <filename class="directory">/www/include/</filename>. + Si le nom du fichier commence par <literal>../</literal>, il est cherché uniquement + dans l'<option>include_path</option> relatif au dossier courant d'exécution. </simpara> <simpara> Lorsqu'un fichier est inclus, le code le composant hérite de la http://cvs.php.net/diff.php/phpdoc-fr/language/oop.xml?r1=1.49&r2=1.50&ty=u Index: phpdoc-fr/language/oop.xml diff -u phpdoc-fr/language/oop.xml:1.49 phpdoc-fr/language/oop.xml:1.50 --- phpdoc-fr/language/oop.xml:1.49 Tue Sep 28 10:06:44 2004 +++ phpdoc-fr/language/oop.xml Wed Dec 8 16:19:11 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.49 $ --> -<!-- EN-Revision: 1.54 Maintainer: dams Status: ready --> +<!-- $Revision: 1.50 $ --> +<!-- EN-Revision: 1.56 Maintainer: dams Status: ready --> <chapter id="language.oop"> <title>Les classes et les objets (&php; 4)</title> @@ -20,17 +20,22 @@ var $items; // Ajout de $num articles de type $artnr au panier + function add_item ($artnr, $num) { $this->items[$artnr] += $num; } // Suppression de $num articles du type $artnr du panier - function remove_item ($artnr, $num) { + + function remove_item($artnr, $num) { if ($this->items[$artnr] > $num) { $this->items[$artnr] -= $num; - return TRUE; + return true; + } elseif ($this->items[$artnr] == $num) { + unset($this->items[$artnr]); + return true; } else { - return FALSE; + return false; } } } @@ -48,8 +53,10 @@ <warning> <simpara> Vous <emphasis>NE POUVEZ PAS</emphasis> couper la définition d'une - classe en plusieurs fichiers, on en plusieurs blocs &php;. La notation - suivante ne fonctionnera pas : + classe en plusieurs fichiers. De la même façon, vous <emphasis>NE POUVEZ + PAS</emphasis> couper la définition d'une classe en de multiples blocks, à moins + que la coupure ne soit à l'intérieure de la déclaration d'une méthode. Ce qui suit + ne fonctionnera pas : </simpara> <para> <informalexample> @@ -68,6 +75,26 @@ </programlisting> </informalexample> </para> + <simpara> + Néanmoins, ce qui suit est autorisé : + </simpara> + <para> + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +class test { + function test() { + ?> + <?php + print 'Ok'; + } +} +?> +]]> + </programlisting> + </informalexample> + </para> </warning> <simpara> Les notes suivantes ne sont valables que pour &php; 4.