1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 08:42:13 +01:00
Files
archived-doc-ru/reference/outcontrol/functions/flush.xml

91 lines
3.2 KiB
XML
Raw 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"?>
<!-- EN-Revision: 91ab4f5f898023b0eed0e642e1482ac11f749d20 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.flush">
<refnamediv>
<refname>flush</refname>
<refpurpose>Сбрасывает системный буфер вывода</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>flush</methodname>
<void/>
</methodsynopsis>
<para>
Сбрасывает системные буферы записи PHP и серверной части, которой пользуется PHP
(например: CGI, веб-сервер).
В среде командной строки функция <function>flush</function>
попытается сбросить только содержимое буферов, тогда как
в веб-контексте сбрасываются заголовки и содержимое буферов.
</para>
<note>
<simpara>
Функция <function>flush</function>, возможно, не сумеет переопределить
схему буферизации веб-сервера и работа функция не отразится
на буферизации на стороне клиента в браузере.
</simpara>
</note>
<note>
<simpara>
Функция не влияет на обработчики вывода пользовательского уровня,
например те, которые запускаются функциями <function>ob_start</function>
или <function>output_add_rewrite_var</function>.
</simpara>
</note>
<warning>
<simpara>
Функция <function>flush</function> может мешать обработчикам вывода,
которые устанавливают и отправляют заголовки в веб-контексте (например, функция-обработчик <function>ob_gzhandler</function>)
отправляя заголовки до того, как обработчики смогут это сделать.
</simpara>
</warning>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>ob_flush</function></member>
<member><function>ob_clean</function></member>
<member><function>ob_end_flush</function></member>
<member><function>ob_end_clean</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
-->