mirror of
https://github.com/php/doc-ja.git
synced 2026-04-24 00:18:15 +02:00
7d24a78fe7
As per the PHP changelog, the functionality to use a string for `assert` has been removed in PHP 8.0: https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L350-L354 https://github.com/php/doc-en/commit/883d2fe5cb2e2c8d768cc3a119b3d24a1b958c41
452 lines
16 KiB
XML
452 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 883d2fe5cb2e2c8d768cc3a119b3d24a1b958c41 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: takagi -->
|
|
<appendix xml:id="info.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.constants;
|
|
&extension.constants.core;
|
|
<table>
|
|
<title>定義済の <function>phpcredits</function> 定数</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>定数</entry>
|
|
<entry>値</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.credits-group">
|
|
<entry><constant>CREDITS_GROUP</constant></entry>
|
|
<entry>1</entry>
|
|
<entry>コア開発者のリスト</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-general">
|
|
<entry><constant>CREDITS_GENERAL</constant></entry>
|
|
<entry>2</entry>
|
|
<entry>
|
|
一般的なクレジット: 言語設計とコンセプト、PHP と
|
|
PHP SAPIモジュールの作者。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-sapi">
|
|
<entry><constant>CREDITS_SAPI</constant></entry>
|
|
<entry>4</entry>
|
|
<entry>
|
|
PHPのサーバーAPIモジュールとその作者の一覧。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-modules">
|
|
<entry><constant>CREDITS_MODULES</constant></entry>
|
|
<entry>8</entry>
|
|
<entry>
|
|
PHPの拡張モジュールとその作者の一覧。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-docs">
|
|
<entry><constant>CREDITS_DOCS</constant></entry>
|
|
<entry>16</entry>
|
|
<entry>
|
|
ドキュメント作成チームのクレジット
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-fullpage">
|
|
<entry><constant>CREDITS_FULLPAGE</constant></entry>
|
|
<entry>32</entry>
|
|
<entry>
|
|
通常、他のフラグと組み合わせて使用されます。
|
|
他のフラグで示される情報を含む完全に独立したHTMLページを出力する
|
|
ことを指定します。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-qa">
|
|
<entry><constant>CREDITS_QA</constant></entry>
|
|
<entry>64</entry>
|
|
<entry>
|
|
品質管理チームのクレジット
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.credits-all">
|
|
<entry><constant>CREDITS_ALL</constant></entry>
|
|
<entry>-1</entry>
|
|
<entry>
|
|
全てのクレジット、<literal>CREDITS_DOCS +
|
|
CREDITS_GENERAL + CREDITS_GROUP + CREDITS_MODULES +
|
|
CREDITS_FULLPAGE</literal> を指定した場合と同じ。
|
|
この定数は、適当なタグを有する完全にスタンドアローンのHTMLページ
|
|
を生成します。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
<table>
|
|
<title><function>phpinfo</function> の定数</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>定数</entry>
|
|
<entry>値</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.info-general">
|
|
<entry><constant>INFO_GENERAL</constant></entry>
|
|
<entry>1</entry>
|
|
<entry>
|
|
configureオプション、&php.ini; の場所、構築日、Webサーバー、システム等。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-credits">
|
|
<entry><constant>INFO_CREDITS</constant></entry>
|
|
<entry>2</entry>
|
|
<entry>
|
|
PHP クレジット。<function>phpcredits</function>も参照してください。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-configuration">
|
|
<entry><constant>INFO_CONFIGURATION</constant></entry>
|
|
<entry>4</entry>
|
|
<entry>
|
|
PHPディレクティブの現在のローカルおよびマスター値。
|
|
<function>ini_get</function>も参照してください。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-modules">
|
|
<entry><constant>INFO_MODULES</constant></entry>
|
|
<entry>8</entry>
|
|
<entry>
|
|
ロードされているモジュールとそれぞれの設定。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-environment">
|
|
<entry><constant>INFO_ENVIRONMENT</constant></entry>
|
|
<entry>16</entry>
|
|
<entry>
|
|
環境変数に関する情報で、<varname>$_ENV</varname>でも入手可能です。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-variables">
|
|
<entry><constant>INFO_VARIABLES</constant></entry>
|
|
<entry>32</entry>
|
|
<entry>
|
|
<literal>EGPCS</literal> (Environment, GET, POST, Cookie, Server)から<link
|
|
linkend="language.variables.predefined">定義済の変数</link>を表示します。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-license">
|
|
<entry><constant>INFO_LICENSE</constant></entry>
|
|
<entry>64</entry>
|
|
<entry>
|
|
PHPライセンス情報。<link xlink:href="&url.php.license;">license
|
|
faq</link>も参照してください。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.info-all">
|
|
<entry><constant>INFO_ALL</constant></entry>
|
|
<entry>-1</entry>
|
|
<entry>
|
|
上記を全て表示します。これがデフォルト値です。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
<table>
|
|
<title>INI 定数</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>定数</entry>
|
|
<entry>値</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.ini-user">
|
|
<entry><literal>INI_USER</literal></entry>
|
|
<entry>1</entry>
|
|
<entry>未使用</entry>
|
|
</row>
|
|
<row xml:id="constant.ini-perdir">
|
|
<entry><literal>INI_PERDIR</literal></entry>
|
|
<entry>2</entry>
|
|
<entry>未使用</entry>
|
|
</row>
|
|
<row xml:id="constant.ini-system">
|
|
<entry><literal>INI_SYSTEM</literal></entry>
|
|
<entry>4</entry>
|
|
<entry>未使用</entry>
|
|
</row>
|
|
<row xml:id="constant.ini-all">
|
|
<entry><literal>INI_ALL</literal></entry>
|
|
<entry>7</entry>
|
|
<entry>未使用</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
<simpara>
|
|
Assert 定数。これらの値を使用して、
|
|
<function>assert_options</function> のオプションを設定します。
|
|
</simpara>
|
|
<table>
|
|
<title><function>assert</function> 定数</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>定数</entry>
|
|
<entry>INI 設定</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.assert-active">
|
|
<entry><constant>ASSERT_ACTIVE</constant></entry>
|
|
<entry>assert.active</entry>
|
|
<entry>
|
|
<function>assert</function> の評価を有効にします。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.assert-callback">
|
|
<entry><constant>ASSERT_CALLBACK</constant></entry>
|
|
<entry>assert.callback</entry>
|
|
<entry>
|
|
アサーションに失敗した場合に実行するコールバック。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.assert-bail">
|
|
<entry><constant>ASSERT_BAIL</constant></entry>
|
|
<entry>assert.bail</entry>
|
|
<entry>
|
|
アサーションに失敗した時点に実行を中断します。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.assert-warning">
|
|
<entry><constant>ASSERT_WARNING</constant></entry>
|
|
<entry>assert.warning</entry>
|
|
<entry>
|
|
アサーションに失敗するたびに PHP の警告を発行します。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.assert-quiet-eval">
|
|
<entry><constant>ASSERT_QUIET_EVAL</constant></entry>
|
|
<entry>assert.quiet_eval</entry>
|
|
<entry>
|
|
アサーション式の評価中は <literal>error_reporting</literal> を無効にします。
|
|
この機能は、PHP 8.0.0 以降では削除されています。
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
<simpara>
|
|
次の定数は、ホスト OS が Windows の場合にのみ使用可能なものです。
|
|
バージョン情報を知ることができるので、さまざまな機能を使う際に役立ちます。
|
|
これらの定数は PHP 5.3.0 以降で使用可能です。
|
|
</simpara>
|
|
<table>
|
|
<title>Windows 固有の定数</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>定数</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row xml:id="constant.php-windows-version-major">
|
|
<entry><constant>PHP_WINDOWS_VERSION_MAJOR</constant></entry>
|
|
<entry>
|
|
Windows のメジャーバージョン。<literal>4</literal> (NT4/Me/98/95)、
|
|
<literal>5</literal> (XP/2003 R2/2003/2000) あるいは <literal>6</literal> (Vista/2008/7/8/8.1) となります。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-minor">
|
|
<entry><constant>PHP_WINDOWS_VERSION_MINOR</constant></entry>
|
|
<entry>
|
|
Windows のマイナーバージョン。<literal>0</literal> (Vista/2008/2000/NT4/95)、
|
|
<literal>1</literal> (XP)、<literal>2</literal> (2003 R2/2003/XP x64)、<literal>10</literal> (98)
|
|
あるいは <literal>90</literal> (ME) となります。</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-build">
|
|
<entry><constant>PHP_WINDOWS_VERSION_BUILD</constant></entry>
|
|
<entry>Windows のビルド番号 (たとえば Windows Vista SP1 はビルド 6001 となります)。</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-platform">
|
|
<entry><constant>PHP_WINDOWS_VERSION_PLATFORM</constant></entry>
|
|
<entry>
|
|
PHP が現在動作しているプラットフォーム。この値は Windows
|
|
Vista/XP/2000/NT4, Server 2008/2003 では <literal>2</literal>、
|
|
Windows ME/98/95 では <literal>1</literal> となります。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-sp-major">
|
|
<entry><constant>PHP_WINDOWS_VERSION_SP_MAJOR</constant></entry>
|
|
<entry>
|
|
インストールされているサービスパックのメジャーバージョン。サービスパックがインストールされていない場合は
|
|
<literal>0</literal> となります。たとえば Windows XP にサービスパック 3
|
|
をインストールした場合、この値は <literal>3</literal> となります。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-sp-minor">
|
|
<entry><constant>PHP_WINDOWS_VERSION_SP_MINOR</constant></entry>
|
|
<entry>
|
|
インストールされているサービスパックのマイナーバージョン。サービスパックがインストールされていない場合は
|
|
<literal>0</literal> となります。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-suitemask">
|
|
<entry><constant>PHP_WINDOWS_VERSION_SUITEMASK</constant></entry>
|
|
<entry>
|
|
Windows のさまざまな機能がインストールされているかどうかを示すビットマスク。
|
|
各フィールドの意味については以下の表を参照ください。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-version-producttype">
|
|
<entry><constant>PHP_WINDOWS_VERSION_PRODUCTTYPE</constant></entry>
|
|
<entry>
|
|
<literal>PHP_WINDOWS_NT_*</literal> 定数を決定するために使用する値を含みます。
|
|
この値は <literal>PHP_WINDOWS_NT_*</literal> 定数のいずれかとなり、
|
|
プラットフォームの形式を示します。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-nt-domain-controller">
|
|
<entry><constant>PHP_WINDOWS_NT_DOMAIN_CONTROLLER</constant></entry>
|
|
<entry>これはドメインコントローラです。</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-nt-server">
|
|
<entry><constant>PHP_WINDOWS_NT_SERVER</constant></entry>
|
|
<entry>
|
|
これはサーバーシステム (Server 2008/2003/2000 など) です。もしドメインコントローラである場合は
|
|
<constant>PHP_WINDOWS_NT_DOMAIN_CONTROLLER</constant> と報告されることに注意しましょう。
|
|
</entry>
|
|
</row>
|
|
<row xml:id="constant.php-windows-nt-workstation">
|
|
<entry><constant>PHP_WINDOWS_NT_WORKSTATION</constant></entry>
|
|
<entry>これはワークステーションシステム (Vista/XP/2000/NT4 など) です。</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
<simpara>
|
|
この表は、<constant>PHP_WINDOWS_VERSION_SUITEMASK</constant>
|
|
のビットマスクを使用して確認できる機能の一覧を示すものです。
|
|
</simpara>
|
|
<table>
|
|
<title>Windows suitemask ビットフィールド</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>ビット</entry>
|
|
<entry>説明</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>0x00000004</literal></entry>
|
|
<entry>Microsoft BackOffice コンポーネントがインストールされています。</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000400</literal></entry>
|
|
<entry>Windows Server 2003, Web Edition がインストールされています。</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00004000</literal></entry>
|
|
<entry>Windows Server 2003, Compute Cluster Edition がインストールされています。</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000080</literal></entry>
|
|
<entry>
|
|
Windows Server 2008 Datacenter, Windows Server 2003, Datacenter Edition あるいは
|
|
Windows 2000 Datacenter Server がインストールされています。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000002</literal></entry>
|
|
<entry>
|
|
Windows Server 2008 Enterprise, Windows Server 2003, Enterprise Edition,
|
|
Windows 2000 Advanced Server あるいは Windows NT Server 4.0 Enterprise Edition
|
|
がインストールされています。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000040</literal></entry>
|
|
<entry>Windows XP Embedded がインストールされています。</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000200</literal></entry>
|
|
<entry>
|
|
Windows Vista Home Premium, Windows Vista Home Basic あるいは Windows XP Home
|
|
Edition がインストールされています。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000100</literal></entry>
|
|
<entry>
|
|
リモートデスクトップに対応していますが、
|
|
ひとつのインタラクティブセッションしかサポートしていません。
|
|
この値は、システムがアプリケーションサーバーモードで実行中でない場合に設定されます。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000001</literal></entry>
|
|
<entry>
|
|
Microsoft Small Business Server がかつてインストールされていましたが、
|
|
Windows の別のバージョンにアップグレードされました。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000020</literal></entry>
|
|
<entry>
|
|
Microsoft Small Business Server が、制限クライアントライセンスでインストールされています。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00002000</literal></entry>
|
|
<entry>Windows Storage Server 2003 R2 あるいは Windows Storage Server 2003 がインストールされています。</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00000010</literal></entry>
|
|
<entry>
|
|
ターミナルサービスがインストールされています。
|
|
この値は常に設定されています。もしこの値が設定されているのに
|
|
<literal>0x00000100</literal> が設定されていなければ、
|
|
そのシステムはアプリケーションサーバーモードで動作しています。
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>0x00008000</literal></entry>
|
|
<entry>Windows Home Server がインストールされています。</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</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
|
|
-->
|