svn: /phpdoc/ru/trunk/reference/session/sessionhandlerinterface/ gc.xml
| From: | Sergey Panteleev | Date: | Wed, 02 Dec 2020 09:43:11 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/session/sessionhandlerinterface/ gc.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-8617@lists.php.net to get a copy of this message | ||
sergey Wed, 02 Dec 2020 09:43:11 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=351843
Log:
docs(ru): Updated by community
--
Provided by anonymous 1275 (lazytechwork@gmail.com)
Changed paths:
U phpdoc/ru/trunk/reference/session/sessionhandlerinterface/gc.xml
Modified: phpdoc/ru/trunk/reference/session/sessionhandlerinterface/gc.xml
===================================================================
--- phpdoc/ru/trunk/reference/session/sessionhandlerinterface/gc.xml 2020-12-02 06:30:18 UTC (rev
351842)
+++ phpdoc/ru/trunk/reference/session/sessionhandlerinterface/gc.xml 2020-12-02 09:43:11 UTC (rev
351843)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 343898 Maintainer: mch Status: ready -->
+<!-- EN-Revision: 351750 Maintainer: mch Status: ready -->
<!-- Reviewed: yes Maintainer: lex -->
<!-- $Revision$ -->
<refentry xml:id="sessionhandlerinterface.gc" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -7,12 +7,12 @@
<refname>SessionHandlerInterface::gc</refname>
<refpurpose>Очищает старые сессии</refpurpose>
</refnamediv>
-
+
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <modifier>abstract</modifier> <modifier>public</modifier>
<type>int</type><methodname>SessionHandlerInterface::gc</methodname>
-
<methodparam><type>int</type><parameter>maxlifetime</parameter></methodparam>
+ <modifier>abstract</modifier> <modifier>public</modifier> <type
class="union"><type>int</type><type>bool</type></type><methodname>SessionHandlerInterface::gc</methodname>
+
<methodparam><type>int</type><parameter>max_lifetime</parameter></methodparam>
</methodsynopsis>
<para>
Очищает сессии с истекшим сроком жизни. Вызывается
функцией <function>session_start</function>,
@@ -21,28 +21,51 @@
<link linkend="ini.session.gc-maxlifetime">session.gc_maxlifetime</link>.
</para>
</refsect1>
-
+
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
- <term><parameter>maxlifetime</parameter></term>
+ <term><parameter>max_lifetime</parameter></term>
<listitem>
<para>
- Сессии, которые не обновлялись в течение
<parameter>maxlifetime</parameter> секунд, будут удалены.
+ Сессии, которые не обновлялись в течение
<parameter>max_lifetime</parameter> секунд, будут удалены.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
-
+
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- &returns.session.storage.retval;
+ Возвращает количество удалённых сессий в случае
успешного выполнения, &return.falseforfailure;.
+ Обратите внимание, что это значение возвращается
внутри PHP для обработки.
</para>
</refsect1>
-
+
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.1.0</entry>
+ <entry>
+ До этой версии, функция возвращала &true; в случае
успешного выполнения.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </refsect1>
+
</refentry>
<!-- Keep this comment at the end of the file