cvs: phpdoc-fr /reference/info reference.xml /reference/info/functions assert-options.xml assert.xml dl.xml extension-loaded.xml
get-defined-constants.xml get-extension-funcs.xml get-include-path.xml get-included-files.xml get-loaded-extensions.xml get-magic-quotes-gpc.xml
get-magic-quotes-runtime.xml get-required-files.xml getenv.xml getlastmod.xml getmyinode.xml getmypid.xml getmyuid.xml getopt.xml getrusage.xml
ini-alter.xml ini-get.xml ini-restore.xml ini-set.xml main.xml php-ini-scanned-files.xml php-logo-guid.xml php-sapi-name.xml php-uname.xml
phpcredits.xml phpinfo.xml phpversion.xml putenv.xml restore-include-path.xml set-include-path.xml set-magic-quotes-runtime.xml set-time-limit.xml
version-compare.xml zend-version.xml
| From: | Damien Seguy | Date: | Fri, 16 May 2003 11:35:51 +0000 |
| Subject: | cvs: phpdoc-fr /reference/info reference.xml /reference/info/functions assert-options.xml assert.xml dl.xml extension-loaded.xml get-defined-constants.xml get-extension-funcs.xml get-include-path.xml get-included-files.xml get-loaded-extensions.xml get-magic-quotes-gpc.xml get-magic-quotes-runtime.xml get-required-files.xml getenv.xml getlastmod.xml getmyinode.xml getmypid.xml getmyuid.xml getopt.xml getrusage.xml ini-alter.xml ini-get.xml ini-restore.xml ini-set.xml main.xml php-ini-scanned-files.xml php-logo-guid.xml php-sapi-name.xml php-uname.xml phpcredits.xml phpinfo.xml phpversion.xml putenv.xml restore-include-path.xml set-include-path.xml set-magic-quotes-runtime.xml set-time-limit.xml version-compare.xml zend-version.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-378@lists.php.net to get a copy of this message | ||
dams Fri May 16 07:35:51 2003 EDT
Added files:
/phpdoc-fr/reference/info/functions get-include-path.xml getopt.xml
main.xml
php-ini-scanned-files.xml
restore-include-path.xml
set-include-path.xml
Modified files:
/phpdoc-fr/reference/info reference.xml
/phpdoc-fr/reference/info/functions assert-options.xml assert.xml
dl.xml extension-loaded.xml
get-defined-constants.xml
get-extension-funcs.xml
get-included-files.xml
get-loaded-extensions.xml
get-magic-quotes-gpc.xml
get-magic-quotes-runtime.xml
get-required-files.xml
getenv.xml getlastmod.xml
getmyinode.xml getmypid.xml
getmyuid.xml getrusage.xml
ini-alter.xml ini-get.xml
ini-restore.xml ini-set.xml
php-logo-guid.xml
php-sapi-name.xml php-uname.xml
phpcredits.xml phpinfo.xml
phpversion.xml putenv.xml
set-magic-quotes-runtime.xml
set-time-limit.xml
version-compare.xml
zend-version.xml
Log:
adding new include_path fucntions
Index: phpdoc-fr/reference/info/reference.xml diff -u phpdoc-fr/reference/info/reference.xml:1.2 phpdoc-fr/reference/info/reference.xml:1.3 --- phpdoc-fr/reference/info/reference.xml:1.2 Mon Apr 15 20:54:01 2002 +++ phpdoc-fr/reference/info/reference.xml Fri May 16 07:35:51 2003 @@ -1,10 +1,43 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.info"> <title>Options PHP et informations</title> <titleabbrev>Options et informations PHP</titleabbrev> -&reference.info.functions; + <partintro> + <section id="info.intro"> + &reftitle.intro; + <para> + Ces fonctions vous donnent accès à de nombreuses informations + sur PHP lui-même, comme par exemple les configurations d'exécution, + les extensions chargées, les versions, etc... Vous trouverez aussi des + fonctions pour modifier des options. Et vous trouverez aussi la star + des fonctions PHP <function>phpinfo</function>. + </para> + </section> + + <section id="info.requirements"> + &reftitle.required; + &no.requirement; + </section> + + <section id="info.installation"> + &reftitle.install; + &no.install; + </section> + + &reference.info.ini; + + <section id="info.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.info.constants; + + </partintro> + + &reference.info.functions; </reference> <!-- Keep this comment at the end of the file Index: phpdoc-fr/reference/info/functions/assert-options.xml diff -u phpdoc-fr/reference/info/functions/assert-options.xml:1.2 phpdoc-fr/reference/info/functions/assert-options.xml:1.3 --- phpdoc-fr/reference/info/functions/assert-options.xml:1.2 Mon Apr 28 06:53:25 2003 +++ phpdoc-fr/reference/info/functions/assert-options.xml Fri May 16 07:35:51 2003 @@ -3,7 +3,7 @@ <!-- last change to 'assert-options' in en/ tree in rev 1.51 --> <refentry id="function.assert-options"> <refnamediv> - <refname>assert-options</refname> + <refname>assert_options</refname> <refpurpose>Fixe et lit différentes options d'assertions</refpurpose> </refnamediv> <refsect1> Index: phpdoc-fr/reference/info/functions/assert.xml diff -u phpdoc-fr/reference/info/functions/assert.xml:1.1 phpdoc-fr/reference/info/functions/assert.xml:1.2 --- phpdoc-fr/reference/info/functions/assert.xml:1.1 Sun Apr 14 20:31:09 2002 +++ phpdoc-fr/reference/info/functions/assert.xml Fri May 16 07:35:51 2003 @@ -8,10 +8,10 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>assert</methodname> - <methodparam><type>string|boolean</type><parameter>assertion</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>assert</methodname> + <methodparam><type>mixed</type><parameter>assertion</parameter></methodparam> + </methodsynopsis> <para> <function>assert</function> va vérifier l'assertion <parameter>assertion</parameter> et prendre la mesure appropriée @@ -44,6 +44,56 @@ Le comportement de <function>assert</function> peut être configuré par <function>assert_options</function> ou par .ini-settings. </para> + <para> + La fonction <function>assert_options</function> et la directive + ASSERT_CALLBACK permettent de configurer une fonction qui sera appelée + lorsque l'assertion échoue. + </para> + <para> + Les fonctions de callback pour <function>assert</function> sont + particuliérement utiles pour bâtir des suites de tests automatiques, + car elles vous permettent de capturer facileent le code passé à l'assertion, + ainsi que des informations sur le lieu et le moment de l'assertion. + Même si ces informations peuvent être appelés par d'autres méthodes, + les assertions sont plus rapides et plus faciles. + </para> + <para> + La fonction de callback doit accepter trois arguments. Le premier + contient le nom du fichier qui a vu l'assertion échouer. Le second + contient le numéro de ligne dans le fichier précédent. + Le troisième argument contient l'expression qui a échoué (si + il y en a : les valeurs litérales comme 1 ou "deux" ne seront + pas passées par cet argument). + </para> + <para> + <example> + <title>Gestion des assertions avec un gestionnaire personnalisé</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Activation des assertions et mise en mode discret. +assert_options (ASSERT_ACTIVE, 1); +assert_options (ASSERT_WARNING, 0); +assert_options (ASSERT_QUIET_EVAL, 1); + +// Cération d'un gestionnaire d'assertions +function mon_assert_handler ($file, $line, $code) { + echo "<hr>Assertion Failed: + File '$file'<br> + Line '$line'<br> + Code '$code'<br><hr>"; +} + +// Configuration de la méthode de callback +assert_options (ASSERT_CALLBACK, 'mon_assert_handler'); + +// Utilisation d'une assertion qui va échouer +assert ('mysql_query ("")'); +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/dl.xml diff -u phpdoc-fr/reference/info/functions/dl.xml:1.1 phpdoc-fr/reference/info/functions/dl.xml:1.2 --- phpdoc-fr/reference/info/functions/dl.xml:1.1 Sun Apr 14 20:31:09 2002 +++ phpdoc-fr/reference/info/functions/dl.xml Fri May 16 07:35:51 2003 @@ -14,13 +14,101 @@ </methodsynopsis> <para> <function>dl</function> charge l'extension PHP <parameter>library</parameter> - à la volée . - </para> - <para> - Voir aussi les directives de configuration - <link linkend="ini.extension-dir">extension_dir</link> et - <link linkend="ini.enable-dl">enable_dl</link>. - </para> + à la volée. Le paramètre <parameter>library</parameter> + est <emphasis>seulement</emphasis> le nom de fichier de l'extension, + qui dépend de votre plate-forme. Par exemple l'extension + <link linkend="ref.sockets">sockets</link> (si compilée comme module + partagé, et non par défaut), sera appelée <filename>sockets.so</filename> + sous Unix, et <filename>php_sockets.dll</filename> sous Windows. + </para> + <para> + &return.success;. Si la fonctionnalité de chargement de module n'est pas + disponible (voir Note), ou a été désactivé (soit en inactivant la directive + <literal>enable_dl</literal> ou en activant le &safemode; + dans le &php.ini;) une <constant>E_ERROR</constant> sera émise et + l'exécution du script sera stoppée. Si la fonction + <function>dl</function> échoue parce que la librairie n'a pu être + trouvée, <function>dl</function> retournera &false; et émettra un + message d'alerte. + </para> + <para> + Utilisez la fonction <function>extension_loaded</function> pour vérifier + qu'une extension est chargée ou non. Cette fonction travaille aussi bien + avec les extensions intégrées qu'avec les extensions dynamiquement + chargées (via le &php.ini;, ou via <function>dl</function>). + </para> + <para> + <example> + <title>Exemple avec <function>dl</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + if (!extension_loaded('gd')) { + if (!dl('gd.so')) { + exit; + } + } +]]> + </programlisting> + </example> + </para> + <para> + Le dossier où sont rangées les extensions dépend de votre plate forme : + </para> + <para> + Windows - Si il n'est pas explicitement indiqué dans le fichier &php.ini;, + le dossier des extensions est <filename>c:\php4\extensions\</filename>. + </para> + <para> + Unix - Si il n'est pas explicitement indiqué dans le fichier &php.ini;, + le dossier des extensions dépend de + <itemizedlist> + <listitem> + <simpara> + Si &php; a été compilé avec l'option <literal>--enable-debug</literal> + </simpara> + </listitem> + <listitem> + <simpara> + Si PHP a été compilé avec le support (expérimental) de ZTS (Zend Thread Safety) + </simpara> + </listitem> + <listitem> + <simpara> + de la constante interne <literal>ZEND_MODULE_API_NO</literal> + (version interne de module d'API Zend, qui est en réalité la date + à laquelle une modification importante de l'API a été faite, comme + par exemple <literal>20010901</literal>) + </simpara> + </listitem> + </itemizedlist> + En prenant ces paramètres en considération, le dossier des extensions + vaut alors + <literal><php-install-directory>/lib/php/extension/<debug-or-not>-<zts-or-not>-ZEND_MODULE_API_NO</literal>, + i.e. + <filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> + ou + <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. + </para> + <note> + <para> + <function>dl</function> <emphasis>n'est pas</emphasis> supporté sur les + serveur web multi-threadés. Utilisez la directive <literal>extensions</literal> + dans votre fichier &php.ini; lorsque vous vous trouvez dans un + environnement de ce type. Cependant, les versions <literal>CGI</literal> et + <literal>CLI</literal> <emphasis role="strong">ne sont pas</emphasis>! + </para> + </note> + <note> + <para> + <function>dl</function> est sensible à la casse sur les plate-formes Unix. + </para> + </note> + <para> + Voir aussi + <link linkend="ini.extension">directives de chargement d'extensions</link> et + <function>extension_loaded</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/extension-loaded.xml diff -u phpdoc-fr/reference/info/functions/extension-loaded.xml:1.1 phpdoc-fr/reference/info/functions/extension-loaded.xml:1.2 --- phpdoc-fr/reference/info/functions/extension-loaded.xml:1.1 Sun Apr 14 20:31:10 2002 +++ phpdoc-fr/reference/info/functions/extension-loaded.xml Fri May 16 07:35:51 2003 @@ -5,29 +5,77 @@ <refnamediv> <refname>extension_loaded</refname> <refpurpose> - Détermine si une extension est chargée ou non. + Détermine si une extension est chargée ou non </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>extension_loaded</methodname> + <type>bool</type><methodname>extension_loaded</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <simpara> <function>extension_loaded</function> retourne &true; si l'extension <parameter>name</parameter> a été chargée. - Vous pouvez voir les différents noms des extensions, en - utilisant la fonction <function>phpinfo</function>. </simpara> - <para> - Voir aussi - <function>phpinfo</function>. + <para> + <example> + <title>Exemple avec <function>extension_loaded</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +if (!extension_loaded('gd')) { + if (!dl('gd.so')) { + exit; + } +} +?> +]]> + </programlisting> + </example> + </para> + <para> + Vous pouvez connaître le nom des différentes extensions + php en utilisant la fonction <function>phpinfo</function> ou bien + si vous utilisez la version <literal>CGI</literal> ou <literal>CLI</literal> + de &php;, vous pouvez utiliser l'option de ligne de commande + <literal>-m</literal> pour lister toutes les extensions disponibles : + <screen> +<![CDATA[ +$ php -m +[PHP Modules] +xml +tokenizer +standard +sockets +session +posix +pcre +overload +mysql +mbstring +ctype + +[Zend Modules] +]]> + </screen> + </para> <note> <para> - Cette fonction a été ajoutée dans 3.0.10. + <function>extension_loaded</function> utilisent le nom interne de l'extension + pour vérifier si une extension est disponible ou pas. La plus part + des extensions ont des noms internes écrits en minuscules, mais il peut + arriver que des extensions aient des noms en majuscules. Soyez donc + prévenus que la comparaison effectuée par cette fonction + est <emphasis role="strong">sensible à la casse</emphasis> ! </para> </note> + <para> + Voir aussi + <function>get_loaded_extensions</function>, + <function>get_extension_funcs</function>, + <function>phpinfo</function> et + <function>dl</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-defined-constants.xml diff -u phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.1 phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.2 --- phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.1 Sun Apr 14 20:31:10 2002 +++ phpdoc-fr/reference/info/functions/get-defined-constants.xml Fri May 16 07:35:51 2003 @@ -24,36 +24,42 @@ Par exemple : <informalexample> <programlisting> -<?php +<![CDATA[ +<?php print_r(get_defined_constants()); -?> +?> +]]> </programlisting> </informalexample> affichera <informalexample> <programlisting> +<![CDATA[ Array ( - [E_ERROR] => 1 - [E_WARNING] => 2 - [E_PARSE] => 4 - [E_NOTICE] => 8 - [E_CORE_ERROR] => 16 - [E_CORE_WARNING] => 32 - [E_COMPILE_ERROR] => 64 - [E_COMPILE_WARNING] => 128 - [E_USER_ERROR] => 256 - [E_USER_WARNING] => 512 - [E_USER_NOTICE] => 1024 - [E_ALL] => 2047 - [TRUE] => 1 + [E_ERROR] => 1 + [E_WARNING] => 2 + [E_PARSE] => 4 + [E_NOTICE] => 8 + [E_CORE_ERROR] => 16 + [E_CORE_WARNING] => 32 + [E_COMPILE_ERROR] => 64 + [E_COMPILE_WARNING] => 128 + [E_USER_ERROR] => 256 + [E_USER_WARNING] => 512 + [E_USER_NOTICE] => 1024 + [E_ALL] => 2047 + [TRUE] => 1 ) +]]> </programlisting> </informalexample> </para> <para> Voir aussi - <function>get_loaded_extensions</function>. + <function>get_loaded_extensions</function>, + <function>get_defined_functions</function> et + <function>get_defined_vars</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-extension-funcs.xml diff -u phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.1 phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.2 --- phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-extension-funcs.xml Fri May 16 07:35:51 2003 @@ -4,9 +4,7 @@ <refentry id="function.get-extension-funcs"> <refnamediv> <refname>get_extension_funcs</refname> - <refpurpose> - Liste les fonctions d'une extension - </refpurpose> + <refpurpose>Liste les fonctions d'une extension</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,10 +20,12 @@ Par exemple, les lignes suivantes : <informalexample> <programlisting role="php"> -<?php -print_r(get_extension_funcs("xml")); -print_r(get_extension_funcs("gd")); -?> +<![CDATA[ +<?php + print_r(get_extension_funcs("xml")); + print_r(get_extension_funcs("gd")); +?> +]]> </programlisting> </informalexample> vont afficher la liste des fonctions disponibles avec les modules Index: phpdoc-fr/reference/info/functions/get-included-files.xml diff -u phpdoc-fr/reference/info/functions/get-included-files.xml:1.1 phpdoc-fr/reference/info/functions/get-included-files.xml:1.2 --- phpdoc-fr/reference/info/functions/get-included-files.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-included-files.xml Fri May 16 07:35:51 2003 @@ -26,29 +26,33 @@ <example> <title>Affichage des fichiers inclus et requis</title> <programlisting> -<?php -require_once("local.php"); -require_once("../inc/global.php"); -for ($i=1; $i<5; $i++) - include "util".$i.".php"; - echo "Fichiers appelés avec required_once/included_once\n"; - print_r(get_required_files()); -?> +<![CDATA[ +<?php + require_once("local.php"); + require_once("../inc/global.php"); + for ($i=1; $i<5; $i++) + include "util".$i.".php"; + echo "Fichiers appelés avec required_once/included_once\n"; + print_r(get_required_files()); +?> +]]> </programlisting> </example> va afficher : <informalexample> <programlisting> +<![CDATA[ Fichiers appelés avec required_once/included_once Array ( - [0] => local.php - [1] => /full/path/to/inc/global.php - [2] => util1.php - [3] => util2.php - [4] => util3.php - [5] => util4.php + [0] => local.php + [1] => /full/path/to/inc/global.php + [2] => util1.php + [3] => util2.php + [4] => util3.php + [5] => util4.php ) +]]> </programlisting> </informalexample> </para> @@ -64,8 +68,10 @@ </note> <para> Voir aussi - <function>require_once</function>, - <function>include_once</function> et + <function>include</function>, + <function>include_once</function>, + <function>require</function>, + <function>require_once</function>, et <function>get_required_files</function>. </para> </refsect1> Index: phpdoc-fr/reference/info/functions/get-loaded-extensions.xml diff -u phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.1 phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.2 --- phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-loaded-extensions.xml Fri May 16 07:35:51 2003 @@ -23,37 +23,44 @@ Par exemple, la ligne ci-dessous <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php print_r(get_loaded_extensions()); -?> +?> +]]> </programlisting> </informalexample> affichera la liste suivante : <informalexample> <literallayout> <computeroutput> +<![CDATA[ Array ( - [0] => xml - [1] => wddx - [2] => standard - [3] => session - [4] => posix - [5] => pgsql - [6] => pcre - [7] => gd - [8] => ftp - [9] => db - [10] => Calendar - [11] => bcmath + [0] => xml + [1] => wddx + [2] => standard + [3] => session + [4] => posix + [5] => pgsql + [6] => pcre + [7] => gd + [8] => ftp + [9] => db + [10] => Calendar + [11] => bcmath ) +]]> </computeroutput> </literallayout> </informalexample> </para> <para> Voir aussi - <function>get_extension_funcs</function>. + <function>get_extension_funcs</function>, + <function>extension_loaded</function>, + <function>dl</function> et + <function>phpinfo</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml diff -u phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.1 phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.2 --- phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml Fri May 16 07:35:51 2003 @@ -4,26 +4,41 @@ <refentry id="function.get-magic-quotes-gpc"> <refnamediv> <refname>get_magic_quotes_gpc</refname> - <refpurpose> - Retourne la configuration actuelle de l'option magic_quotes_gpc. - </refpurpose> + <refpurpose>Retourne la configuration actuelle de l'option magic_quotes_gpc</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>get_magic_quotes_gpc</methodname> - <void/> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>get_magic_quotes_gpc</methodname> + <void/> + </methodsynopsis> <simpara> <function>get_magic_quotes_gpc</function> retourne la configuration actuelle de l'option <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> (0 pour l'option désactivée, 1 pour l'option activée). </simpara> - <simpara> - Voir aussi - <function>get_magic_quotes_runtime</function> et - <function>set_magic_quotes_runtime</function>. - </simpara> + <note> + <para> + Si la directive <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link> + est activée, elle remplacera complètement <parameter>magic_quotes_gpc</parameter>. + Ce qui fait que même si <function>get_magic_quotes</function> retourne + &true; les guillemets doubles, les anti-slashes ou les caractères + NULL ne seront pas protégés. Seul les guillemets simples le seront. Dans + ce cas, ils ressembleront à <emphasis>''</emphasis>. + </para> + </note> + <simpara> + Gardez en tête que + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> ne peut être + configuré durant l'exécution du script. + </simpara> + <simpara> + Voir aussi + <function>addslashes</function>, + <function>stripslashes</function>, + <function>get_magic_quotes_runtime</function> et + <function>ini_get</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml diff -u phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.1 phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.2 --- phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml Fri May 16 07:35:51 2003 @@ -5,15 +5,15 @@ <refnamediv> <refname>get_magic_quotes_runtime</refname> <refpurpose> - Retourne la configuration actuelle de l'option magic_quotes_runtime. + Retourne la configuration actuelle de l'option magic_quotes_runtime </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>get_magic_quotes_runtime</methodname> - <void/> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>get_magic_quotes_runtime</methodname> + <void/> + </methodsynopsis> <simpara> <function>get_magic_quotes_runtime</function> retourne la configuration actuelle de l'option Index: phpdoc-fr/reference/info/functions/get-required-files.xml diff -u phpdoc-fr/reference/info/functions/get-required-files.xml:1.1 phpdoc-fr/reference/info/functions/get-required-files.xml:1.2 --- phpdoc-fr/reference/info/functions/get-required-files.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-required-files.xml Fri May 16 07:35:51 2003 @@ -5,44 +5,14 @@ <refnamediv> <refname>get_required_files</refname> <refpurpose> - Retourne un tableau avec les noms des fichiers qui sont requis - et inclus dans un script + Alias de <function>get_included_files</function> </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>get_required_files</methodname> - <void/> - </methodsynopsis> - <para> - <function>get_required_files</function> retourne un tableau - contenant les noms de tous les fichiers qui ont été - chargés dans un script avec la fonction - <function>require_once</function> ou <function>include_once</function>. - Les index de ces tableaux sont les noms des fichiers - utilisés dans les fonctions <function>require_once</function> - ou <function>include_once</function>. - </para> - <note> <para> - En PHP 4.0.1pl2, cette fonction supposait que - <varname>required_once</varname> utilisait l'extension - ".php" : les autres extensions ne fonctionnaient pas. - Par ailleurs, dans cette version, le tableau retourné était - un tableau associatif, et cette fonction n'était pas - un alias de <function>get_included_files</function> - </para> - <para> - Depuis PHP 4.0.4, cette fonction est un alias de - <function>get_included_files</function> - </para> - </note> - <para> - Voir aussi - <function>require_once</function>, - <function>include_once</function> et - <function>get_included_files</function> + <function>get_required_files</function> est un &alias; de + <function>get_included_files</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getenv.xml diff -u phpdoc-fr/reference/info/functions/getenv.xml:1.1 phpdoc-fr/reference/info/functions/getenv.xml:1.2 --- phpdoc-fr/reference/info/functions/getenv.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getenv.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getenv"> <refnamediv> <refname>getenv</refname> - <refpurpose>Retourne la valeur de la variable d'environnement.</refpurpose> + <refpurpose>Retourne la valeur d'une variable d'environnement</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -18,9 +18,11 @@ ou &false; en cas d'erreur. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $ip = getenv("REMOTE_ADDR"); // retourne l'adresse IP de l'utilisateur -?> +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/info/functions/getlastmod.xml diff -u phpdoc-fr/reference/info/functions/getlastmod.xml:1.1 phpdoc-fr/reference/info/functions/getlastmod.xml:1.2 --- phpdoc-fr/reference/info/functions/getlastmod.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getlastmod.xml Fri May 16 07:35:51 2003 @@ -5,7 +5,7 @@ <refnamediv> <refname>getlastmod</refname> <refpurpose> - Retourne la date de dernière modification de la page. + Retourne la date de dernière modification de la page </refpurpose> </refnamediv> <refsect1> @@ -24,20 +24,24 @@ <example> <title>Exemple avec <function>getlastmod</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche 'Dernière modification: March 04 1998 20:43:59.' - echo "Dernière modification: ".date( "F d Y H:i:s.", getlastmod() ); -?> + echo "Dernière modification : ".date( "F d Y H:i:s.", getlastmod() ); +?> +]]> </programlisting> </example> </para> <para> Voir aussi - <function>date</function>, - <function>getmyuid</function>, - <function>get_current_user</function>, - <function>getmyinode</function> et - <function>getmypid</function>. + <function>date</function>, + <function>getmyuid</function>, + <function>getmygid</function>, + <function>get_current_user</function>, + <function>getmyinode</function>, + <function>getmypid</function> et + <function>filemtime</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getmyinode.xml diff -u phpdoc-fr/reference/info/functions/getmyinode.xml:1.1 phpdoc-fr/reference/info/functions/getmyinode.xml:1.2 --- phpdoc-fr/reference/info/functions/getmyinode.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmyinode.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmyinode"> <refnamediv> <refname>getmyinode</refname> - <refpurpose>Retourne l'inode du script.</refpurpose> + <refpurpose>Retourne l'inode du script</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -18,16 +18,13 @@ </para> <para> Voir aussi - <function>getmyuid</function>, - <function>get_current_user</function>, - <function>getmypid</function> et - <function>getlastmod</function>. + <function>getmygid</function>, + <function>getmyuid</function>, + <function>get_current_user</function>, + <function>getmypid</function> et + <function>getlastmod</function>. </para> - <note> - <simpara> - <function>getmyinode</function> est inopérante sur les systèmes Windows. - </simpara> - </note> + ¬e.no-windows; </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getmypid.xml diff -u phpdoc-fr/reference/info/functions/getmypid.xml:1.1 phpdoc-fr/reference/info/functions/getmypid.xml:1.2 --- phpdoc-fr/reference/info/functions/getmypid.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmypid.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmypid"> <refnamediv> <refname>getmypid</refname> - <refpurpose>Retourne le numéro de processus courant.</refpurpose> + <refpurpose>Retourne le numéro de processus courant</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,11 +16,6 @@ <function>getmypid</function> retourne le numéro de processus actuel ou &false; en cas d'erreur. </para> - <para> - Il est à noter que si vous utilisez PHP comme module Apache, - il n'est pas garanti que deux invocations distinctes de la fonction - donnent des résultats différents. - </para> <warning> <para> Les identifiants de processus ne sont pas uniques, @@ -31,6 +26,7 @@ </warning> <para> Voir aussi + <function>getmygid</function>, <function>getmyuid</function>, <function>get_current_user</function>, <function>getmyinode</function> et Index: phpdoc-fr/reference/info/functions/getmyuid.xml diff -u phpdoc-fr/reference/info/functions/getmyuid.xml:1.1 phpdoc-fr/reference/info/functions/getmyuid.xml:1.2 --- phpdoc-fr/reference/info/functions/getmyuid.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmyuid.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmyuid"> <refnamediv> <refname>getmyuid</refname> - <refpurpose>Retourne l'UID du propriétaire du script actuel.</refpurpose> + <refpurpose>Retourne l'UID du propriétaire du script actuel</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc-fr/reference/info/functions/getrusage.xml diff -u phpdoc-fr/reference/info/functions/getrusage.xml:1.1 phpdoc-fr/reference/info/functions/getrusage.xml:1.2 --- phpdoc-fr/reference/info/functions/getrusage.xml:1.1 Sun Apr 14 20:31:14 2002 +++ phpdoc-fr/reference/info/functions/getrusage.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getrusage"> <refnamediv> <refname>getrusage</refname> - <refpurpose>Retourne le niveau d'utilisation des ressources.</refpurpose> + <refpurpose>Retourne le niveau d'utilisation des ressources</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -25,17 +25,20 @@ <example> <title>Exemple getrusage</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $dat = getrusage(); echo $dat["ru_nswap"]; // Taille de la mémoire swap echo $dat["ru_majflt"]; // Nombre de page mémoires utilisées echo $dat["ru_utime.tv_sec"]; // Temps utilisateur (en secondes) echo $dat["ru_utime.tv_usec"];// Temps utilisateur (en microsecondes) -?> +?> +]]> </programlisting> </example> Consultez le manuel "man" pour plus de détails. </para> + ¬e.no-windows; </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-alter.xml diff -u phpdoc-fr/reference/info/functions/ini-alter.xml:1.1 phpdoc-fr/reference/info/functions/ini-alter.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-alter.xml:1.1 Sun Apr 14 20:31:15 2002 +++ phpdoc-fr/reference/info/functions/ini-alter.xml Fri May 16 07:35:51 2003 @@ -4,34 +4,15 @@ <refentry id="function.ini-alter"> <refnamediv> <refname>ini_alter</refname> - <refpurpose>Change la valeur d'une option de configuration</refpurpose> + <refpurpose>Alias de <function>ini_set</function></refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>ini_alter</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> - </methodsynopsis> - <para> - <function>ini_alter</function> change la valeur de l'option de - configuration <parameter>varname</parameter> - et lui donne la valeur de <parameter>newvalue</parameter>. - <function>ini_alter</function> retourne &false; - en cas d'échec, et la valeur précédente en - cas de succès. - </para> <note> <para> - <function>ini_alter</function> est un alias de <function>ini_set</function> + <function>ini_alter</function> est un &alias; de <function>ini_set</function>. </para> </note> - <para> - Voir aussi - <function>ini_get</function>, - <function>ini_restore</function> et - <function>ini_set</function> - </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-get.xml diff -u phpdoc-fr/reference/info/functions/ini-get.xml:1.1 phpdoc-fr/reference/info/functions/ini-get.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-get.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-get.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.ini-get"> <refnamediv> <refname>ini_get</refname> - <refpurpose>Lit la valeur d'une option de configuration.</refpurpose> + <refpurpose>Lit la valeur d'une option de configuration</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -17,11 +17,62 @@ configuration <parameter>varname</parameter> en cas de succès, et &false;. </para> + <note> + <title>Lecture de valeurs booléennes</title> + <para> + Une directive de configuration ayant la valeur de <literal>off</literal> + sera retournée sous la forme d'une chaîne vide, tandis qu'une directive + de configuration ayant une valeur de <literal>on</literal> sera retournée + sous la forme de la chaîne <literal>"1"</literal>. + </para> + </note> + <note> + <title>Lors de la lecture des tailles de mémoire</title> + <para> + Plusieurs directives traitant de taille mémoire, comme + <literal>upload_max_filesize</literal> sont stockées dans le fichier &php.ini; + avec une notation courte. <function>ini_get</function> retourne la chaîne + exacte stockée dans le fichier &php.ini; et <emphasis>NON PAS</emphasis> + son équivalent entier. Appliquer des opérations arithmétiques classiques + sur ces valeurs ne conduira à rien de bon. + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +/* +Notre fichier php.ini contient les directives suivantes : + +display_errors = On +register_globals = Off +post_max_size = 8M +*/ + +print 'display_errors = ' . ini_get('display_errors') . "\n"; +print 'register_globals = ' . ini_get('register_globals') . "\n"; +print 'post_max_size = ' . ini_get('post_max_size') . "\n"; +print 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n"; + +/* +Ce script va afficher : + +display_errors = 1 +register_globals = +post_max_size = 8M +post_max_size+1 = 9 +*/ +?> +]]> + </programlisting> + </informalexample> + </para> + </note> <para> Voir aussi + <function>get_cfg_var</function>, + <function>ini_get_all</function>, <function>ini_alter</function>, <function>ini_restore</function> et - <function>ini_set</function> + <function>ini_set</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-restore.xml diff -u phpdoc-fr/reference/info/functions/ini-restore.xml:1.1 phpdoc-fr/reference/info/functions/ini-restore.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-restore.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-restore.xml Fri May 16 07:35:51 2003 @@ -19,8 +19,9 @@ <para> Voir aussi <function>ini_alter</function>, - <function>ini_get</function> et - <function>ini_set</function> + <function>ini_get</function>, + <function>ini_get_all</function> et + <function>ini_set</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-set.xml diff -u phpdoc-fr/reference/info/functions/ini-set.xml:1.1 phpdoc-fr/reference/info/functions/ini-set.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-set.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-set.xml Fri May 16 07:35:51 2003 @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/info.xml, last change in rev 1.16 --> -<!-- last change to 'ini-set' in en/ tree in rev 1.23 --> - <refentry id="function.ini-set"> - <refnamediv> - <refname>ini_set</refname> - <refpurpose>Change la valeur d'une option de configuration</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>ini_set</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> - </methodsynopsis> - <para> - <function>ini_set</function> change la valeur de l'option de +<!-- $Revision: 1.2 $ --> +<!-- splitted from ./en/functions/info.xml, last change in rev 1.23 --> + <refentry id="function.ini-set"> + <refnamediv> + <refname>ini_set</refname> + <refpurpose>Modifie la valeur d'une option de configuration</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>string</type><methodname>ini_set</methodname> + <methodparam><type>string</type><parameter>varname</parameter></methodparam> + <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> + </methodsynopsis> + <para> + <function>ini_set</function> change la valeur de l'option de configuration <parameter>varname</parameter> et lui donne la valeur de <parameter>newvalue</parameter>. <function>ini_set</function> retourne &false; @@ -29,361 +29,1242 @@ modifiées avec <function>ini_set</function>. Ci-dessous, vous trouverez une liste de toutes les options (disponibles en PHP 4.0.5-dev), et si elles peuvent être modifiées. - <table> - <title>Options de configuration</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Nom</entry> - <entry>Par défaut</entry> - <entry>Modifiable</entry> - </row> - </thead> - <tbody> - <row> - <entry>define_syslog_variables</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>highlight.bg</entry> - <entry>HL_BG_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.comment</entry> - <entry>HL_COMMENT_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.default</entry> - <entry>HL_DEFAULT_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.html</entry> - <entry>HL_HTML_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.keyword</entry> - <entry>HL_KEYWORD_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.string</entry> - <entry>HL_STRING_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>allow_call_time_pass_reference</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>asp_tags</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>display_errors</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>display_startup_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>enable_dl</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>error_append_string</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>error_prepend_string</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>expose_php</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>html_errors</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>ignore_user_abort</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>implicit_flush</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>log_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>magic_quotes_gpc</entry> - <entry>"1"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>magic_quotes_runtime</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>magic_quotes_sybase</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>output_buffering</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>output_handler</entry> - <entry>NULL</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_argc_argv</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>register_globals</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>short_open_tag</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>sql.safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>track_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>y2k_compliance</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>arg_separator</entry> - <entry>"&"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_append_file</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_prepend_file</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>doc_root</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>default_charset</entry> - <entry>SAPI_DEFAULT_CHARSET</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>default_mimetype</entry> - <entry>SAPI_DEFAULT_MIMETYPE</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>error_log</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>extension_dir</entry> - <entry>PHP_EXTENSION_DIR</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>gpc_order</entry> - <entry>"GPC"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>include_path</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>max_execution_time</entry> - <entry>"30"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>open_basedir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>safe_mode_exec_dir</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_max_filesize</entry> - <entry>"2M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>file_uploads</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>post_max_size</entry> - <entry>"8M"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_tmp_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>user_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>variables_order</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>SMTP</entry> - <entry>"localhost"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>browscap</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>error_reporting</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>memory_limit</entry> - <entry>"8M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>precision</entry> - <entry>"14"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>sendmail_from</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>sendmail_path</entry> - <entry>DEFAULT_SENDMAIL_PATH</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>disable_functions</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>allow_url_fopen</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - <table> + </para> + <para> + <table> + <title>Option de configuration</title> + <tgroup cols="3"> + <thead> + &ini.table.top; + </thead> + <tbody> + <row> + <entry>com.allow_dcom</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_typelib</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_verbose</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_casesensitive</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.typelib_file</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>crack.default_dictionary</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>exif.encode_unicode</entry> + <entry>"ISO-8859-15"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_unicode_motorola</entry> + <entry>"UCS-2BE"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_unicode_intel</entry> + <entry>"UCS-2LE"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.encode_jis</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_jis_motorola</entry> + <entry>"JIS"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_jis_intel</entry> + <entry>"JIS"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>fbsql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.generate_warnings</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.autocommit</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_links</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_connections</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_results</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.batchSize</entry> + <entry>"1000"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_user</entry> + <entry>"_SYSTEM"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_password</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_database</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_database_password</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hwapi.allow_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hyerwave.allow_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hyperwave.default_port</entry> + <entry>"418"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.input_encoding</entry> + <entry>ICONV_INPUT_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.output_encoding</entry> + <entry>ICONV_OUTPUT_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.internal_encoding</entry> + <entry>ICONV_INTERNAL_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.blobinfile</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.textasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.byteasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.charasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.nullformat</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.default_database</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.timestampformat</entry> + <entry>"%m/%d/%Y%H:%M:%S"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.dateformat</entry> + <entry>"%m/%d/%Y"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.timeformat</entry> + <entry>"%H:%M:%S"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.class.path</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.home</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library.path</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library</entry> + <entry>JAVALIB</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ldap.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mbstring.detect_order</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.http_input</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.http_output</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.internal_encoding</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.substitute_character</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.func_overload</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mcrypt.algorithms_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mcrypt.modes_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mime_magic.magicfile</entry> + <entry>"/usr/share/misc/magic.mime"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_procs</entry> + <entry>"25"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.min_error_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.min_message_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.compatability_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.connect_timeout</entry> + <entry>"5"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.timeout</entry> + <entry>"60"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.textsize</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.textlimit</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.batchsize</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.datetimeconvert</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_port</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_socket</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ncurses.value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ncurses.string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.default_db</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.default_pw</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.defaultlrl</entry> + <entry>"4096"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.defaultbinmode</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.check_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pfpro.defaulthost</entry> + <entry>"test.signio.com"</entry> + <entry></entry> + </row> + <row> + <entry>pfpro.defaulthost</entry> + <entry>"test-payflow.verisign.com"</entry> + <entry></entry> + </row> + <row> + <entry>pfpro.defaultport</entry> + <entry>"443"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.defaulttimeout</entry> + <entry>"30"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxyaddress</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxyport</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxylogon</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxypassword</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pgsql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.auto_reset_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.ignore_notice</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pgsql.log_notice</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.save_path</entry> + <entry>"/tmp"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.name</entry> + <entry>"PHPSESSID"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.save_handler</entry> + <entry>"files"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.auto_start</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.gc_probability</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.gc_maxlifetime</entry> + <entry>"1440"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.serialize_handler</entry> + <entry>"php"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_lifetime</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_path</entry> + <entry>"/"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_domain</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_secure</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_cookies</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_only_cookies</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.referer_check</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.entropy_file</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.entropy_length</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cache_limiter</entry> + <entry>"nocache"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cache_expire</entry> + <entry>"180"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_trans_sid</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>session.encode_sources</entry> + <entry>"globals,track"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extname.global_value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extname.global_string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.active</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.bail</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.warning</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.callback</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.quiet_eval</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>safe_mode_protected_env_vars</entry> + <entry>SAFE_MODE_PROTECTED_ENV_VARS</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_allowed_env_vars</entry> + <entry>SAFE_MODE_ALLOWED_ENV_VARS</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>url_rewriter.tags</entry> + <entry>"a=href,area=href,frame=src,form=fakeentry"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.min_server_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.min_client_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.hostname</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>tokenizer.global_value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>tokenizer.global_string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>vpopmail.directory</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>zlib.output_compression</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>zlib.output_compression_level</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>define_syslog_variables</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.bg</entry> + <entry>HL_BG_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.comment</entry> + <entry>HL_COMMENT_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.default</entry> + <entry>HL_DEFAULT_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.html</entry> + <entry>HL_HTML_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.keyword</entry> + <entry>HL_KEYWORD_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.string</entry> + <entry>HL_STRING_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>allow_call_time_pass_reference</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>asp_tags</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>display_errors</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>display_startup_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>enable_dl</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>expose_php</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>html_errors</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>xmlrpc_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>xmlrpc_error_number</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_user_abort</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>implicit_flush</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>log_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>log_errors_max_len</entry> + <entry>"1024"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_repeated_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_repeated_source</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>magic_quotes_gpc</entry> + <entry>"1"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>magic_quotes_runtime</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>magic_quotes_sybase</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>output_buffering</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>output_handler</entry> + <entry>NULL</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>register_argc_argv</entry> + <entry>"1"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>register_globals</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_include_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_gid</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>short_open_tag</entry> + <entry>DEFAULT_SHORT_OPEN_TAG</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>sql.safe_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>track_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>y2k_compliance</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>unserialize_callback_func</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>arg_separator.output</entry> + <entry>"&"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>arg_separator.input</entry> + <entry>"&"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>auto_append_file</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>auto_prepend_file</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>doc_root</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>default_charset</entry> + <entry>SAPI_DEFAULT_CHARSET</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>default_mimetype</entry> + <entry>SAPI_DEFAULT_MIMETYPE</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_log</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extension_dir</entry> + <entry>PHP_EXTENSION_DIR</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>gpc_order</entry> + <entry>"GPC"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>include_path</entry> + <entry>PHP_INCLUDE_PATH</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>max_execution_time</entry> + <entry>"30"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>open_basedir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_exec_dir</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>upload_max_filesize</entry> + <entry>"2M"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>file_uploads</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>post_max_size</entry> + <entry>"8M"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>upload_tmp_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>user_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>variables_order</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_append_string</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_prepend_string</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>SMTP</entry> + <entry>"localhost"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>smtp_port</entry> + <entry>25</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>browscap</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>error_reporting</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>memory_limit</entry> + <entry>"8M"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>precision</entry> + <entry>"14"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sendmail_from</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sendmail_path</entry> + <entry>DEFAULT_SENDMAIL_PATH</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>disable_functions</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>allow_url_fopen</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>always_populate_raw_post_data</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>xbithack</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>engine</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>last_modified</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>child_terminate</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>async_send</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <table> <title>Définition des constantes PHP_INI_*</title> - <tgroup cols="3"> - <thead> - <row> + <tgroup cols="3"> + <thead> + <row> <entry>Constante</entry> <entry>Valeur</entry> <entry>Signification</entry> - </row> - </thead> - <tbody> - <row> - <entry>PHP_INI_USER</entry> - <entry>1</entry> - <entry>La valeur peut être modifiée dans un script</entry> - </row> - <row> - <entry>PHP_INI_PERDIR</entry> - <entry>2</entry> - <entry>La valeur peut être modifiée dans le fichier <filename>.htaccess</filename></entry> - </row> - <row> - <entry>PHP_INI_SYSTEM</entry> - <entry>4</entry> - <entry>La valeur peut être modifiée dans <filename>php.ini</filename> ou - <filename>httpd.conf</filename></entry> - </row> - <row> - <entry>PHP_INI_ALL</entry> - <entry>7</entry> + </row> + </thead> + <tbody> + <row> + <entry>PHP_INI_USER</entry> + <entry>1</entry> + <entry> + La valeur peut être modifiée dans un script + </entry> + </row> + <row> + <entry>PHP_INI_PERDIR</entry> + <entry>2</entry> + <entry> + La valeur peut être modifiée dans le + fichier &htaccess; et les directives d'un vhost + </entry> + </row> + <row> + <entry>PHP_INI_SYSTEM</entry> + <entry>4</entry> + <entry> + La valeur peut être modifiée dans &php.ini; ou + &httpd.conf; (mais pas dans les + blocs vhost de &httpd.conf; + </entry> + </row> + <row> + <entry>PHP_INI_ALL</entry> + <entry>7</entry> <entry>La valeur peut être modifiée n'importe où</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - Voir aussi - <function>ini_alter</function>, - <function>ini_get</function> et - <function>ini_restore</function> - </para> - </refsect1> - </refentry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + Voir aussi + <function>ini_alter</function>, + <function>ini_get</function> et + <function>ini_restore</function> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: @@ -404,4 +1285,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file Index: phpdoc-fr/reference/info/functions/php-logo-guid.xml diff -u phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.1 phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.2 --- phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/php-logo-guid.xml Fri May 16 07:35:51 2003 @@ -20,6 +20,12 @@ </para> </note> </para> + <para> + Voir aussi + <function>phpinfo</function>, + <function>phpversion</function>, et + <function>phpcredits</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/php-sapi-name.xml diff -u phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.1 phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.2 --- phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/php-sapi-name.xml Fri May 16 07:35:51 2003 @@ -22,15 +22,17 @@ </simpara> <para> <example> - <title>Exemple <function>php_sapi_name</function></title> + <title>Exemple avec <function>php_sapi_name</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $inter_type = php_sapi_name(); if ($inter_type == "cgi") print "Vous utilisez CGI PHP\n"; else print "Vous n'utilisez pas CGI PHP\n"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/php-uname.xml diff -u phpdoc-fr/reference/info/functions/php-uname.xml:1.1 phpdoc-fr/reference/info/functions/php-uname.xml:1.2 --- phpdoc-fr/reference/info/functions/php-uname.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/php-uname.xml Fri May 16 07:35:51 2003 @@ -20,13 +20,15 @@ </simpara> <para> <example> - <title>Exemple <function>php_uname</function></title> + <title>Exemple avec <function>php_uname</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php if (substr(php_uname(), 0, 7) == "Windows") { die("Désolé, ce script ne fonctionne pas sous Windows.\n"); } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/phpcredits.xml diff -u phpdoc-fr/reference/info/functions/phpcredits.xml:1.1 phpdoc-fr/reference/info/functions/phpcredits.xml:1.2 --- phpdoc-fr/reference/info/functions/phpcredits.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpcredits.xml Fri May 16 07:35:51 2003 @@ -4,16 +4,16 @@ <refentry id="function.phpcredits"> <refnamediv> <refname>phpcredits</refname> - <refpurpose>Imprime les crédits de PHP.</refpurpose> + <refpurpose>Imprime les crédits de &php;</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>phpcredits</methodname> - <methodparam><type>int</type><parameter>flag</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>void</type><methodname>phpcredits</methodname> + <methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam> + </methodsynopsis> <para> - <function>phpcredits</function> affiche la liste des développeurs PHP, + <function>phpcredits</function> affiche la liste des développeurs &php;, des modules, etc... Elle génère le code HTML approprié pour insérer les informations dans une page. Le paramètre <parameter>flag</parameter> indique les informations @@ -22,9 +22,11 @@ code suivant : <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php phpcredits(CREDITS_GENERAL); -?> +?> +]]> </programlisting> </informalexample> Et pour afficher la liste des développeurs et du groupe @@ -32,27 +34,32 @@ utiliserez <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE); -?> +?> +]]> </programlisting> </informalexample> Si vous vous sentez l'envie de placer tous les crédits dans votre page, vous pouvez utiliser ceci : <informalexample> <programlisting role="php"> -<html> - <head> - <title>Ma page de crédits</title> - </head> - <body> - <?php - // Un peu de votre code - phpcredits(CREDITS_ALL + CREDITS_FULLPAGE); - // Un autre peu de votre code - ?> - </body> -</html> + +<![CDATA[ +<html> + <head> + <title>Ma page de crédits</title> + </head> + <body> +<?php + // Un peu de votre code + phpcredits(CREDITS_ALL); + // Un autre peu de votre code +?> + </body> +</html> +]]> </programlisting> </informalexample> </para> @@ -72,20 +79,20 @@ </thead> <tbody> <row> - <entry>CREDITS_ALL</entry> + <entry><constant>CREDITS_ALL</constant></entry> <entry> Tous les crédits, équivalent à : - CREDITS_DOCS + CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES + - CREDITS_FULLPAGE. La fonction génère + <constant>CREDITS_DOCS</constant> + <constant>CREDITS_GENERAL</constant> + <constant>CREDITS_GROUP</constant> + <constant>CREDITS_MODULES</constant> + + <constant>CREDITS_FULLPAGE</constant>. La fonction génère alors une page HTML complète. </entry> </row> <row> - <entry>CREDITS_DOCS</entry> + <entry><constant>CREDITS_DOCS</constant></entry> <entry>Les crédits du groupe de documentation</entry> </row> <row> - <entry>CREDITS_FULLPAGE</entry> + <entry><constant>CREDITS_FULLPAGE</constant></entry> <entry> En général, ce paramètre est utilisé avec d'autres constantes. Il indique que la page ainsi générée doit @@ -94,24 +101,24 @@ </entry> </row> <row> - <entry>CREDITS_GENERAL</entry> + <entry><constant>CREDITS_GENERAL</constant></entry> <entry> Crédits Généraux : conception et design du langage, - auteurs de PHP 4.0, module SAPI. + auteurs de &php; 4.0, module SAPI. </entry> </row> <row> - <entry>CREDITS_GROUP</entry> + <entry><constant>CREDITS_GROUP</constant></entry> <entry>Une liste des développeurs principaux</entry> </row> <row> - <entry>CREDITS_MODULES</entry> - <entry>Une liste des extensions de PHP, et leurs auteurs</entry> + <entry><constant>CREDITS_MODULES</constant></entry> + <entry>Une liste des extensions de &php;, et leurs auteurs</entry> </row> <row> - <entry>CREDITS_SAPI</entry> + <entry><constant>CREDITS_SAPI</constant></entry> <entry>Cette constante est définie, mais elle n'est toujours pas - utilisée sous PHP 4.0.1pl2. + utilisée sous &php; 4.0.1pl2. </entry> </row> </tbody> @@ -120,7 +127,6 @@ </para> <para> Voir aussi - <function>version_compare</function>, <function>phpinfo</function>, <function>phpversion</function> et <function>php_logo_guid</function>. Index: phpdoc-fr/reference/info/functions/phpinfo.xml diff -u phpdoc-fr/reference/info/functions/phpinfo.xml:1.1 phpdoc-fr/reference/info/functions/phpinfo.xml:1.2 --- phpdoc-fr/reference/info/functions/phpinfo.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpinfo.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.phpinfo"> <refnamediv> <refname>phpinfo</refname> - <refpurpose>Affiche de nombreuses informations sur le PHP.</refpurpose> + <refpurpose>Affiche de nombreuses informations sur le PHP</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -19,27 +19,136 @@ compilé comme module), environnement PHP, chemins, utilisateur, en-têtes HTTP, et licence GNU Public License. </para> - <para> - Les affichages peuvent être personnalisés en passant une - ou plusieurs valeurs parmi les suivantes, comme paramètre - optionnel <parameter>what</parameter> : - <itemizedlist> - <listitem><simpara>INFO_GENERAL</simpara></listitem> - <listitem><simpara>INFO_CREDITS</simpara></listitem> - <listitem><simpara>INFO_CONFIGURATION</simpara></listitem> - <listitem><simpara>INFO_MODULES</simpara></listitem> - <listitem><simpara>INFO_ENVIRONMENT</simpara></listitem> - <listitem><simpara>INFO_VARIABLES</simpara></listitem> - <listitem><simpara>INFO_LICENSE</simpara></listitem> - <listitem><simpara>INFO_ALL</simpara></listitem> - </itemizedlist> - </para> - <para> + <para> + Comme tous les systèmes sont configurés différemment, + <function>phpinfo</function> sert généralement à vérifier la + <link linkend="configuration">configuration</link> ainsi que les + <link linkend="language.variables.predefined">variables prédéfinies</link>, + pour une plate-forme donnée. De plus, <function>phpinfo</function> + est un outil de débogage, car il affiche le contenu de toutes les + variables EGPCS (Environnement, GET, POST, Cookie, Serveur). + </para> + <para> + L'affichage peut être personnalisé en utilisant une ou plusieurs des + constantes suivantes. Elles sont combinables avec l'opérateur + <link linkend="language.operators.bitwise">OR</link>, et doivent être + passées dans le paramètre <parameter>what</parameter>. + Vous pouvez aussi les additionner. + <table> + <title>Options de <function>phpinfo</function></title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nom (constant)</entry> + <entry>Valeur</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry>INFO_GENERAL</entry> + <entry>1</entry> + <entry> + La ligne de configuration, le chemin du &php.ini;, la date de + compilation, le serveur web, le système, etc... + </entry> + </row> + <row> + <entry>INFO_CREDITS</entry> + <entry>2</entry> + <entry> + Les crédits de PHP 4. Voir aussi <function>phpcredits</function>. + </entry> + </row> + <row> + <entry>INFO_CONFIGURATION</entry> + <entry>4</entry> + <entry> + Valeurs courantes locales et générales des directives PHP. + Voyez aussi la fonction <function>ini_get</function>. + </entry> + </row> + <row> + <entry>INFO_MODULES</entry> + <entry>8</entry> + <entry> + Modules chargées et leur configuration spécifique. + </entry> + </row> + <row> + <entry>INFO_ENVIRONMENT</entry> + <entry>16</entry> + <entry> + Informations sur les environnements de variables, qui sont + disponibles dans la variable <varname>$_ENV</varname>. + </entry> + </row> + <row> + <entry>INFO_VARIABLES</entry> + <entry>32</entry> + <entry> + Affiche toutes les + <link linkend="language.variables.predefined">variables prédéfinies</link>, + issues de l'environnement, la méthode GET, la méthode POST, les + cookies et le serveur. + </entry> + </row> + <row> + <entry>INFO_LICENSE</entry> + <entry>64</entry> + <entry> + La licence PHP. Voir aussi + <ulink url="&url.php.license;">la FAQ de a licence</ulink>. + </entry> + </row> + <row> + <entry>INFO_ALL</entry> + <entry>-1</entry> + <entry> + Affiche toutes les informations sus-citées. C'est la valeur + par défaut. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <example> + <title>Exemple avec <function>phpinfo</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Affiche toutes les information, comme le ferait INFO_ALL +phpinfo(); + +// Affiche uniquement le module d'information. +// phpinfo(8) fournirait les mêmes informations. +phpinfo(INFO_MODULES); + +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + Une partie des informations affichées sont désactivées si + la directive <literal>expose_php</literal> est configurée avec la valeur + <literal>off</literal>. Cela inclus les logos PHP et Zend, ainsi que les + crédits. + </para> + </note> + <para> Voir aussi <function>phpversion</function>, - <function>phpcredits</function> et - <function>php_logo_guid</function> - </para> + <function>phpcredits</function>, + <function>php_logo_guid</function>, + <function>ini_get</function>, + <function>ini_set</function> et la section sur les + <link linkend="language.variables.predefined">variables prédéfinies</link>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/phpversion.xml diff -u phpdoc-fr/reference/info/functions/phpversion.xml:1.1 phpdoc-fr/reference/info/functions/phpversion.xml:1.2 --- phpdoc-fr/reference/info/functions/phpversion.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpversion.xml Fri May 16 07:35:51 2003 @@ -5,7 +5,7 @@ <refnamediv> <refname>phpversion</refname> <refpurpose> - Retourne le numéro de la version courante de PHP. + Retourne le numéro de la version courante de PHP </refpurpose> </refnamediv> <refsect1> @@ -17,19 +17,33 @@ <para> <function>phpversion</function> retourne le numéro de la version courante de PHP. - <example> + </para> + <note> + <para> + Cette information est aussi disponible via la constante + prédéfinie <constant>PHP_VERSION</constant>. + </para> + </note> + <para> + <example> <title>Exemple avec <function>phpversion</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche le numéro de version courante du PHP. - echo "PHP Version: ".phpversion(); -?> + echo "PHP Version : ".phpversion(); +?> +]]> </programlisting> </example> </para> <para> Voir aussi - <function>phpinfo</function>. + <function>version_compare</function>, + <function>phpinfo</function>, + <function>phpcredits</function>, + <function>php_logo_guid</function> et + <function>zend_version</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/putenv.xml diff -u phpdoc-fr/reference/info/functions/putenv.xml:1.1 phpdoc-fr/reference/info/functions/putenv.xml:1.2 --- phpdoc-fr/reference/info/functions/putenv.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/putenv.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.putenv"> <refnamediv> <refname>putenv</refname> - <refpurpose>Fixe la valeur d'une variable d'environnement.</refpurpose> + <refpurpose>Fixe la valeur d'une variable d'environnement</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -40,9 +40,11 @@ <example> <title>Modification d'une variable d'environnement</title> <programlisting role="php"> -<?php -putenv("UNIQID=$uniqid"); -?> +<![CDATA[ +<?php + putenv("UNIQID=$uniqid"); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml diff -u phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.1 phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.2 --- phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml Fri May 16 07:35:51 2003 @@ -10,10 +10,10 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>set_magic_quotes_runtime</methodname> - <methodparam><type>int</type><parameter>new_setting</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>set_magic_quotes_runtime</methodname> + <methodparam><type>int</type><parameter>new_setting</parameter></methodparam> + </methodsynopsis> <simpara> <function>set_magic_quotes_runtime</function> active/désactive l'option <link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>. Index: phpdoc-fr/reference/info/functions/set-time-limit.xml diff -u phpdoc-fr/reference/info/functions/set-time-limit.xml:1.1 phpdoc-fr/reference/info/functions/set-time-limit.xml:1.2 --- phpdoc-fr/reference/info/functions/set-time-limit.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/set-time-limit.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.set-time-limit"> <refnamediv> <refname>set_time_limit</refname> - <refpurpose>Fixe le temps maximum d'exécution d'un script.</refpurpose> + <refpurpose>Fixe le temps maximum d'exécution d'un script</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -17,7 +17,7 @@ d'un script, en secondes. Si cette limite est atteinte, le script s'interrompt, et renvoie une erreur fatale. La valeur par défaut est 30 secondes ou, si c'est le cas, la valeur de la directive max_execution_time définie dans le - <link linkend="configuration.file">fichier de configuration</link>. + &php.ini;. Si la valeur est zéro, il n'y a alors aucune limite imposée. </simpara> <simpara> @@ -31,11 +31,10 @@ </simpara> <simpara> Notez que <function>set_time_limit</function> n'a pas - d'effet lorsque PHP fonctionne en mode <link linkend="ini.safe-mode">safe mode</link>. Il + d'effet lorsque PHP fonctionne en mode &safemode;. Il n'y a pas d'autre solution que de changer de mode, ou de modifier la durée maximale - d'exécution dans le <link linkend="configuration.file"> - fichier de configuration</link>. + d'exécution dans le &php.ini;. </simpara> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/version-compare.xml diff -u phpdoc-fr/reference/info/functions/version-compare.xml:1.1 phpdoc-fr/reference/info/functions/version-compare.xml:1.2 --- phpdoc-fr/reference/info/functions/version-compare.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/version-compare.xml Fri May 16 07:35:51 2003 @@ -12,9 +12,7 @@ <type>int</type><methodname>version_compare</methodname> <methodparam><type>string</type><parameter>version1</parameter></methodparam> <methodparam><type>string</type><parameter>version2</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - operator - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>operator</parameter></methodparam> </methodsynopsis> <para> <function>version_compare</function> compare @@ -46,13 +44,15 @@ <example> <title>Exemple avec <function>version_compare</function></title> <programlisting role="php"> -<?php -echo version_compare("4.0.4", "4.0.6"); +<![CDATA[ +<?php + echo version_compare("4.0.4", "4.0.6"); // affiche -1 -echo version_compare("4.0.4", "4.0.6", "<"); -echo version_compare("4.0.6", "4.0.6", "eq"); + echo version_compare("4.0.4", "4.0.6", "<"); + echo version_compare("4.0.6", "4.0.6", "eq"); // affichent tous 1 -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/zend-version.xml diff -u phpdoc-fr/reference/info/functions/zend-version.xml:1.1 phpdoc-fr/reference/info/functions/zend-version.xml:1.2 --- phpdoc-fr/reference/info/functions/zend-version.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/zend-version.xml Fri May 16 07:35:51 2003 @@ -4,26 +4,28 @@ <refentry id="function.zend-version"> <refnamediv> <refname>zend_version</refname> - <refpurpose>Lit la version courante du moteur Zend.</refpurpose> + <refpurpose>Lit la version courante du moteur Zend</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>zend_version</methodname> - <methodparam><type>void</type><parameter/></methodparam> + <void/> </methodsynopsis> <para> <function>zend_version</function> retourne une chaîne contenant le numéro de version du moteur d'analyse Zend, pour l'exécutable PHP courant. <example> - <title>Exemple <function>zend_version</function></title> + <title>Exemple avec <function>zend_version</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche e.g. 'Version du moteur Zend: 1.0.4' // ou bien quelque chose d'approchant si votre version de PHP date un peu echo "Version du moteur Zend: ".zend_version(); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/get-include-path.xml +++ phpdoc-fr/reference/info/functions/get-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.get-include-path"> <refnamediv> <refname>get_include_path</refname> <refpurpose> Lit la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>get_include_path</methodname> <void /> </methodsynopsis> <simpara> <function>get_include_path</function> lit la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link>. </simpara> <para> <example> <title>Exemple avec <function>get_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php // Fonctionne depuis PHP 4.3.0 print get_include_path(); // Fonctionne sur toutes les versions print ini_get('include_path'); ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_get</function>, <function>restore_include_path</function>, <function>set_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/getopt.xml +++ phpdoc-fr/reference/info/functions/getopt.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.getopt"> <refnamediv> <refname>getopt</refname> <refpurpose>Lit des options passés dans la ligne de commande</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>getopt</methodname> <methodparam><type>string</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>getopt</function> retourne un tableau associatif avec la liste des paire option/valeur, lues dans la ligne de commande, et basée sur le format d'option <parameter>options</parameter>, ou bien &false; en cas d'erreur. <example> <title>Exemple avec <function>getopt</function></title> <programlisting> <![CDATA[ $options = getopt("f:hp:"); // Analyse la ligne de commande (i.e. $GLOBALS['argv']) ]]> </programlisting> </example> </para> <para> Le paramètre <parameter>options</parameter> peut contenir les éléments suivants : caractères, ou caractères suivis d'un signe deux-points pour indiquer un élément optionnel. Par exemple, une option appelée <literal>x</literal> correspond à une option <literal>-x</literal>, et une chaîne <literal>x:</literal> correspond à une option de type <literal>-x argument</literal>. Cela importe peut si un argument a des espaces auparavant. </para> <para> <function>getopt</function> retourne un tableau avec les options et leur valeur. Si une option n'a pas d'argument, sa valeur prendra &false;. <note> <para> <function>getopt</function> requiert la directive <link linkend="ini.register-argc-argv">register_argc_argv</link> activée. </para> </note> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/main.xml +++ phpdoc-fr/reference/info/functions/main.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.main"> <refnamediv> <refname>main</refname> <refpurpose>Fausse documentation pour <function>main</function></refpurpose> </refnamediv> <refsect1> <title>Description</title> <para> Il n'y a pas de fonction appelée <function>main</function>, hormis dans les sources &php;. En &php; 4.3.0, un nouveau type de gestion d'erreur a été introduit dans les sources de &php; : php_error_docref. Une des fonctionnalité était de fournir un lien vers la page de manuel de &php; lorsque la directive <link linkend="ini.html-errors">html_errors</link> était activée (par défaut). </para> <para> Certains messages d'erreur faisaient référence à une page de manuel pour la fonction <function>main</function> alors que cette page n'existe pas. </para> <para> <table> <title>Erreurs connues pour diriger sur la page <function>main</function></title> <tgroup cols="2"> <thead> <row> <entry>Nom de la fonction</entry> <entry>Ne pointe plus sur cette page depuis la version</entry> </row> </thead> <tbody> <row> <entry><function>include</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>include_once</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>require</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>require_once</function></entry> <entry>4.3.1</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <link linkend="ini.html-errors">html_errors</link> et <link linkend="ini.display-errors">display_errors</link>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/php-ini-scanned-files.xml +++ phpdoc-fr/reference/info/functions/php-ini-scanned-files.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.php-ini-scanned-files"> <refnamediv> <refname>php_ini_scanned_files</refname> <refpurpose>Retourne la liste des fichiers .ini analysédans les dossiers de configuration supplémentaires</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>php_ini_scanned_files</methodname> <void/> </methodsynopsis> <simpara> <function>php_ini_scanned_files</function> retourne une liste de nom de fichiers de configuration analysés, en plus de &php.ini;. Cette liste est au format CSV. Ces fichiers sont situé dans un dossier défini par l'option <option>--with-config-file-scan-dir</option>, définie au moment de la compilation. </simpara> <simpara> <function>php_ini_scanned_files</function> retourne une chaîne de caractères, et les noms de fichiers sont séparés par des virgules. Si <option>--with-config-files-scan-dir</option> n'était pas configuré, &false; est retourné. Si cette option était configurée, mais que le dossier était vide, une chaîne vide est retournée. Si un fichier n'est pas lisible, le nom du fichier sera inclus dans la liste, mais une erreur sera générée. Cette erreur sera visible au moment de la compilation, et lorsque vous appelerez la fonction <function>php_ini_scanned_files</function>. </simpara> <simpara> Les fichiers retournés inclus le chemin, comme déclaré dans la directive <literal>--with-config-file-scan-dir</literal>. De plus, chaque virgule est suivi d'une nouvelle ligne. </simpara> <para> <example> <title>Un exemple simple de liste retournée par <function>php_ini_scanned_files</function></title> <programlisting role="php"> <![CDATA[ <?php if ($filelist = php_ini_scanned_files()) { if (strlen($filelist) > 0) { $files = explode(',', $filelist); foreach ($files as $file) { echo "<li>" . trim($file) . "</li>\n"; } } } ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_set</function> et <function>phpinfo</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/restore-include-path.xml +++ phpdoc-fr/reference/info/functions/restore-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.restore-include-path"> <refnamediv> <refname>restore_include_path</refname> <refpurpose> Restaure la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>restore_include_path</methodname> <void /> </methodsynopsis> <simpara> <methodname>restore_include_path</methodname> restaure la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link> sa valeur originale de dbut de script, telle qu'inscrite dans le &php.ini;. </simpara> <para> <example> <title>Exemple <function>restore_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php print get_include_path(); // .:/usr/local/lib/php set_include_path('/inc'); print get_include_path(); // /inc // Fonctionne depuis PHP 4.3.0 restore_include_path(); // Fonctionne sur toutes les versions ini_restore('include_path'); print get_include_path(); // .:/usr/local/lib/php ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_restore</function>, <function>set_include_path</function>, <function>get_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/set-include-path.xml +++ phpdoc-fr/reference/info/functions/set-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.set-include-path"> <refnamediv> <refname>set_include_path</refname> <refpurpose> Modifie la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>set_include_path</methodname> <methodparam><type>string</type><parameter>new_include_path</parameter></methodparam> </methodsynopsis> <simpara> <function>set_include_path</function> modifie la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link>, pour la dure du script en cours. <function>set_include_path</function> retourne l'ancienne valeur de <link linkend="ini.include-path">include_path</link> en cas de succs, et &false; sinon. </simpara> <para> <example> <title>Exemple avec <function>set_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php // Fonctionne depuis PHP 4.3.0 set_include_path('/inc'); // Fonctionne sur toutes les versions ini_set('include_path', '/inc'); ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_set</function>, <function>get_include_path</function>, <function>restore_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: phpdoc-fr/reference/info/reference.xml diff -u phpdoc-fr/reference/info/reference.xml:1.2 phpdoc-fr/reference/info/reference.xml:1.3 --- phpdoc-fr/reference/info/reference.xml:1.2 Mon Apr 15 20:54:01 2002 +++ phpdoc-fr/reference/info/reference.xml Fri May 16 07:35:51 2003 @@ -1,10 +1,43 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <reference id="ref.info"> <title>Options PHP et informations</title> <titleabbrev>Options et informations PHP</titleabbrev> -&reference.info.functions; + <partintro> + <section id="info.intro"> + &reftitle.intro; + <para> + Ces fonctions vous donnent accès à de nombreuses informations + sur PHP lui-même, comme par exemple les configurations d'exécution, + les extensions chargées, les versions, etc... Vous trouverez aussi des + fonctions pour modifier des options. Et vous trouverez aussi la star + des fonctions PHP <function>phpinfo</function>. + </para> + </section> + + <section id="info.requirements"> + &reftitle.required; + &no.requirement; + </section> + + <section id="info.installation"> + &reftitle.install; + &no.install; + </section> + + &reference.info.ini; + + <section id="info.resources"> + &reftitle.resources; + &no.resource; + </section> + + &reference.info.constants; + + </partintro> + + &reference.info.functions; </reference> <!-- Keep this comment at the end of the file Index: phpdoc-fr/reference/info/functions/assert-options.xml diff -u phpdoc-fr/reference/info/functions/assert-options.xml:1.2 phpdoc-fr/reference/info/functions/assert-options.xml:1.3 --- phpdoc-fr/reference/info/functions/assert-options.xml:1.2 Mon Apr 28 06:53:25 2003 +++ phpdoc-fr/reference/info/functions/assert-options.xml Fri May 16 07:35:51 2003 @@ -3,7 +3,7 @@ <!-- last change to 'assert-options' in en/ tree in rev 1.51 --> <refentry id="function.assert-options"> <refnamediv> - <refname>assert-options</refname> + <refname>assert_options</refname> <refpurpose>Fixe et lit différentes options d'assertions</refpurpose> </refnamediv> <refsect1> Index: phpdoc-fr/reference/info/functions/assert.xml diff -u phpdoc-fr/reference/info/functions/assert.xml:1.1 phpdoc-fr/reference/info/functions/assert.xml:1.2 --- phpdoc-fr/reference/info/functions/assert.xml:1.1 Sun Apr 14 20:31:09 2002 +++ phpdoc-fr/reference/info/functions/assert.xml Fri May 16 07:35:51 2003 @@ -8,10 +8,10 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>int</type><methodname>assert</methodname> - <methodparam><type>string|boolean</type><parameter>assertion</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>assert</methodname> + <methodparam><type>mixed</type><parameter>assertion</parameter></methodparam> + </methodsynopsis> <para> <function>assert</function> va vérifier l'assertion <parameter>assertion</parameter> et prendre la mesure appropriée @@ -44,6 +44,56 @@ Le comportement de <function>assert</function> peut être configuré par <function>assert_options</function> ou par .ini-settings. </para> + <para> + La fonction <function>assert_options</function> et la directive + ASSERT_CALLBACK permettent de configurer une fonction qui sera appelée + lorsque l'assertion échoue. + </para> + <para> + Les fonctions de callback pour <function>assert</function> sont + particuliérement utiles pour bâtir des suites de tests automatiques, + car elles vous permettent de capturer facileent le code passé à l'assertion, + ainsi que des informations sur le lieu et le moment de l'assertion. + Même si ces informations peuvent être appelés par d'autres méthodes, + les assertions sont plus rapides et plus faciles. + </para> + <para> + La fonction de callback doit accepter trois arguments. Le premier + contient le nom du fichier qui a vu l'assertion échouer. Le second + contient le numéro de ligne dans le fichier précédent. + Le troisième argument contient l'expression qui a échoué (si + il y en a : les valeurs litérales comme 1 ou "deux" ne seront + pas passées par cet argument). + </para> + <para> + <example> + <title>Gestion des assertions avec un gestionnaire personnalisé</title> + <programlisting role="php"> +<![CDATA[ +<?php +// Activation des assertions et mise en mode discret. +assert_options (ASSERT_ACTIVE, 1); +assert_options (ASSERT_WARNING, 0); +assert_options (ASSERT_QUIET_EVAL, 1); + +// Cération d'un gestionnaire d'assertions +function mon_assert_handler ($file, $line, $code) { + echo "<hr>Assertion Failed: + File '$file'<br> + Line '$line'<br> + Code '$code'<br><hr>"; +} + +// Configuration de la méthode de callback +assert_options (ASSERT_CALLBACK, 'mon_assert_handler'); + +// Utilisation d'une assertion qui va échouer +assert ('mysql_query ("")'); +?> +]]> + </programlisting> + </example> + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/dl.xml diff -u phpdoc-fr/reference/info/functions/dl.xml:1.1 phpdoc-fr/reference/info/functions/dl.xml:1.2 --- phpdoc-fr/reference/info/functions/dl.xml:1.1 Sun Apr 14 20:31:09 2002 +++ phpdoc-fr/reference/info/functions/dl.xml Fri May 16 07:35:51 2003 @@ -14,13 +14,101 @@ </methodsynopsis> <para> <function>dl</function> charge l'extension PHP <parameter>library</parameter> - à la volée . - </para> - <para> - Voir aussi les directives de configuration - <link linkend="ini.extension-dir">extension_dir</link> et - <link linkend="ini.enable-dl">enable_dl</link>. - </para> + à la volée. Le paramètre <parameter>library</parameter> + est <emphasis>seulement</emphasis> le nom de fichier de l'extension, + qui dépend de votre plate-forme. Par exemple l'extension + <link linkend="ref.sockets">sockets</link> (si compilée comme module + partagé, et non par défaut), sera appelée <filename>sockets.so</filename> + sous Unix, et <filename>php_sockets.dll</filename> sous Windows. + </para> + <para> + &return.success;. Si la fonctionnalité de chargement de module n'est pas + disponible (voir Note), ou a été désactivé (soit en inactivant la directive + <literal>enable_dl</literal> ou en activant le &safemode; + dans le &php.ini;) une <constant>E_ERROR</constant> sera émise et + l'exécution du script sera stoppée. Si la fonction + <function>dl</function> échoue parce que la librairie n'a pu être + trouvée, <function>dl</function> retournera &false; et émettra un + message d'alerte. + </para> + <para> + Utilisez la fonction <function>extension_loaded</function> pour vérifier + qu'une extension est chargée ou non. Cette fonction travaille aussi bien + avec les extensions intégrées qu'avec les extensions dynamiquement + chargées (via le &php.ini;, ou via <function>dl</function>). + </para> + <para> + <example> + <title>Exemple avec <function>dl</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + if (!extension_loaded('gd')) { + if (!dl('gd.so')) { + exit; + } + } +]]> + </programlisting> + </example> + </para> + <para> + Le dossier où sont rangées les extensions dépend de votre plate forme : + </para> + <para> + Windows - Si il n'est pas explicitement indiqué dans le fichier &php.ini;, + le dossier des extensions est <filename>c:\php4\extensions\</filename>. + </para> + <para> + Unix - Si il n'est pas explicitement indiqué dans le fichier &php.ini;, + le dossier des extensions dépend de + <itemizedlist> + <listitem> + <simpara> + Si &php; a été compilé avec l'option <literal>--enable-debug</literal> + </simpara> + </listitem> + <listitem> + <simpara> + Si PHP a été compilé avec le support (expérimental) de ZTS (Zend Thread Safety) + </simpara> + </listitem> + <listitem> + <simpara> + de la constante interne <literal>ZEND_MODULE_API_NO</literal> + (version interne de module d'API Zend, qui est en réalité la date + à laquelle une modification importante de l'API a été faite, comme + par exemple <literal>20010901</literal>) + </simpara> + </listitem> + </itemizedlist> + En prenant ces paramètres en considération, le dossier des extensions + vaut alors + <literal><php-install-directory>/lib/php/extension/<debug-or-not>-<zts-or-not>-ZEND_MODULE_API_NO</literal>, + i.e. + <filename>/usr/local/php/lib/php/extensions/debug-non-zts-20010901</filename> + ou + <filename>/usr/local/php/lib/php/extensions/no-debug-zts-20010901</filename>. + </para> + <note> + <para> + <function>dl</function> <emphasis>n'est pas</emphasis> supporté sur les + serveur web multi-threadés. Utilisez la directive <literal>extensions</literal> + dans votre fichier &php.ini; lorsque vous vous trouvez dans un + environnement de ce type. Cependant, les versions <literal>CGI</literal> et + <literal>CLI</literal> <emphasis role="strong">ne sont pas</emphasis>! + </para> + </note> + <note> + <para> + <function>dl</function> est sensible à la casse sur les plate-formes Unix. + </para> + </note> + <para> + Voir aussi + <link linkend="ini.extension">directives de chargement d'extensions</link> et + <function>extension_loaded</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/extension-loaded.xml diff -u phpdoc-fr/reference/info/functions/extension-loaded.xml:1.1 phpdoc-fr/reference/info/functions/extension-loaded.xml:1.2 --- phpdoc-fr/reference/info/functions/extension-loaded.xml:1.1 Sun Apr 14 20:31:10 2002 +++ phpdoc-fr/reference/info/functions/extension-loaded.xml Fri May 16 07:35:51 2003 @@ -5,29 +5,77 @@ <refnamediv> <refname>extension_loaded</refname> <refpurpose> - Détermine si une extension est chargée ou non. + Détermine si une extension est chargée ou non </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> - <type>boolean</type><methodname>extension_loaded</methodname> + <type>bool</type><methodname>extension_loaded</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <simpara> <function>extension_loaded</function> retourne &true; si l'extension <parameter>name</parameter> a été chargée. - Vous pouvez voir les différents noms des extensions, en - utilisant la fonction <function>phpinfo</function>. </simpara> - <para> - Voir aussi - <function>phpinfo</function>. + <para> + <example> + <title>Exemple avec <function>extension_loaded</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +if (!extension_loaded('gd')) { + if (!dl('gd.so')) { + exit; + } +} +?> +]]> + </programlisting> + </example> + </para> + <para> + Vous pouvez connaître le nom des différentes extensions + php en utilisant la fonction <function>phpinfo</function> ou bien + si vous utilisez la version <literal>CGI</literal> ou <literal>CLI</literal> + de &php;, vous pouvez utiliser l'option de ligne de commande + <literal>-m</literal> pour lister toutes les extensions disponibles : + <screen> +<![CDATA[ +$ php -m +[PHP Modules] +xml +tokenizer +standard +sockets +session +posix +pcre +overload +mysql +mbstring +ctype + +[Zend Modules] +]]> + </screen> + </para> <note> <para> - Cette fonction a été ajoutée dans 3.0.10. + <function>extension_loaded</function> utilisent le nom interne de l'extension + pour vérifier si une extension est disponible ou pas. La plus part + des extensions ont des noms internes écrits en minuscules, mais il peut + arriver que des extensions aient des noms en majuscules. Soyez donc + prévenus que la comparaison effectuée par cette fonction + est <emphasis role="strong">sensible à la casse</emphasis> ! </para> </note> + <para> + Voir aussi + <function>get_loaded_extensions</function>, + <function>get_extension_funcs</function>, + <function>phpinfo</function> et + <function>dl</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-defined-constants.xml diff -u phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.1 phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.2 --- phpdoc-fr/reference/info/functions/get-defined-constants.xml:1.1 Sun Apr 14 20:31:10 2002 +++ phpdoc-fr/reference/info/functions/get-defined-constants.xml Fri May 16 07:35:51 2003 @@ -24,36 +24,42 @@ Par exemple : <informalexample> <programlisting> -<?php +<![CDATA[ +<?php print_r(get_defined_constants()); -?> +?> +]]> </programlisting> </informalexample> affichera <informalexample> <programlisting> +<![CDATA[ Array ( - [E_ERROR] => 1 - [E_WARNING] => 2 - [E_PARSE] => 4 - [E_NOTICE] => 8 - [E_CORE_ERROR] => 16 - [E_CORE_WARNING] => 32 - [E_COMPILE_ERROR] => 64 - [E_COMPILE_WARNING] => 128 - [E_USER_ERROR] => 256 - [E_USER_WARNING] => 512 - [E_USER_NOTICE] => 1024 - [E_ALL] => 2047 - [TRUE] => 1 + [E_ERROR] => 1 + [E_WARNING] => 2 + [E_PARSE] => 4 + [E_NOTICE] => 8 + [E_CORE_ERROR] => 16 + [E_CORE_WARNING] => 32 + [E_COMPILE_ERROR] => 64 + [E_COMPILE_WARNING] => 128 + [E_USER_ERROR] => 256 + [E_USER_WARNING] => 512 + [E_USER_NOTICE] => 1024 + [E_ALL] => 2047 + [TRUE] => 1 ) +]]> </programlisting> </informalexample> </para> <para> Voir aussi - <function>get_loaded_extensions</function>. + <function>get_loaded_extensions</function>, + <function>get_defined_functions</function> et + <function>get_defined_vars</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-extension-funcs.xml diff -u phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.1 phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.2 --- phpdoc-fr/reference/info/functions/get-extension-funcs.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-extension-funcs.xml Fri May 16 07:35:51 2003 @@ -4,9 +4,7 @@ <refentry id="function.get-extension-funcs"> <refnamediv> <refname>get_extension_funcs</refname> - <refpurpose> - Liste les fonctions d'une extension - </refpurpose> + <refpurpose>Liste les fonctions d'une extension</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,10 +20,12 @@ Par exemple, les lignes suivantes : <informalexample> <programlisting role="php"> -<?php -print_r(get_extension_funcs("xml")); -print_r(get_extension_funcs("gd")); -?> +<![CDATA[ +<?php + print_r(get_extension_funcs("xml")); + print_r(get_extension_funcs("gd")); +?> +]]> </programlisting> </informalexample> vont afficher la liste des fonctions disponibles avec les modules Index: phpdoc-fr/reference/info/functions/get-included-files.xml diff -u phpdoc-fr/reference/info/functions/get-included-files.xml:1.1 phpdoc-fr/reference/info/functions/get-included-files.xml:1.2 --- phpdoc-fr/reference/info/functions/get-included-files.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-included-files.xml Fri May 16 07:35:51 2003 @@ -26,29 +26,33 @@ <example> <title>Affichage des fichiers inclus et requis</title> <programlisting> -<?php -require_once("local.php"); -require_once("../inc/global.php"); -for ($i=1; $i<5; $i++) - include "util".$i.".php"; - echo "Fichiers appelés avec required_once/included_once\n"; - print_r(get_required_files()); -?> +<![CDATA[ +<?php + require_once("local.php"); + require_once("../inc/global.php"); + for ($i=1; $i<5; $i++) + include "util".$i.".php"; + echo "Fichiers appelés avec required_once/included_once\n"; + print_r(get_required_files()); +?> +]]> </programlisting> </example> va afficher : <informalexample> <programlisting> +<![CDATA[ Fichiers appelés avec required_once/included_once Array ( - [0] => local.php - [1] => /full/path/to/inc/global.php - [2] => util1.php - [3] => util2.php - [4] => util3.php - [5] => util4.php + [0] => local.php + [1] => /full/path/to/inc/global.php + [2] => util1.php + [3] => util2.php + [4] => util3.php + [5] => util4.php ) +]]> </programlisting> </informalexample> </para> @@ -64,8 +68,10 @@ </note> <para> Voir aussi - <function>require_once</function>, - <function>include_once</function> et + <function>include</function>, + <function>include_once</function>, + <function>require</function>, + <function>require_once</function>, et <function>get_required_files</function>. </para> </refsect1> Index: phpdoc-fr/reference/info/functions/get-loaded-extensions.xml diff -u phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.1 phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.2 --- phpdoc-fr/reference/info/functions/get-loaded-extensions.xml:1.1 Sun Apr 14 20:31:11 2002 +++ phpdoc-fr/reference/info/functions/get-loaded-extensions.xml Fri May 16 07:35:51 2003 @@ -23,37 +23,44 @@ Par exemple, la ligne ci-dessous <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php print_r(get_loaded_extensions()); -?> +?> +]]> </programlisting> </informalexample> affichera la liste suivante : <informalexample> <literallayout> <computeroutput> +<![CDATA[ Array ( - [0] => xml - [1] => wddx - [2] => standard - [3] => session - [4] => posix - [5] => pgsql - [6] => pcre - [7] => gd - [8] => ftp - [9] => db - [10] => Calendar - [11] => bcmath + [0] => xml + [1] => wddx + [2] => standard + [3] => session + [4] => posix + [5] => pgsql + [6] => pcre + [7] => gd + [8] => ftp + [9] => db + [10] => Calendar + [11] => bcmath ) +]]> </computeroutput> </literallayout> </informalexample> </para> <para> Voir aussi - <function>get_extension_funcs</function>. + <function>get_extension_funcs</function>, + <function>extension_loaded</function>, + <function>dl</function> et + <function>phpinfo</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml diff -u phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.1 phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.2 --- phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-magic-quotes-gpc.xml Fri May 16 07:35:51 2003 @@ -4,26 +4,41 @@ <refentry id="function.get-magic-quotes-gpc"> <refnamediv> <refname>get_magic_quotes_gpc</refname> - <refpurpose> - Retourne la configuration actuelle de l'option magic_quotes_gpc. - </refpurpose> + <refpurpose>Retourne la configuration actuelle de l'option magic_quotes_gpc</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>get_magic_quotes_gpc</methodname> - <void/> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>get_magic_quotes_gpc</methodname> + <void/> + </methodsynopsis> <simpara> <function>get_magic_quotes_gpc</function> retourne la configuration actuelle de l'option <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> (0 pour l'option désactivée, 1 pour l'option activée). </simpara> - <simpara> - Voir aussi - <function>get_magic_quotes_runtime</function> et - <function>set_magic_quotes_runtime</function>. - </simpara> + <note> + <para> + Si la directive <link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link> + est activée, elle remplacera complètement <parameter>magic_quotes_gpc</parameter>. + Ce qui fait que même si <function>get_magic_quotes</function> retourne + &true; les guillemets doubles, les anti-slashes ou les caractères + NULL ne seront pas protégés. Seul les guillemets simples le seront. Dans + ce cas, ils ressembleront à <emphasis>''</emphasis>. + </para> + </note> + <simpara> + Gardez en tête que + <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> ne peut être + configuré durant l'exécution du script. + </simpara> + <simpara> + Voir aussi + <function>addslashes</function>, + <function>stripslashes</function>, + <function>get_magic_quotes_runtime</function> et + <function>ini_get</function>. + </simpara> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml diff -u phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.1 phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.2 --- phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-magic-quotes-runtime.xml Fri May 16 07:35:51 2003 @@ -5,15 +5,15 @@ <refnamediv> <refname>get_magic_quotes_runtime</refname> <refpurpose> - Retourne la configuration actuelle de l'option magic_quotes_runtime. + Retourne la configuration actuelle de l'option magic_quotes_runtime </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>get_magic_quotes_runtime</methodname> - <void/> - </methodsynopsis> + <methodsynopsis> + <type>int</type><methodname>get_magic_quotes_runtime</methodname> + <void/> + </methodsynopsis> <simpara> <function>get_magic_quotes_runtime</function> retourne la configuration actuelle de l'option Index: phpdoc-fr/reference/info/functions/get-required-files.xml diff -u phpdoc-fr/reference/info/functions/get-required-files.xml:1.1 phpdoc-fr/reference/info/functions/get-required-files.xml:1.2 --- phpdoc-fr/reference/info/functions/get-required-files.xml:1.1 Sun Apr 14 20:31:12 2002 +++ phpdoc-fr/reference/info/functions/get-required-files.xml Fri May 16 07:35:51 2003 @@ -5,44 +5,14 @@ <refnamediv> <refname>get_required_files</refname> <refpurpose> - Retourne un tableau avec les noms des fichiers qui sont requis - et inclus dans un script + Alias de <function>get_included_files</function> </refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>array</type><methodname>get_required_files</methodname> - <void/> - </methodsynopsis> - <para> - <function>get_required_files</function> retourne un tableau - contenant les noms de tous les fichiers qui ont été - chargés dans un script avec la fonction - <function>require_once</function> ou <function>include_once</function>. - Les index de ces tableaux sont les noms des fichiers - utilisés dans les fonctions <function>require_once</function> - ou <function>include_once</function>. - </para> - <note> <para> - En PHP 4.0.1pl2, cette fonction supposait que - <varname>required_once</varname> utilisait l'extension - ".php" : les autres extensions ne fonctionnaient pas. - Par ailleurs, dans cette version, le tableau retourné était - un tableau associatif, et cette fonction n'était pas - un alias de <function>get_included_files</function> - </para> - <para> - Depuis PHP 4.0.4, cette fonction est un alias de - <function>get_included_files</function> - </para> - </note> - <para> - Voir aussi - <function>require_once</function>, - <function>include_once</function> et - <function>get_included_files</function> + <function>get_required_files</function> est un &alias; de + <function>get_included_files</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getenv.xml diff -u phpdoc-fr/reference/info/functions/getenv.xml:1.1 phpdoc-fr/reference/info/functions/getenv.xml:1.2 --- phpdoc-fr/reference/info/functions/getenv.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getenv.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getenv"> <refnamediv> <refname>getenv</refname> - <refpurpose>Retourne la valeur de la variable d'environnement.</refpurpose> + <refpurpose>Retourne la valeur d'une variable d'environnement</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -18,9 +18,11 @@ ou &false; en cas d'erreur. <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php $ip = getenv("REMOTE_ADDR"); // retourne l'adresse IP de l'utilisateur -?> +?> +]]> </programlisting> </informalexample> </para> Index: phpdoc-fr/reference/info/functions/getlastmod.xml diff -u phpdoc-fr/reference/info/functions/getlastmod.xml:1.1 phpdoc-fr/reference/info/functions/getlastmod.xml:1.2 --- phpdoc-fr/reference/info/functions/getlastmod.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getlastmod.xml Fri May 16 07:35:51 2003 @@ -5,7 +5,7 @@ <refnamediv> <refname>getlastmod</refname> <refpurpose> - Retourne la date de dernière modification de la page. + Retourne la date de dernière modification de la page </refpurpose> </refnamediv> <refsect1> @@ -24,20 +24,24 @@ <example> <title>Exemple avec <function>getlastmod</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche 'Dernière modification: March 04 1998 20:43:59.' - echo "Dernière modification: ".date( "F d Y H:i:s.", getlastmod() ); -?> + echo "Dernière modification : ".date( "F d Y H:i:s.", getlastmod() ); +?> +]]> </programlisting> </example> </para> <para> Voir aussi - <function>date</function>, - <function>getmyuid</function>, - <function>get_current_user</function>, - <function>getmyinode</function> et - <function>getmypid</function>. + <function>date</function>, + <function>getmyuid</function>, + <function>getmygid</function>, + <function>get_current_user</function>, + <function>getmyinode</function>, + <function>getmypid</function> et + <function>filemtime</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getmyinode.xml diff -u phpdoc-fr/reference/info/functions/getmyinode.xml:1.1 phpdoc-fr/reference/info/functions/getmyinode.xml:1.2 --- phpdoc-fr/reference/info/functions/getmyinode.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmyinode.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmyinode"> <refnamediv> <refname>getmyinode</refname> - <refpurpose>Retourne l'inode du script.</refpurpose> + <refpurpose>Retourne l'inode du script</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -18,16 +18,13 @@ </para> <para> Voir aussi - <function>getmyuid</function>, - <function>get_current_user</function>, - <function>getmypid</function> et - <function>getlastmod</function>. + <function>getmygid</function>, + <function>getmyuid</function>, + <function>get_current_user</function>, + <function>getmypid</function> et + <function>getlastmod</function>. </para> - <note> - <simpara> - <function>getmyinode</function> est inopérante sur les systèmes Windows. - </simpara> - </note> + ¬e.no-windows; </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/getmypid.xml diff -u phpdoc-fr/reference/info/functions/getmypid.xml:1.1 phpdoc-fr/reference/info/functions/getmypid.xml:1.2 --- phpdoc-fr/reference/info/functions/getmypid.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmypid.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmypid"> <refnamediv> <refname>getmypid</refname> - <refpurpose>Retourne le numéro de processus courant.</refpurpose> + <refpurpose>Retourne le numéro de processus courant</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,11 +16,6 @@ <function>getmypid</function> retourne le numéro de processus actuel ou &false; en cas d'erreur. </para> - <para> - Il est à noter que si vous utilisez PHP comme module Apache, - il n'est pas garanti que deux invocations distinctes de la fonction - donnent des résultats différents. - </para> <warning> <para> Les identifiants de processus ne sont pas uniques, @@ -31,6 +26,7 @@ </warning> <para> Voir aussi + <function>getmygid</function>, <function>getmyuid</function>, <function>get_current_user</function>, <function>getmyinode</function> et Index: phpdoc-fr/reference/info/functions/getmyuid.xml diff -u phpdoc-fr/reference/info/functions/getmyuid.xml:1.1 phpdoc-fr/reference/info/functions/getmyuid.xml:1.2 --- phpdoc-fr/reference/info/functions/getmyuid.xml:1.1 Sun Apr 14 20:31:13 2002 +++ phpdoc-fr/reference/info/functions/getmyuid.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getmyuid"> <refnamediv> <refname>getmyuid</refname> - <refpurpose>Retourne l'UID du propriétaire du script actuel.</refpurpose> + <refpurpose>Retourne l'UID du propriétaire du script actuel</refpurpose> </refnamediv> <refsect1> <title>Description</title> Index: phpdoc-fr/reference/info/functions/getrusage.xml diff -u phpdoc-fr/reference/info/functions/getrusage.xml:1.1 phpdoc-fr/reference/info/functions/getrusage.xml:1.2 --- phpdoc-fr/reference/info/functions/getrusage.xml:1.1 Sun Apr 14 20:31:14 2002 +++ phpdoc-fr/reference/info/functions/getrusage.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.getrusage"> <refnamediv> <refname>getrusage</refname> - <refpurpose>Retourne le niveau d'utilisation des ressources.</refpurpose> + <refpurpose>Retourne le niveau d'utilisation des ressources</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -25,17 +25,20 @@ <example> <title>Exemple getrusage</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $dat = getrusage(); echo $dat["ru_nswap"]; // Taille de la mémoire swap echo $dat["ru_majflt"]; // Nombre de page mémoires utilisées echo $dat["ru_utime.tv_sec"]; // Temps utilisateur (en secondes) echo $dat["ru_utime.tv_usec"];// Temps utilisateur (en microsecondes) -?> +?> +]]> </programlisting> </example> Consultez le manuel "man" pour plus de détails. </para> + ¬e.no-windows; </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-alter.xml diff -u phpdoc-fr/reference/info/functions/ini-alter.xml:1.1 phpdoc-fr/reference/info/functions/ini-alter.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-alter.xml:1.1 Sun Apr 14 20:31:15 2002 +++ phpdoc-fr/reference/info/functions/ini-alter.xml Fri May 16 07:35:51 2003 @@ -4,34 +4,15 @@ <refentry id="function.ini-alter"> <refnamediv> <refname>ini_alter</refname> - <refpurpose>Change la valeur d'une option de configuration</refpurpose> + <refpurpose>Alias de <function>ini_set</function></refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>ini_alter</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> - </methodsynopsis> - <para> - <function>ini_alter</function> change la valeur de l'option de - configuration <parameter>varname</parameter> - et lui donne la valeur de <parameter>newvalue</parameter>. - <function>ini_alter</function> retourne &false; - en cas d'échec, et la valeur précédente en - cas de succès. - </para> <note> <para> - <function>ini_alter</function> est un alias de <function>ini_set</function> + <function>ini_alter</function> est un &alias; de <function>ini_set</function>. </para> </note> - <para> - Voir aussi - <function>ini_get</function>, - <function>ini_restore</function> et - <function>ini_set</function> - </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-get.xml diff -u phpdoc-fr/reference/info/functions/ini-get.xml:1.1 phpdoc-fr/reference/info/functions/ini-get.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-get.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-get.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.ini-get"> <refnamediv> <refname>ini_get</refname> - <refpurpose>Lit la valeur d'une option de configuration.</refpurpose> + <refpurpose>Lit la valeur d'une option de configuration</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -17,11 +17,62 @@ configuration <parameter>varname</parameter> en cas de succès, et &false;. </para> + <note> + <title>Lecture de valeurs booléennes</title> + <para> + Une directive de configuration ayant la valeur de <literal>off</literal> + sera retournée sous la forme d'une chaîne vide, tandis qu'une directive + de configuration ayant une valeur de <literal>on</literal> sera retournée + sous la forme de la chaîne <literal>"1"</literal>. + </para> + </note> + <note> + <title>Lors de la lecture des tailles de mémoire</title> + <para> + Plusieurs directives traitant de taille mémoire, comme + <literal>upload_max_filesize</literal> sont stockées dans le fichier &php.ini; + avec une notation courte. <function>ini_get</function> retourne la chaîne + exacte stockée dans le fichier &php.ini; et <emphasis>NON PAS</emphasis> + son équivalent entier. Appliquer des opérations arithmétiques classiques + sur ces valeurs ne conduira à rien de bon. + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +/* +Notre fichier php.ini contient les directives suivantes : + +display_errors = On +register_globals = Off +post_max_size = 8M +*/ + +print 'display_errors = ' . ini_get('display_errors') . "\n"; +print 'register_globals = ' . ini_get('register_globals') . "\n"; +print 'post_max_size = ' . ini_get('post_max_size') . "\n"; +print 'post_max_size+1 = ' . (ini_get('post_max_size')+1) . "\n"; + +/* +Ce script va afficher : + +display_errors = 1 +register_globals = +post_max_size = 8M +post_max_size+1 = 9 +*/ +?> +]]> + </programlisting> + </informalexample> + </para> + </note> <para> Voir aussi + <function>get_cfg_var</function>, + <function>ini_get_all</function>, <function>ini_alter</function>, <function>ini_restore</function> et - <function>ini_set</function> + <function>ini_set</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-restore.xml diff -u phpdoc-fr/reference/info/functions/ini-restore.xml:1.1 phpdoc-fr/reference/info/functions/ini-restore.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-restore.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-restore.xml Fri May 16 07:35:51 2003 @@ -19,8 +19,9 @@ <para> Voir aussi <function>ini_alter</function>, - <function>ini_get</function> et - <function>ini_set</function> + <function>ini_get</function>, + <function>ini_get_all</function> et + <function>ini_set</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/ini-set.xml diff -u phpdoc-fr/reference/info/functions/ini-set.xml:1.1 phpdoc-fr/reference/info/functions/ini-set.xml:1.2 --- phpdoc-fr/reference/info/functions/ini-set.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/ini-set.xml Fri May 16 07:35:51 2003 @@ -1,20 +1,20 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./fr/functions/info.xml, last change in rev 1.16 --> -<!-- last change to 'ini-set' in en/ tree in rev 1.23 --> - <refentry id="function.ini-set"> - <refnamediv> - <refname>ini_set</refname> - <refpurpose>Change la valeur d'une option de configuration</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <methodsynopsis> - <type>string</type><methodname>ini_set</methodname> - <methodparam><type>string</type><parameter>varname</parameter></methodparam> - <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> - </methodsynopsis> - <para> - <function>ini_set</function> change la valeur de l'option de +<!-- $Revision: 1.2 $ --> +<!-- splitted from ./en/functions/info.xml, last change in rev 1.23 --> + <refentry id="function.ini-set"> + <refnamediv> + <refname>ini_set</refname> + <refpurpose>Modifie la valeur d'une option de configuration</refpurpose> + </refnamediv> + <refsect1> + <title>Description</title> + <methodsynopsis> + <type>string</type><methodname>ini_set</methodname> + <methodparam><type>string</type><parameter>varname</parameter></methodparam> + <methodparam><type>string</type><parameter>newvalue</parameter></methodparam> + </methodsynopsis> + <para> + <function>ini_set</function> change la valeur de l'option de configuration <parameter>varname</parameter> et lui donne la valeur de <parameter>newvalue</parameter>. <function>ini_set</function> retourne &false; @@ -29,361 +29,1242 @@ modifiées avec <function>ini_set</function>. Ci-dessous, vous trouverez une liste de toutes les options (disponibles en PHP 4.0.5-dev), et si elles peuvent être modifiées. - <table> - <title>Options de configuration</title> - <tgroup cols="3"> - <thead> - <row> - <entry>Nom</entry> - <entry>Par défaut</entry> - <entry>Modifiable</entry> - </row> - </thead> - <tbody> - <row> - <entry>define_syslog_variables</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>highlight.bg</entry> - <entry>HL_BG_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.comment</entry> - <entry>HL_COMMENT_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.default</entry> - <entry>HL_DEFAULT_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.html</entry> - <entry>HL_HTML_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.keyword</entry> - <entry>HL_KEYWORD_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>highlight.string</entry> - <entry>HL_STRING_COLOR</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>allow_call_time_pass_reference</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>asp_tags</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>display_errors</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>display_startup_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>enable_dl</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>error_append_string</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>error_prepend_string</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>expose_php</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>html_errors</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>ignore_user_abort</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>implicit_flush</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>log_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>magic_quotes_gpc</entry> - <entry>"1"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>magic_quotes_runtime</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>magic_quotes_sybase</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>output_buffering</entry> - <entry>"0"</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>output_handler</entry> - <entry>NULL</entry> - <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>register_argc_argv</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>register_globals</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>short_open_tag</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> - </row> - <row> - <entry>sql.safe_mode</entry> - <entry>"0"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>track_errors</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>y2k_compliance</entry> - <entry>"0"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>arg_separator</entry> - <entry>"&"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_append_file</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>auto_prepend_file</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>doc_root</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>default_charset</entry> - <entry>SAPI_DEFAULT_CHARSET</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>default_mimetype</entry> - <entry>SAPI_DEFAULT_MIMETYPE</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>error_log</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>extension_dir</entry> - <entry>PHP_EXTENSION_DIR</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>gpc_order</entry> - <entry>"GPC"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>include_path</entry> - <entry>PHP_INCLUDE_PATH</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>max_execution_time</entry> - <entry>"30"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>open_basedir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>safe_mode_exec_dir</entry> - <entry>"1"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_max_filesize</entry> - <entry>"2M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>file_uploads</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>post_max_size</entry> - <entry>"8M"</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>upload_tmp_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>user_dir</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>variables_order</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>SMTP</entry> - <entry>"localhost"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>browscap</entry> - <entry>NULL</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>error_reporting</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>memory_limit</entry> - <entry>"8M"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>precision</entry> - <entry>"14"</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>sendmail_from</entry> - <entry>NULL</entry> - <entry>PHP_INI_ALL</entry> - </row> - <row> - <entry>sendmail_path</entry> - <entry>DEFAULT_SENDMAIL_PATH</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>disable_functions</entry> - <entry>""</entry> - <entry>PHP_INI_SYSTEM</entry> - </row> - <row> - <entry>allow_url_fopen</entry> - <entry>"1"</entry> - <entry>PHP_INI_ALL</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - <table> + </para> + <para> + <table> + <title>Option de configuration</title> + <tgroup cols="3"> + <thead> + &ini.table.top; + </thead> + <tbody> + <row> + <entry>com.allow_dcom</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_typelib</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_verbose</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.autoregister_casesensitive</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>com.typelib_file</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>crack.default_dictionary</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>exif.encode_unicode</entry> + <entry>"ISO-8859-15"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_unicode_motorola</entry> + <entry>"UCS-2BE"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_unicode_intel</entry> + <entry>"UCS-2LE"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.encode_jis</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_jis_motorola</entry> + <entry>"JIS"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>exif.decode_jis_intel</entry> + <entry>"JIS"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>fbsql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.generate_warnings</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.autocommit</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_links</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_connections</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.max_results</entry> + <entry>"128"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.batchSize</entry> + <entry>"1000"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_user</entry> + <entry>"_SYSTEM"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_password</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_database</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>fbsql.default_database_password</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hwapi.allow_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hyerwave.allow_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>hyperwave.default_port</entry> + <entry>"418"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.input_encoding</entry> + <entry>ICONV_INPUT_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.output_encoding</entry> + <entry>ICONV_OUTPUT_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>iconv.internal_encoding</entry> + <entry>ICONV_INTERNAL_ENCODING</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ifx.blobinfile</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.textasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.byteasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.charasvarchar</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ifx.nullformat</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ingres.default_database</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ingres.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>ibase.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.timestampformat</entry> + <entry>"%m/%d/%Y%H:%M:%S"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.dateformat</entry> + <entry>"%m/%d/%Y"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ibase.timeformat</entry> + <entry>"%H:%M:%S"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.class.path</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.home</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library.path</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library</entry> + <entry>JAVALIB</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>java.library</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ldap.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mbstring.detect_order</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.http_input</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.http_output</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.internal_encoding</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.substitute_character</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mbstring.func_overload</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mcrypt.algorithms_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mcrypt.modes_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mime_magic.magicfile</entry> + <entry>"/usr/share/misc/magic.mime"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mssql.max_procs</entry> + <entry>"25"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.min_error_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.min_message_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.compatability_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.connect_timeout</entry> + <entry>"5"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.timeout</entry> + <entry>"60"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.textsize</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.textlimit</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.batchsize</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mssql.datetimeconvert</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>mysql.default_host</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_password</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_port</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>mysql.default_socket</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ncurses.value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ncurses.string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>odbc.default_db</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.default_user</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.default_pw</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.defaultlrl</entry> + <entry>"4096"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.defaultbinmode</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>odbc.check_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pfpro.defaulthost</entry> + <entry>"test.signio.com"</entry> + <entry></entry> + </row> + <row> + <entry>pfpro.defaulthost</entry> + <entry>"test-payflow.verisign.com"</entry> + <entry></entry> + </row> + <row> + <entry>pfpro.defaultport</entry> + <entry>"443"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.defaulttimeout</entry> + <entry>"30"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxyaddress</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxyport</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxylogon</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pfpro.proxypassword</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pgsql.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.auto_reset_persistent</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>pgsql.ignore_notice</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>pgsql.log_notice</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.save_path</entry> + <entry>"/tmp"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.name</entry> + <entry>"PHPSESSID"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.save_handler</entry> + <entry>"files"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.auto_start</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.gc_probability</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.gc_maxlifetime</entry> + <entry>"1440"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.serialize_handler</entry> + <entry>"php"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_lifetime</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_path</entry> + <entry>"/"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_domain</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cookie_secure</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_cookies</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_only_cookies</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.referer_check</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.entropy_file</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.entropy_length</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cache_limiter</entry> + <entry>"nocache"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.cache_expire</entry> + <entry>"180"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>session.use_trans_sid</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>session.encode_sources</entry> + <entry>"globals,track"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extname.global_value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extname.global_string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.active</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.bail</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.warning</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.callback</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>assert.quiet_eval</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>safe_mode_protected_env_vars</entry> + <entry>SAFE_MODE_PROTECTED_ENV_VARS</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_allowed_env_vars</entry> + <entry>SAFE_MODE_ALLOWED_ENV_VARS</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>url_rewriter.tags</entry> + <entry>"a=href,area=href,frame=src,form=fakeentry"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.allow_persistent</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.max_persistent</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.max_links</entry> + <entry>"-1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>sybct.min_server_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.min_client_severity</entry> + <entry>"10"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sybct.hostname</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>tokenizer.global_value</entry> + <entry>"42"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>tokenizer.global_string</entry> + <entry>"foobar"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>vpopmail.directory</entry> + <entry>""</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>zlib.output_compression</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>zlib.output_compression_level</entry> + <entry>"-1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>define_syslog_variables</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.bg</entry> + <entry>HL_BG_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.comment</entry> + <entry>HL_COMMENT_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.default</entry> + <entry>HL_DEFAULT_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.html</entry> + <entry>HL_HTML_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.keyword</entry> + <entry>HL_KEYWORD_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>highlight.string</entry> + <entry>HL_STRING_COLOR</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>allow_call_time_pass_reference</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>asp_tags</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>display_errors</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>display_startup_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>enable_dl</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>expose_php</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>html_errors</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>xmlrpc_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>xmlrpc_error_number</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_user_abort</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>implicit_flush</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>log_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>log_errors_max_len</entry> + <entry>"1024"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_repeated_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>ignore_repeated_source</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>magic_quotes_gpc</entry> + <entry>"1"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>magic_quotes_runtime</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>magic_quotes_sybase</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>output_buffering</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>output_handler</entry> + <entry>NULL</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>register_argc_argv</entry> + <entry>"1"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>register_globals</entry> + <entry>"0"</entry> + <entry>PHP_INI_PERDIR|PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_include_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_gid</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>short_open_tag</entry> + <entry>DEFAULT_SHORT_OPEN_TAG</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>sql.safe_mode</entry> + <entry>"0"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>track_errors</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>y2k_compliance</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>unserialize_callback_func</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>arg_separator.output</entry> + <entry>"&"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>arg_separator.input</entry> + <entry>"&"</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>auto_append_file</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>auto_prepend_file</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM|PHP_INI_PERDIR</entry> + </row> + <row> + <entry>doc_root</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>default_charset</entry> + <entry>SAPI_DEFAULT_CHARSET</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>default_mimetype</entry> + <entry>SAPI_DEFAULT_MIMETYPE</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_log</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>extension_dir</entry> + <entry>PHP_EXTENSION_DIR</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>gpc_order</entry> + <entry>"GPC"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>include_path</entry> + <entry>PHP_INCLUDE_PATH</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>max_execution_time</entry> + <entry>"30"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>open_basedir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>safe_mode_exec_dir</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>upload_max_filesize</entry> + <entry>"2M"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>file_uploads</entry> + <entry>"1"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>post_max_size</entry> + <entry>"8M"</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>upload_tmp_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>user_dir</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>variables_order</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_append_string</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>error_prepend_string</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>SMTP</entry> + <entry>"localhost"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>smtp_port</entry> + <entry>25</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>browscap</entry> + <entry>NULL</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>error_reporting</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>memory_limit</entry> + <entry>"8M"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>precision</entry> + <entry>"14"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sendmail_from</entry> + <entry>NULL</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>sendmail_path</entry> + <entry>DEFAULT_SENDMAIL_PATH</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>disable_functions</entry> + <entry>""</entry> + <entry>PHP_INI_SYSTEM</entry> + </row> + <row> + <entry>allow_url_fopen</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>always_populate_raw_post_data</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>xbithack</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>engine</entry> + <entry>"1"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>last_modified</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>child_terminate</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + <row> + <entry>async_send</entry> + <entry>"0"</entry> + <entry>PHP_INI_ALL</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <table> <title>Définition des constantes PHP_INI_*</title> - <tgroup cols="3"> - <thead> - <row> + <tgroup cols="3"> + <thead> + <row> <entry>Constante</entry> <entry>Valeur</entry> <entry>Signification</entry> - </row> - </thead> - <tbody> - <row> - <entry>PHP_INI_USER</entry> - <entry>1</entry> - <entry>La valeur peut être modifiée dans un script</entry> - </row> - <row> - <entry>PHP_INI_PERDIR</entry> - <entry>2</entry> - <entry>La valeur peut être modifiée dans le fichier <filename>.htaccess</filename></entry> - </row> - <row> - <entry>PHP_INI_SYSTEM</entry> - <entry>4</entry> - <entry>La valeur peut être modifiée dans <filename>php.ini</filename> ou - <filename>httpd.conf</filename></entry> - </row> - <row> - <entry>PHP_INI_ALL</entry> - <entry>7</entry> + </row> + </thead> + <tbody> + <row> + <entry>PHP_INI_USER</entry> + <entry>1</entry> + <entry> + La valeur peut être modifiée dans un script + </entry> + </row> + <row> + <entry>PHP_INI_PERDIR</entry> + <entry>2</entry> + <entry> + La valeur peut être modifiée dans le + fichier &htaccess; et les directives d'un vhost + </entry> + </row> + <row> + <entry>PHP_INI_SYSTEM</entry> + <entry>4</entry> + <entry> + La valeur peut être modifiée dans &php.ini; ou + &httpd.conf; (mais pas dans les + blocs vhost de &httpd.conf; + </entry> + </row> + <row> + <entry>PHP_INI_ALL</entry> + <entry>7</entry> <entry>La valeur peut être modifiée n'importe où</entry> - </row> - </tbody> - </tgroup> - </table> - </para> - <para> - Voir aussi - <function>ini_alter</function>, - <function>ini_get</function> et - <function>ini_restore</function> - </para> - </refsect1> - </refentry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + Voir aussi + <function>ini_alter</function>, + <function>ini_get</function> et + <function>ini_restore</function> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: @@ -404,4 +1285,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file Index: phpdoc-fr/reference/info/functions/php-logo-guid.xml diff -u phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.1 phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.2 --- phpdoc-fr/reference/info/functions/php-logo-guid.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/php-logo-guid.xml Fri May 16 07:35:51 2003 @@ -20,6 +20,12 @@ </para> </note> </para> + <para> + Voir aussi + <function>phpinfo</function>, + <function>phpversion</function>, et + <function>phpcredits</function>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/php-sapi-name.xml diff -u phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.1 phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.2 --- phpdoc-fr/reference/info/functions/php-sapi-name.xml:1.1 Sun Apr 14 20:31:16 2002 +++ phpdoc-fr/reference/info/functions/php-sapi-name.xml Fri May 16 07:35:51 2003 @@ -22,15 +22,17 @@ </simpara> <para> <example> - <title>Exemple <function>php_sapi_name</function></title> + <title>Exemple avec <function>php_sapi_name</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $inter_type = php_sapi_name(); if ($inter_type == "cgi") print "Vous utilisez CGI PHP\n"; else print "Vous n'utilisez pas CGI PHP\n"; -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/php-uname.xml diff -u phpdoc-fr/reference/info/functions/php-uname.xml:1.1 phpdoc-fr/reference/info/functions/php-uname.xml:1.2 --- phpdoc-fr/reference/info/functions/php-uname.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/php-uname.xml Fri May 16 07:35:51 2003 @@ -20,13 +20,15 @@ </simpara> <para> <example> - <title>Exemple <function>php_uname</function></title> + <title>Exemple avec <function>php_uname</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php if (substr(php_uname(), 0, 7) == "Windows") { die("Désolé, ce script ne fonctionne pas sous Windows.\n"); } -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/phpcredits.xml diff -u phpdoc-fr/reference/info/functions/phpcredits.xml:1.1 phpdoc-fr/reference/info/functions/phpcredits.xml:1.2 --- phpdoc-fr/reference/info/functions/phpcredits.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpcredits.xml Fri May 16 07:35:51 2003 @@ -4,16 +4,16 @@ <refentry id="function.phpcredits"> <refnamediv> <refname>phpcredits</refname> - <refpurpose>Imprime les crédits de PHP.</refpurpose> + <refpurpose>Imprime les crédits de &php;</refpurpose> </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>void</type><methodname>phpcredits</methodname> - <methodparam><type>int</type><parameter>flag</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>void</type><methodname>phpcredits</methodname> + <methodparam choice="opt"><type>int</type><parameter>flag</parameter></methodparam> + </methodsynopsis> <para> - <function>phpcredits</function> affiche la liste des développeurs PHP, + <function>phpcredits</function> affiche la liste des développeurs &php;, des modules, etc... Elle génère le code HTML approprié pour insérer les informations dans une page. Le paramètre <parameter>flag</parameter> indique les informations @@ -22,9 +22,11 @@ code suivant : <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php phpcredits(CREDITS_GENERAL); -?> +?> +]]> </programlisting> </informalexample> Et pour afficher la liste des développeurs et du groupe @@ -32,27 +34,32 @@ utiliserez <informalexample> <programlisting role="php"> -<?php +<![CDATA[ +<?php phpcredits(CREDITS_GROUP + CREDITS_DOCS + CREDITS_FULLPAGE); -?> +?> +]]> </programlisting> </informalexample> Si vous vous sentez l'envie de placer tous les crédits dans votre page, vous pouvez utiliser ceci : <informalexample> <programlisting role="php"> -<html> - <head> - <title>Ma page de crédits</title> - </head> - <body> - <?php - // Un peu de votre code - phpcredits(CREDITS_ALL + CREDITS_FULLPAGE); - // Un autre peu de votre code - ?> - </body> -</html> + +<![CDATA[ +<html> + <head> + <title>Ma page de crédits</title> + </head> + <body> +<?php + // Un peu de votre code + phpcredits(CREDITS_ALL); + // Un autre peu de votre code +?> + </body> +</html> +]]> </programlisting> </informalexample> </para> @@ -72,20 +79,20 @@ </thead> <tbody> <row> - <entry>CREDITS_ALL</entry> + <entry><constant>CREDITS_ALL</constant></entry> <entry> Tous les crédits, équivalent à : - CREDITS_DOCS + CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES + - CREDITS_FULLPAGE. La fonction génère + <constant>CREDITS_DOCS</constant> + <constant>CREDITS_GENERAL</constant> + <constant>CREDITS_GROUP</constant> + <constant>CREDITS_MODULES</constant> + + <constant>CREDITS_FULLPAGE</constant>. La fonction génère alors une page HTML complète. </entry> </row> <row> - <entry>CREDITS_DOCS</entry> + <entry><constant>CREDITS_DOCS</constant></entry> <entry>Les crédits du groupe de documentation</entry> </row> <row> - <entry>CREDITS_FULLPAGE</entry> + <entry><constant>CREDITS_FULLPAGE</constant></entry> <entry> En général, ce paramètre est utilisé avec d'autres constantes. Il indique que la page ainsi générée doit @@ -94,24 +101,24 @@ </entry> </row> <row> - <entry>CREDITS_GENERAL</entry> + <entry><constant>CREDITS_GENERAL</constant></entry> <entry> Crédits Généraux : conception et design du langage, - auteurs de PHP 4.0, module SAPI. + auteurs de &php; 4.0, module SAPI. </entry> </row> <row> - <entry>CREDITS_GROUP</entry> + <entry><constant>CREDITS_GROUP</constant></entry> <entry>Une liste des développeurs principaux</entry> </row> <row> - <entry>CREDITS_MODULES</entry> - <entry>Une liste des extensions de PHP, et leurs auteurs</entry> + <entry><constant>CREDITS_MODULES</constant></entry> + <entry>Une liste des extensions de &php;, et leurs auteurs</entry> </row> <row> - <entry>CREDITS_SAPI</entry> + <entry><constant>CREDITS_SAPI</constant></entry> <entry>Cette constante est définie, mais elle n'est toujours pas - utilisée sous PHP 4.0.1pl2. + utilisée sous &php; 4.0.1pl2. </entry> </row> </tbody> @@ -120,7 +127,6 @@ </para> <para> Voir aussi - <function>version_compare</function>, <function>phpinfo</function>, <function>phpversion</function> et <function>php_logo_guid</function>. Index: phpdoc-fr/reference/info/functions/phpinfo.xml diff -u phpdoc-fr/reference/info/functions/phpinfo.xml:1.1 phpdoc-fr/reference/info/functions/phpinfo.xml:1.2 --- phpdoc-fr/reference/info/functions/phpinfo.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpinfo.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.phpinfo"> <refnamediv> <refname>phpinfo</refname> - <refpurpose>Affiche de nombreuses informations sur le PHP.</refpurpose> + <refpurpose>Affiche de nombreuses informations sur le PHP</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -19,27 +19,136 @@ compilé comme module), environnement PHP, chemins, utilisateur, en-têtes HTTP, et licence GNU Public License. </para> - <para> - Les affichages peuvent être personnalisés en passant une - ou plusieurs valeurs parmi les suivantes, comme paramètre - optionnel <parameter>what</parameter> : - <itemizedlist> - <listitem><simpara>INFO_GENERAL</simpara></listitem> - <listitem><simpara>INFO_CREDITS</simpara></listitem> - <listitem><simpara>INFO_CONFIGURATION</simpara></listitem> - <listitem><simpara>INFO_MODULES</simpara></listitem> - <listitem><simpara>INFO_ENVIRONMENT</simpara></listitem> - <listitem><simpara>INFO_VARIABLES</simpara></listitem> - <listitem><simpara>INFO_LICENSE</simpara></listitem> - <listitem><simpara>INFO_ALL</simpara></listitem> - </itemizedlist> - </para> - <para> + <para> + Comme tous les systèmes sont configurés différemment, + <function>phpinfo</function> sert généralement à vérifier la + <link linkend="configuration">configuration</link> ainsi que les + <link linkend="language.variables.predefined">variables prédéfinies</link>, + pour une plate-forme donnée. De plus, <function>phpinfo</function> + est un outil de débogage, car il affiche le contenu de toutes les + variables EGPCS (Environnement, GET, POST, Cookie, Serveur). + </para> + <para> + L'affichage peut être personnalisé en utilisant une ou plusieurs des + constantes suivantes. Elles sont combinables avec l'opérateur + <link linkend="language.operators.bitwise">OR</link>, et doivent être + passées dans le paramètre <parameter>what</parameter>. + Vous pouvez aussi les additionner. + <table> + <title>Options de <function>phpinfo</function></title> + <tgroup cols="3"> + <thead> + <row> + <entry>Nom (constant)</entry> + <entry>Valeur</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry>INFO_GENERAL</entry> + <entry>1</entry> + <entry> + La ligne de configuration, le chemin du &php.ini;, la date de + compilation, le serveur web, le système, etc... + </entry> + </row> + <row> + <entry>INFO_CREDITS</entry> + <entry>2</entry> + <entry> + Les crédits de PHP 4. Voir aussi <function>phpcredits</function>. + </entry> + </row> + <row> + <entry>INFO_CONFIGURATION</entry> + <entry>4</entry> + <entry> + Valeurs courantes locales et générales des directives PHP. + Voyez aussi la fonction <function>ini_get</function>. + </entry> + </row> + <row> + <entry>INFO_MODULES</entry> + <entry>8</entry> + <entry> + Modules chargées et leur configuration spécifique. + </entry> + </row> + <row> + <entry>INFO_ENVIRONMENT</entry> + <entry>16</entry> + <entry> + Informations sur les environnements de variables, qui sont + disponibles dans la variable <varname>$_ENV</varname>. + </entry> + </row> + <row> + <entry>INFO_VARIABLES</entry> + <entry>32</entry> + <entry> + Affiche toutes les + <link linkend="language.variables.predefined">variables prédéfinies</link>, + issues de l'environnement, la méthode GET, la méthode POST, les + cookies et le serveur. + </entry> + </row> + <row> + <entry>INFO_LICENSE</entry> + <entry>64</entry> + <entry> + La licence PHP. Voir aussi + <ulink url="&url.php.license;">la FAQ de a licence</ulink>. + </entry> + </row> + <row> + <entry>INFO_ALL</entry> + <entry>-1</entry> + <entry> + Affiche toutes les informations sus-citées. C'est la valeur + par défaut. + </entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <para> + <example> + <title>Exemple avec <function>phpinfo</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +// Affiche toutes les information, comme le ferait INFO_ALL +phpinfo(); + +// Affiche uniquement le module d'information. +// phpinfo(8) fournirait les mêmes informations. +phpinfo(INFO_MODULES); + +?> +]]> + </programlisting> + </example> + </para> + <note> + <para> + Une partie des informations affichées sont désactivées si + la directive <literal>expose_php</literal> est configurée avec la valeur + <literal>off</literal>. Cela inclus les logos PHP et Zend, ainsi que les + crédits. + </para> + </note> + <para> Voir aussi <function>phpversion</function>, - <function>phpcredits</function> et - <function>php_logo_guid</function> - </para> + <function>phpcredits</function>, + <function>php_logo_guid</function>, + <function>ini_get</function>, + <function>ini_set</function> et la section sur les + <link linkend="language.variables.predefined">variables prédéfinies</link>. + </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/phpversion.xml diff -u phpdoc-fr/reference/info/functions/phpversion.xml:1.1 phpdoc-fr/reference/info/functions/phpversion.xml:1.2 --- phpdoc-fr/reference/info/functions/phpversion.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/phpversion.xml Fri May 16 07:35:51 2003 @@ -5,7 +5,7 @@ <refnamediv> <refname>phpversion</refname> <refpurpose> - Retourne le numéro de la version courante de PHP. + Retourne le numéro de la version courante de PHP </refpurpose> </refnamediv> <refsect1> @@ -17,19 +17,33 @@ <para> <function>phpversion</function> retourne le numéro de la version courante de PHP. - <example> + </para> + <note> + <para> + Cette information est aussi disponible via la constante + prédéfinie <constant>PHP_VERSION</constant>. + </para> + </note> + <para> + <example> <title>Exemple avec <function>phpversion</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche le numéro de version courante du PHP. - echo "PHP Version: ".phpversion(); -?> + echo "PHP Version : ".phpversion(); +?> +]]> </programlisting> </example> </para> <para> Voir aussi - <function>phpinfo</function>. + <function>version_compare</function>, + <function>phpinfo</function>, + <function>phpcredits</function>, + <function>php_logo_guid</function> et + <function>zend_version</function>. </para> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/putenv.xml diff -u phpdoc-fr/reference/info/functions/putenv.xml:1.1 phpdoc-fr/reference/info/functions/putenv.xml:1.2 --- phpdoc-fr/reference/info/functions/putenv.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/putenv.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.putenv"> <refnamediv> <refname>putenv</refname> - <refpurpose>Fixe la valeur d'une variable d'environnement.</refpurpose> + <refpurpose>Fixe la valeur d'une variable d'environnement</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -40,9 +40,11 @@ <example> <title>Modification d'une variable d'environnement</title> <programlisting role="php"> -<?php -putenv("UNIQID=$uniqid"); -?> +<![CDATA[ +<?php + putenv("UNIQID=$uniqid"); +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml diff -u phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.1 phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.2 --- phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml:1.1 Sun Apr 14 20:31:17 2002 +++ phpdoc-fr/reference/info/functions/set-magic-quotes-runtime.xml Fri May 16 07:35:51 2003 @@ -10,10 +10,10 @@ </refnamediv> <refsect1> <title>Description</title> - <methodsynopsis> - <type>long</type><methodname>set_magic_quotes_runtime</methodname> - <methodparam><type>int</type><parameter>new_setting</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>set_magic_quotes_runtime</methodname> + <methodparam><type>int</type><parameter>new_setting</parameter></methodparam> + </methodsynopsis> <simpara> <function>set_magic_quotes_runtime</function> active/désactive l'option <link linkend="ini.magic-quotes-runtime">magic_quotes_runtime</link>. Index: phpdoc-fr/reference/info/functions/set-time-limit.xml diff -u phpdoc-fr/reference/info/functions/set-time-limit.xml:1.1 phpdoc-fr/reference/info/functions/set-time-limit.xml:1.2 --- phpdoc-fr/reference/info/functions/set-time-limit.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/set-time-limit.xml Fri May 16 07:35:51 2003 @@ -4,7 +4,7 @@ <refentry id="function.set-time-limit"> <refnamediv> <refname>set_time_limit</refname> - <refpurpose>Fixe le temps maximum d'exécution d'un script.</refpurpose> + <refpurpose>Fixe le temps maximum d'exécution d'un script</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -17,7 +17,7 @@ d'un script, en secondes. Si cette limite est atteinte, le script s'interrompt, et renvoie une erreur fatale. La valeur par défaut est 30 secondes ou, si c'est le cas, la valeur de la directive max_execution_time définie dans le - <link linkend="configuration.file">fichier de configuration</link>. + &php.ini;. Si la valeur est zéro, il n'y a alors aucune limite imposée. </simpara> <simpara> @@ -31,11 +31,10 @@ </simpara> <simpara> Notez que <function>set_time_limit</function> n'a pas - d'effet lorsque PHP fonctionne en mode <link linkend="ini.safe-mode">safe mode</link>. Il + d'effet lorsque PHP fonctionne en mode &safemode;. Il n'y a pas d'autre solution que de changer de mode, ou de modifier la durée maximale - d'exécution dans le <link linkend="configuration.file"> - fichier de configuration</link>. + d'exécution dans le &php.ini;. </simpara> </refsect1> </refentry> Index: phpdoc-fr/reference/info/functions/version-compare.xml diff -u phpdoc-fr/reference/info/functions/version-compare.xml:1.1 phpdoc-fr/reference/info/functions/version-compare.xml:1.2 --- phpdoc-fr/reference/info/functions/version-compare.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/version-compare.xml Fri May 16 07:35:51 2003 @@ -12,9 +12,7 @@ <type>int</type><methodname>version_compare</methodname> <methodparam><type>string</type><parameter>version1</parameter></methodparam> <methodparam><type>string</type><parameter>version2</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - operator - </parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>operator</parameter></methodparam> </methodsynopsis> <para> <function>version_compare</function> compare @@ -46,13 +44,15 @@ <example> <title>Exemple avec <function>version_compare</function></title> <programlisting role="php"> -<?php -echo version_compare("4.0.4", "4.0.6"); +<![CDATA[ +<?php + echo version_compare("4.0.4", "4.0.6"); // affiche -1 -echo version_compare("4.0.4", "4.0.6", "<"); -echo version_compare("4.0.6", "4.0.6", "eq"); + echo version_compare("4.0.4", "4.0.6", "<"); + echo version_compare("4.0.6", "4.0.6", "eq"); // affichent tous 1 -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/zend-version.xml diff -u phpdoc-fr/reference/info/functions/zend-version.xml:1.1 phpdoc-fr/reference/info/functions/zend-version.xml:1.2 --- phpdoc-fr/reference/info/functions/zend-version.xml:1.1 Sun Apr 14 20:31:18 2002 +++ phpdoc-fr/reference/info/functions/zend-version.xml Fri May 16 07:35:51 2003 @@ -4,26 +4,28 @@ <refentry id="function.zend-version"> <refnamediv> <refname>zend_version</refname> - <refpurpose>Lit la version courante du moteur Zend.</refpurpose> + <refpurpose>Lit la version courante du moteur Zend</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>zend_version</methodname> - <methodparam><type>void</type><parameter/></methodparam> + <void/> </methodsynopsis> <para> <function>zend_version</function> retourne une chaîne contenant le numéro de version du moteur d'analyse Zend, pour l'exécutable PHP courant. <example> - <title>Exemple <function>zend_version</function></title> + <title>Exemple avec <function>zend_version</function></title> <programlisting role="php"> -<?php +<![CDATA[ +<?php // affiche e.g. 'Version du moteur Zend: 1.0.4' // ou bien quelque chose d'approchant si votre version de PHP date un peu echo "Version du moteur Zend: ".zend_version(); -?> +?> +]]> </programlisting> </example> </para> Index: phpdoc-fr/reference/info/functions/get-include-path.xml +++ phpdoc-fr/reference/info/functions/get-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.get-include-path"> <refnamediv> <refname>get_include_path</refname> <refpurpose> Lit la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>get_include_path</methodname> <void /> </methodsynopsis> <simpara> <function>get_include_path</function> lit la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link>. </simpara> <para> <example> <title>Exemple avec <function>get_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php // Fonctionne depuis PHP 4.3.0 print get_include_path(); // Fonctionne sur toutes les versions print ini_get('include_path'); ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_get</function>, <function>restore_include_path</function>, <function>set_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/getopt.xml +++ phpdoc-fr/reference/info/functions/getopt.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.getopt"> <refnamediv> <refname>getopt</refname> <refpurpose>Lit des options passés dans la ligne de commande</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>getopt</methodname> <methodparam><type>string</type><parameter>options</parameter></methodparam> </methodsynopsis> <para> <function>getopt</function> retourne un tableau associatif avec la liste des paire option/valeur, lues dans la ligne de commande, et basée sur le format d'option <parameter>options</parameter>, ou bien &false; en cas d'erreur. <example> <title>Exemple avec <function>getopt</function></title> <programlisting> <![CDATA[ $options = getopt("f:hp:"); // Analyse la ligne de commande (i.e. $GLOBALS['argv']) ]]> </programlisting> </example> </para> <para> Le paramètre <parameter>options</parameter> peut contenir les éléments suivants : caractères, ou caractères suivis d'un signe deux-points pour indiquer un élément optionnel. Par exemple, une option appelée <literal>x</literal> correspond à une option <literal>-x</literal>, et une chaîne <literal>x:</literal> correspond à une option de type <literal>-x argument</literal>. Cela importe peut si un argument a des espaces auparavant. </para> <para> <function>getopt</function> retourne un tableau avec les options et leur valeur. Si une option n'a pas d'argument, sa valeur prendra &false;. <note> <para> <function>getopt</function> requiert la directive <link linkend="ini.register-argc-argv">register_argc_argv</link> activée. </para> </note> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/main.xml +++ phpdoc-fr/reference/info/functions/main.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.main"> <refnamediv> <refname>main</refname> <refpurpose>Fausse documentation pour <function>main</function></refpurpose> </refnamediv> <refsect1> <title>Description</title> <para> Il n'y a pas de fonction appelée <function>main</function>, hormis dans les sources &php;. En &php; 4.3.0, un nouveau type de gestion d'erreur a été introduit dans les sources de &php; : php_error_docref. Une des fonctionnalité était de fournir un lien vers la page de manuel de &php; lorsque la directive <link linkend="ini.html-errors">html_errors</link> était activée (par défaut). </para> <para> Certains messages d'erreur faisaient référence à une page de manuel pour la fonction <function>main</function> alors que cette page n'existe pas. </para> <para> <table> <title>Erreurs connues pour diriger sur la page <function>main</function></title> <tgroup cols="2"> <thead> <row> <entry>Nom de la fonction</entry> <entry>Ne pointe plus sur cette page depuis la version</entry> </row> </thead> <tbody> <row> <entry><function>include</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>include_once</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>require</function></entry> <entry>4.3.1</entry> </row> <row> <entry><function>require_once</function></entry> <entry>4.3.1</entry> </row> </tbody> </tgroup> </table> </para> <para> Voir aussi <link linkend="ini.html-errors">html_errors</link> et <link linkend="ini.display-errors">display_errors</link>. </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/php-ini-scanned-files.xml +++ phpdoc-fr/reference/info/functions/php-ini-scanned-files.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.php-ini-scanned-files"> <refnamediv> <refname>php_ini_scanned_files</refname> <refpurpose>Retourne la liste des fichiers .ini analysédans les dossiers de configuration supplémentaires</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>php_ini_scanned_files</methodname> <void/> </methodsynopsis> <simpara> <function>php_ini_scanned_files</function> retourne une liste de nom de fichiers de configuration analysés, en plus de &php.ini;. Cette liste est au format CSV. Ces fichiers sont situé dans un dossier défini par l'option <option>--with-config-file-scan-dir</option>, définie au moment de la compilation. </simpara> <simpara> <function>php_ini_scanned_files</function> retourne une chaîne de caractères, et les noms de fichiers sont séparés par des virgules. Si <option>--with-config-files-scan-dir</option> n'était pas configuré, &false; est retourné. Si cette option était configurée, mais que le dossier était vide, une chaîne vide est retournée. Si un fichier n'est pas lisible, le nom du fichier sera inclus dans la liste, mais une erreur sera générée. Cette erreur sera visible au moment de la compilation, et lorsque vous appelerez la fonction <function>php_ini_scanned_files</function>. </simpara> <simpara> Les fichiers retournés inclus le chemin, comme déclaré dans la directive <literal>--with-config-file-scan-dir</literal>. De plus, chaque virgule est suivi d'une nouvelle ligne. </simpara> <para> <example> <title>Un exemple simple de liste retournée par <function>php_ini_scanned_files</function></title> <programlisting role="php"> <![CDATA[ <?php if ($filelist = php_ini_scanned_files()) { if (strlen($filelist) > 0) { $files = explode(',', $filelist); foreach ($files as $file) { echo "<li>" . trim($file) . "</li>\n"; } } } ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_set</function> et <function>phpinfo</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/restore-include-path.xml +++ phpdoc-fr/reference/info/functions/restore-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.restore-include-path"> <refnamediv> <refname>restore_include_path</refname> <refpurpose> Restaure la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>restore_include_path</methodname> <void /> </methodsynopsis> <simpara> <methodname>restore_include_path</methodname> restaure la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link> sa valeur originale de dbut de script, telle qu'inscrite dans le &php.ini;. </simpara> <para> <example> <title>Exemple <function>restore_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php print get_include_path(); // .:/usr/local/lib/php set_include_path('/inc'); print get_include_path(); // /inc // Fonctionne depuis PHP 4.3.0 restore_include_path(); // Fonctionne sur toutes les versions ini_restore('include_path'); print get_include_path(); // .:/usr/local/lib/php ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_restore</function>, <function>set_include_path</function>, <function>get_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-fr/reference/info/functions/set-include-path.xml +++ phpdoc-fr/reference/info/functions/set-include-path.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <refentry id="function.set-include-path"> <refnamediv> <refname>set_include_path</refname> <refpurpose> Modifie la valeur de la directive de configuration include_path </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>set_include_path</methodname> <methodparam><type>string</type><parameter>new_include_path</parameter></methodparam> </methodsynopsis> <simpara> <function>set_include_path</function> modifie la valeur de la directive de configuration <link linkend="ini.include-path">include_path</link>, pour la dure du script en cours. <function>set_include_path</function> retourne l'ancienne valeur de <link linkend="ini.include-path">include_path</link> en cas de succs, et &false; sinon. </simpara> <para> <example> <title>Exemple avec <function>set_include_path</function></title> <programlisting role="php"> <![CDATA[ <?php // Fonctionne depuis PHP 4.3.0 set_include_path('/inc'); // Fonctionne sur toutes les versions ini_set('include_path', '/inc'); ?> ]]> </programlisting> </example> </para> <simpara> Voir aussi <function>ini_set</function>, <function>get_include_path</function>, <function>restore_include_path</function> et <function>include</function>. </simpara> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->