mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-23 16:48:22 +02:00
125 lines
3.2 KiB
XML
125 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: cdaea0421544885f02ff3d36bd203dc01b78299e Maintainer: yannick Status: ready -->
|
|
<!-- Reviewed: yes Maintainer: mikaelkael -->
|
|
|
|
<phpdoc:varentry xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="reserved.variables.phperrormsg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>$php_errormsg</refname>
|
|
<refpurpose>Le dernier message d'erreur</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
&warn.deprecated.feature-7-2-0;
|
|
<simpara>
|
|
Utilisez <function>error_get_last</function> plutôt.
|
|
</simpara>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<para>
|
|
<varname>$php_errormsg</varname> est une variable qui contient le texte
|
|
de la dernière erreur générée par PHP. Cette variable sera uniquement
|
|
accessible dans le même contexte d'exécution que celui de la ligne
|
|
qui a généré l'erreur, et uniquement si la directive de configuration
|
|
<link linkend="ini.track-errors">track_errors</link> est activée (elle est
|
|
désactivée par défaut).
|
|
</para>
|
|
<warning>
|
|
<simpara>
|
|
Si un gestionnaire d'erreurs définit par l'utilisateur est actif
|
|
(<function>set_error_handler</function>), <varname>$php_errormsg</varname> ne sera
|
|
définit que si le gestionnaire d'erreur retourne &false;.
|
|
</simpara>
|
|
</warning>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.0.0</entry>
|
|
<entry>
|
|
La directive <link linkend="ini.track-errors">track_errors</link> qui
|
|
cause <varname>$php_errormsg</varname> à être disponible à été supprimée.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>7.2.0</entry>
|
|
<entry>
|
|
La directive <link linkend="ini.track-errors">track_errors</link> qui
|
|
cause <varname>$php_errormsg</varname> à être disponible à été
|
|
rendu obsolète.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example xml:id="variable.phperrormsg.basic">
|
|
<title>Exemple avec <varname>$php_errormsg</varname></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
@strpos();
|
|
echo $php_errormsg;
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Wrong parameter count for strpos()
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>error_get_last</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
</phpdoc:varentry>
|
|
|
|
<!-- 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:"~/.phpdoc/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
|
|
-->
|