mirror of
https://github.com/php/doc-ro.git
synced 2026-03-25 16:02:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/ro/trunk@348194 c90b9560-bf6c-de11-be94-00142212c4b1
101 lines
2.5 KiB
XML
101 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- $Author$ -->
|
|
<!-- EN-Revision: 13bf1bc8f52ce8b4e26a2887313bcb3f1e00d36d Maintainer: simionea Status: ready -->
|
|
<!-- CREDITS: adiju -->
|
|
|
|
<refentry xml:id="function.restore-error-handler" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>restore_error_handler</refname>
|
|
<refpurpose>Restabilește funcția precedentă de gestionare a erorilor</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>restore_error_handler</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
Se utilizează după modificarea funcției de gestionare a erorilor cu ajutorul
|
|
<function>set_error_handler</function>, pentru a reveni la gestionarul
|
|
erorilor precedent (care poate fi cel încorporat, sau o funcție definită de
|
|
utilizator).
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Această funcție întotdeuna întoarce &true;.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemplu <function>restore_error_handler</function></title>
|
|
<para>
|
|
Decide dacă <function>unserialize</function> a cauzat o eroare, apoi
|
|
restabilește gestionarul de erori original.
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
function unserialize_handler($errno, $errstr)
|
|
{
|
|
echo "Invalid serialized value.\n";
|
|
}
|
|
|
|
$serialized = 'foo';
|
|
set_error_handler('unserialize_handler');
|
|
$original = unserialize($serialized);
|
|
restore_error_handler();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
Invalid serialized value.
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>error_reporting</function></member>
|
|
<member><function>set_error_handler</function></member>
|
|
<member><function>restore_exception_handler</function></member>
|
|
<member><function>trigger_error</function></member>
|
|
</simplelist>
|
|
</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:"~/.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
|
|
-->
|