1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 15:22:23 +01:00
Files
archived-doc-tr/reference/libxml/functions/libxml-use-internal-errors.xml
2022-11-17 16:43:09 +03:00

142 lines
3.4 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f90df97fa5ebfa6e7fcace04976900d6700467cc Maintainer: nilgun Status: ready -->
<refentry xml:id="function.libxml-use-internal-errors" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>libxml_use_internal_errors</refname>
<refpurpose>libxml hatalarını kapatarak kullanıcı tanımlı hataları mümkün
kılar</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>libxml_use_internal_errors</methodname>
<methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>hatalar_etkin</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
Standart libxml hatalarını iptal edip kullanıcı tanımlı hataları etkin
kılar.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>hatalar_etkin</parameter></term>
<listitem>
<para>
&true; atanırsa kullanıcı hataları etkin olur. &false; atanırsa iptal
olur. İptal edilmesi ayrıca mevcut libxml hatalarını da
temizleyecektir.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<parameter>hatalar_etkin</parameter> bağımsız değişkeninin önceki değerini
döndürür.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>hatalar_etkin</parameter> artık &null; olabiliyor.
Evvelce, &false; öntanımlıydı.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- <function>libxml_use_internal_errors</function> örneği</title>
<para>
Aşağıdaki örnekte işlevin döndürdüğü değer ve libxml hatalarının temel
kullanımı gösterilmiştir.
</para>
<programlisting role="php">
<![CDATA[
<?php
// Kullanıcı tanımlı hataları etkin kılalım
var_dump(libxml_use_internal_errors(true));
// Belgeyi yükleyelim
$doc = new DOMDocument;
if (!$doc->load('file.xml')) {
foreach (libxml_get_errors() as $error) {
// Hataları burada ele alıyoruz
}
libxml_clear_errors();
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
bool(false)
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>libxml_clear_errors</function></member>
<member><function>libxml_get_errors</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
-->