com doc/ja: Fix #77477: Document hard_timeout: appendices /ini.core.xml
| From: | Yoshinari Takaoka | Date: | Thu, 18 Mar 2021 17:02:39 +0000 |
| Subject: | com doc/ja: Fix #77477: Document hard_timeout: appendices /ini.core.xml | ||
| Groups: | php.doc.ja | ||
| Request: | Send a blank email to doc-ja+get-6259@lists.php.net to get a copy of this message | ||
Commit: 4efc877bf32d21d100ffc3031292c22549368efe
Author: Yoshinari Takaoka <mumumu@mumumu.org> Fri, 19 Mar 2021 02:02:39 +0900
Parents: c423924768a0a994649efe9c6cd5aa34e5d344b4
Branches: master
Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=4efc877bf32d21d100ffc3031292c22549368efe
Log:
Fix #77477: Document hard_timeout
I've encountered issues relating to the hard timeout, so having
this explained for myself in a few months time and others will be
handy.
ML post where hard_timeout was established (not linked in docs, but
may be useful):
http://php-news.ctrl-f5.net/message/php.internals/92559
Closes GH-491.
Bugs:
https://bugs.php.net/77477
Changed paths:
M appendices/ini.core.xml
Diff:
diff --git a/appendices/ini.core.xml b/appendices/ini.core.xml
index 1fa4fa9b05..20583fe10a 100644
--- a/appendices/ini.core.xml
+++ b/appendices/ini.core.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 3e08a8aae657492bdcdc7c550099ddf072042fa9 Maintainer: takagi Status: ready
-->
+<!-- EN-Revision: 52c463b1d9243f77739e5b9c4d0db7de79c96000 Maintainer: takagi Status: ready
-->
<!-- CREDITS: hirokawa,shimooka,mumumu -->
<section xml:id="ini.core" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -263,6 +263,23 @@
</term>
<listitem>
<para>
+ <link linkend="ini.max-execution-time">max_execution_time</link>
+ で設定されたタイムアウトに達すると、
+ PHPランタイムはリソースをgracefulに開放します。
+ リソースを開放する処理が何らかの原因で止まってしまった場合、
+ hard_timeout のカウントがここで設定した秒数行われます。
+ hard_timeout のタイムアウトに達すると、
+ PHP はgracefulにリソースを開放せずに終了します。
+ この値を 0 に設定すると、この機能は無効になります。
+ </para>
+ <para>
+ PHP が hard timeout で停止すると、
+ 以下のようなメッセージが残るでしょう。
+ <screen>
+<![CDATA[
+Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in Unknown on line 0
+]]>
+ </screen>
</para>
</listitem>
</varlistentry>