1
0
mirror of https://github.com/php/doc-ja.git synced 2026-03-25 15:42:08 +01:00
Files
archived-doc-ja/reference/errorfunc/constants.xml
TAKAGI Masahiro 0f4367701a Update EN-Revision
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@329358 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 22:40:37 +00:00

283 lines
9.0 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"?>
<!-- $Revision$ -->
<!-- EN-Revision: 04b11e621f6ccf857368d90262f051a8d40c865d Maintainer: hirokawa Status: ready -->
<appendix xml:id="errorfunc.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&extension.constants.core;
<note>
<simpara>
以下の定数を&php.ini;で使用することができますが、
<filename>httpd.conf</filename>のようなPHPの外部では、
代わりにビットマスク値を使用する必要があります。
</simpara>
</note>
<table xml:id="errorfunc.constants.errorlevels">
<title>エラーとロギング</title>
<tgroup cols="4">
<thead>
<row>
<entry></entry>
<entry>定数</entry>
<entry>説明</entry>
<entry>注記</entry>
</row>
</thead>
<tbody>
<row xml:id="errorfunc.constants.errorlevels.e-error">
<entry>1</entry>
<entry>
<constant>E_ERROR</constant>
(<type>integer</type>)
</entry>
<entry>
重大な実行時エラー。これは、メモリ確保に関する問題のように復帰で
きないエラーを示します。スクリプトの実行は中断されます。
</entry>
<entry>
</entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-warning">
<entry>2</entry>
<entry>
<constant>E_WARNING</constant>
(<type>integer</type>)
</entry>
<entry>
実行時の警告 (致命的なエラーではない)。スクリプトの実行は中断さ
れません。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-parse">
<entry>4</entry>
<entry>
<constant>E_PARSE</constant>
(<type>integer</type>)
</entry>
<entry>
コンパイル時のパースエラー。パースエラーはパーサでのみ生成されま
す。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-notice">
<entry>8</entry>
<entry>
<constant>E_NOTICE</constant>
(<type>integer</type>)
</entry>
<entry>
実行時の警告。エラーを発しうる状況に遭遇したことを示す。
ただし通常のスクリプト実行の場合にもこの警告を発することがありうる。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-core-error">
<entry>16</entry>
<entry>
<constant>E_CORE_ERROR</constant>
(<type>integer</type>)
</entry>
<entry>
PHPの初期始動時点での致命的なエラー。<constant>E_ERROR</constant>
似ているがPHPのコアによって発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-core-warning">
<entry>32</entry>
<entry>
<constant>E_CORE_WARNING</constant>
(<type>integer</type>)
</entry>
<entry>
致命的ではない警告。PHPの初期始動時に発生する。
<constant>E_WARNING</constant>に似ているがPHPのコアによって発行される
点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-compile-error">
<entry>64</entry>
<entry>
<constant>E_COMPILE_ERROR</constant>
(<type>integer</type>)
</entry>
<entry>
コンパイル時の致命的なエラー。<constant>E_ERROR</constant>
似ているがZendスクリプティングエンジンによって発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-compile-warning">
<entry>128</entry>
<entry>
<constant>E_COMPILE_WARNING</constant>
(<type>integer</type>)
</entry>
<entry>
コンパイル時の警告(致命的ではない)。<constant>E_WARNING</constant>
似ているがZendスクリプティングエンジンによって発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-user-error">
<entry>256</entry>
<entry>
<constant>E_USER_ERROR</constant>
(<type>integer</type>)
</entry>
<entry>
ユーザーによって発行されるエラーメッセージ。<constant>E_ERROR</constant>
に似ているがPHPコード上で<function>trigger_error</function>関数を
使用した場合に発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-user-warning">
<entry>512</entry>
<entry>
<constant>E_USER_WARNING</constant>
(<type>integer</type>)
</entry>
<entry>
ユーザーによって発行される警告メッセージ。<constant>E_WARNING</constant>
に似ているがPHPコード上で<function>trigger_error</function>関数を
使用した場合に発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-user-notice">
<entry>1024</entry>
<entry>
<constant>E_USER_NOTICE</constant>
(<type>integer</type>)
</entry>
<entry>
ユーザーによって発行される注意メッセージ。<constant>E_NOTICE</constant>
に似ているがPHPコード上で<function>trigger_error</function>関数を
使用した場合に発行される点が違う。
</entry>
<entry></entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-strict">
<entry>2048</entry>
<entry>
<constant>E_STRICT</constant>
(<type>integer</type>)
</entry>
<entry>
コードの相互運用性や互換性を維持するために
PHP がコードの変更を提案する。
</entry>
<entry>PHP 5 より</entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-recoverable-error">
<entry>4096</entry>
<entry>
<constant>E_RECOVERABLE_ERROR</constant>
(<type>integer</type>)
</entry>
<entry>
キャッチできる致命的なエラー。危険なエラーが発生したが、
エンジンが不安定な状態になるほどではないことを表す。
ユーザー定義のハンドラでエラーがキャッチされなかった場合
(<function>set_error_handler</function> も参照ください) は、
<constant>E_ERROR</constant> として異常終了する。
</entry>
<entry>PHP 5.2.0 より</entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-deprecated-error">
<entry>8192</entry>
<entry>
<constant>E_DEPRECATED</constant>
(<type>integer</type>)
</entry>
<entry>
実行時の注意。これを有効にすると、
将来のバージョンで動作しなくなるコードについての警告を受け取ることができる。
</entry>
<entry>PHP 5.3.0 より</entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-user-deprecated">
<entry>16384</entry>
<entry>
<constant>E_USER_DEPRECATED</constant>
(<type>integer</type>)
</entry>
<entry>
ユーザー定義の警告メッセージ。これは
<constant>E_DEPRECATED</constant> と同等だが、
PHP のコード上で関数 <function>trigger_error</function>
によって作成されるという点が異なる。
</entry>
<entry>PHP 5.3.0 より</entry>
</row>
<row xml:id="errorfunc.constants.errorlevels.e-all">
<entry>32767</entry>
<entry>
<constant>E_ALL</constant>
(<type>integer</type>)
</entry>
<entry>
サポートされる全てのエラーと警告。
PHP 5.4.0 より前のバージョンでは、<constant>E_STRICT</constant> レベルのエラーは除く。
</entry>
<entry>
PHP 5.4.x では 32767、
PHP 5.3.x では 30719、
PHP 5.2.x では 6143、
それより前のバージョンでは 2047 でした。
</entry>
</row>
</tbody>
</tgroup>
</table>
<para>
上記の値(数値も論理値も)はどのエラーをレポートするかを指定する
ビットマスクを組み立てる。<link linkend="language.operators.bitwise">ビット演算子</link>
を使用して値を組み合わせたり特定のエラータイプをマスクすることができる。
&php.ini; では'|', '~', '!', '^' and '&amp;'のみが解釈されることに
注意すべきである。
</para>
</appendix>
<!-- 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
-->