diff --git a/reference/intl/dateformatter/parsetocalendar.xml b/reference/intl/dateformatter/parsetocalendar.xml new file mode 100644 index 0000000000..cb3732e037 --- /dev/null +++ b/reference/intl/dateformatter/parsetocalendar.xml @@ -0,0 +1,118 @@ + + + + + + IntlDateFormatter::parseToCalendar + 文字列をパースしてタイムスタンプにし、使用中のカレンダーを更新する + + + &reftitle.description; + + public intfloatfalseIntlDateFormatter::parseToCalendar + stringstring + intoffset&null; + + + string を時間に変換します。offset + からパースを開始し、入力値を可能な限り使用します。 + + + このメソッドは IntlDateFormatter::parse + と同様に動作しますが、パースした string + に含まれるタイムゾーン情報に応じて、フォーマッターのタイムゾーンが更新される点が異なります。 + + + + + &reftitle.parameters; + + + string + + + 時間に変換する文字列。 + + + + + offset + + + string のパースを開始する位置 (ゼロから数えます)。 + string をすべて消費するまでにエラーが発生しなかった場合、 + offset は -1 となります。それ以外の場合は、 + パースが終了した (そしてエラーが発生した) 位置となります。 + パースが失敗した場合、この変数にはその終了位置が格納されます。 + offset > strlen($string) の場合、パースは即時に失敗します。 + + + + + + + + &reftitle.returnvalues; + + タイムスタンプとしてパースされた値を返します。 + パースできなかった場合は &false; を返します。 + + + + + &reftitle.examples; + + <methodname>IntlDateFormatter::parseToCalendar</methodname> の例 + +parseToCalendar('Wednesday, December 20, 1989 at 4:00:00 PM Pacific Standard Time'); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + IntlDateFormatter::parse + IntlDateFormatter::format + IntlDateFormatter::getErrorCode + IntlDateFormatter::getErrorMessage + + + + diff --git a/reference/intl/spoofchecker/setallowedchars.xml b/reference/intl/spoofchecker/setallowedchars.xml new file mode 100644 index 0000000000..5be41406f1 --- /dev/null +++ b/reference/intl/spoofchecker/setallowedchars.xml @@ -0,0 +1,124 @@ + + + + + + Spoofchecker::setAllowedChars + チェック時に許可する文字集合を設定する + + + + &reftitle.description; + + public voidSpoofchecker::setAllowedChars + stringpattern + intpatternOptions0 + + + これ以降のチェックで許容される文字を、 + pattern で記述された集合に制限します。 + この集合に含まれない文字が存在すると、 + Spoofchecker::isSuspicious はそれを疑わしいものとして報告します。 + + + + + &reftitle.parameters; + + + pattern + + + UnicodeSet パターン、 + すなわち正規表現スタイルの文字クラスとして記述された文字集合。 + [ で始まり ] で終わる必要があります。 + たとえば [a-z0-9] のようにします。 + + + + + patternOptions + + + pattern をどのように解釈するかを制御するビットマスク。 + 0 にするか、 + Spoofchecker::IGNORE_SPACE を単独で指定するか、 + あるいはそれと Spoofchecker::CASE_INSENSITIVE、 + Spoofchecker::ADD_CASE_MAPPINGS、 + Spoofchecker::SIMPLE_CASE_INSENSITIVE + のいずれかひとつだけを組み合わせて指定しなければなりません。 + + + + + + + + &reftitle.returnvalues; + + 値を返しません。 + + + + + &reftitle.errors; + + pattern が有効な文字集合のパターンでない場合や、 + patternOptions がオプションの有効な組み合わせでない場合に、 + ValueError をスローします。 + + + + + &reftitle.examples; + + <methodname>Spoofchecker::setAllowedChars</methodname> の例 + +setAllowedChars('[a-z0-9]'); + +var_dump($checker->isSuspicious('hello')); +var_dump($checker->isSuspicious('héllo')); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Spoofchecker::setAllowedLocales + Spoofchecker::isSuspicious + + + + diff --git a/reference/pcntl/functions/pcntl-forkx.xml b/reference/pcntl/functions/pcntl-forkx.xml new file mode 100644 index 0000000000..5733fdaa40 --- /dev/null +++ b/reference/pcntl/functions/pcntl-forkx.xml @@ -0,0 +1,80 @@ + + + + + + pcntl_forkx + forkx(2) を使って子プロセスを生成する + + + + &reftitle.description; + + intpcntl_forkx + intflags + + + pcntl_forkx 関数は、 + illumos および Solaris システムで利用可能な + forkx(2) システムコールを使って子プロセスを生成します。 + + + + + &reftitle.parameters; + + + flags + + + flags パラメータは、フォークの動作を制御します。 + デフォルトの動作にする場合は 0 を、 + 子プロセスの終了時に親プロセスへ SIGCHLD + シグナルが送信されるのを防ぐ場合は + FORK_NOSIGCHLD を渡します。 + + + + + + + + &reftitle.returnvalues; + + 成功時に、子プロセスの PID が親プロセスの実行スレッドに返され、 + 子プロセスの実行スレッドには 0 が返されます。 + 失敗した場合、親プロセスのコンテキストに -1 が返され、 + 子プロセスは生成されずに、PHP のエラーが発生します。 + + + + + &reftitle.seealso; + + pcntl_fork + pcntl_rfork + pcntl_waitpid + + + + + diff --git a/reference/pcntl/functions/pcntl-getcpu.xml b/reference/pcntl/functions/pcntl-getcpu.xml new file mode 100644 index 0000000000..7859207fdc --- /dev/null +++ b/reference/pcntl/functions/pcntl-getcpu.xml @@ -0,0 +1,64 @@ + + + + + + pcntl_getcpu + 呼び出し元のプロセスが最後に実行された CPU の番号を取得する + + + + &reftitle.description; + + intpcntl_getcpu + + + + pcntl_getcpu は、 + 呼び出し元のプロセスが最後に実行された CPU の番号を返します。 + この関数は、Linux で利用可能な + sched_getcpu(3) システムコールを使います。 + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + CPU の番号を &integer; として返します。 + + + + + &reftitle.seealso; + + pcntl_getcpuaffinity + pcntl_setcpuaffinity + + + + + diff --git a/reference/pcntl/functions/pcntl-setns.xml b/reference/pcntl/functions/pcntl-setns.xml new file mode 100644 index 0000000000..eb6411bcbc --- /dev/null +++ b/reference/pcntl/functions/pcntl-setns.xml @@ -0,0 +1,86 @@ + + + + + + pcntl_setns + 呼び出し元のプロセスを、別のプロセスの名前空間に関連付け直す + + + + &reftitle.description; + + boolpcntl_setns + intnullprocess_id&null; + intnstypeCLONE_NEWNET + + + 呼び出し元のプロセスを、process_id + で指定したプロセスの Linux 名前空間に、 + pidfd_open(2) で取得した pidfd と + setns(2) を使って関連付け直します。 + + + + + &reftitle.parameters; + + + process_id + + + 参加する名前空間を持つ、対象プロセスのプロセスID。 + &null; の場合、呼び出し元のプロセス自身の PID を使います。 + + + + + nstype + + + 関連付け直す名前空間の種類。デフォルトは + CLONE_NEWNET (ネットワーク名前空間) です。 + 指定できる値には CLONE_NEWNET、 + CLONE_NEWIPC、 + CLONE_NEWUTS などがあります。 + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + pcntl_unshare + + + + + diff --git a/reference/pcntl/functions/pcntl-wifcontinued.xml b/reference/pcntl/functions/pcntl-wifcontinued.xml new file mode 100644 index 0000000000..0d7617faee --- /dev/null +++ b/reference/pcntl/functions/pcntl-wifcontinued.xml @@ -0,0 +1,75 @@ + + + + + + pcntl_wifcontinued + 子プロセスがジョブ制御による停止から再開したかどうかを調べる + + + + &reftitle.description; + + boolpcntl_wifcontinued + intstatus + + + pcntl_waitpid のリターンを生じた子プロセスが、 + ジョブ制御による停止から再開したかどうかを調べます。 + この関数が役に立つのは、pcntl_waitpid のコールが + オプション WCONTINUED を用いて行われた場合のみです。 + + + + + &reftitle.parameters; + + + status + + &pcntl.parameter.status; + + + + + + + &reftitle.returnvalues; + + pcntl_waitpid のリターンを生じた子プロセスが + ジョブ制御による停止から再開した場合に &true;、 + それ以外の場合に &false; を返します。 + + + + + &reftitle.seealso; + + pcntl_waitpid + pcntl_wifstopped + pcntl_wifexited + pcntl_wifsignaled + + + + + diff --git a/reference/pgsql/functions/pg-change-password.xml b/reference/pgsql/functions/pg-change-password.xml new file mode 100644 index 0000000000..a93bb3e2a2 --- /dev/null +++ b/reference/pgsql/functions/pg-change-password.xml @@ -0,0 +1,88 @@ + + + + + + pg_change_password + PostgreSQL ユーザーのパスワードを変更する + + + + &reftitle.description; + + boolpg_change_password + PgSql\Connectionconnection + stringuser + stringpassword + + + pg_change_password は、 + PostgreSQL ユーザーのパスワードを変更します。 + この関数は libpq の PQchangePassword 関数を使用しており、 + パスワードの暗号化はサーバーの設定に基づいて自動的に処理されます。 + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection; + + + + user + + + パスワードを変更する PostgreSQL ユーザーの名前。 + + + + + password + + + 新しいパスワード。 + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + pg_connect + + + + + diff --git a/reference/pgsql/functions/pg-jit.xml b/reference/pgsql/functions/pg-jit.xml new file mode 100644 index 0000000000..9fdaccd191 --- /dev/null +++ b/reference/pgsql/functions/pg-jit.xml @@ -0,0 +1,68 @@ + + + + + + pg_jit + サーバーの JIT 情報を返す + + + + &reftitle.description; + + arraypg_jit + PgSql\Connectionnullconnection&null; + + + pg_jit は、PostgreSQL サーバーの + JIT (ジャストインタイムコンパイル) 情報を含む配列を返します。 + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection-with-nullable-default; + + + + + + + &reftitle.returnvalues; + + サーバーの JIT 情報を含む &array; を返します。 + + + + + &reftitle.seealso; + + pg_version + + + + + diff --git a/reference/pgsql/functions/pg-put-copy-data.xml b/reference/pgsql/functions/pg-put-copy-data.xml new file mode 100644 index 0000000000..03ca51eb47 --- /dev/null +++ b/reference/pgsql/functions/pg-put-copy-data.xml @@ -0,0 +1,83 @@ + + + + + + pg_put_copy_data + COPY 操作中にサーバーへデータを送信する + + + + &reftitle.description; + + intpg_put_copy_data + PgSql\Connectionconnection + stringcmd + + + COPY FROM STDIN 操作中に、サーバーへデータを送信します。 + この関数を呼び出す前に、COPY コマンドを + pg_query で発行しておく必要があります。 + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection; + + + + cmd + + + サーバーに送信するデータ。末尾に改行がない場合は、自動的に改行が付加されます。 + データは、COPY コマンドのフォーマットに従って + 整形されていなければなりません。 + + + + + + + + &reftitle.returnvalues; + + 成功した場合に 1 を、 + データをキューに入れられなかった場合(ノンブロッキングモードのみ)に + 0 を、エラーの場合に -1 を返します。 + + + + + &reftitle.seealso; + + pg_put_copy_end + pg_query + + + + + diff --git a/reference/pgsql/functions/pg-put-copy-end.xml b/reference/pgsql/functions/pg-put-copy-end.xml new file mode 100644 index 0000000000..817bb926cb --- /dev/null +++ b/reference/pgsql/functions/pg-put-copy-end.xml @@ -0,0 +1,81 @@ + + + + + + pg_put_copy_end + COPY 操作の完了をサーバーに通知する + + + + &reftitle.description; + + intpg_put_copy_end + PgSql\Connectionconnection + stringnullerror&null; + + + COPY FROM STDIN 操作中に、 + データの終端を示す通知をサーバーに送信します。 + + + + + &reftitle.parameters; + + + connection + + &pgsql.parameter.connection; + + + + error + + + &null; でない場合、COPY 操作は、 + 指定したエラーメッセージとともに強制的に失敗します。 + + + + + + + + &reftitle.returnvalues; + + 成功した場合に 1 を、 + データをキューに入れられなかった場合(ノンブロッキングモードのみ)に + 0 を、エラーの場合に -1 を返します。 + + + + + &reftitle.seealso; + + pg_put_copy_data + pg_query + + + + + diff --git a/reference/pgsql/functions/pg-socket-poll.xml b/reference/pgsql/functions/pg-socket-poll.xml new file mode 100644 index 0000000000..9121031a60 --- /dev/null +++ b/reference/pgsql/functions/pg-socket-poll.xml @@ -0,0 +1,109 @@ + + + + + + + pg_socket_poll + PostgreSQL 接続のソケットが読み取り/書き込み可能かどうかをポーリングする + + + + &reftitle.description; + + intpg_socket_poll + resourcesocket + intread + intwrite + inttimeout-1 + + + PostgreSQL 接続のソケットが読み取りおよび/または書き込み可能かどうかをポーリングします。 + ソケットは pg_socket を使って取得できます。 + この関数は、ノンブロッキングな非同期クエリのワークフローを実装する際に役立ちます。 + + + + + &reftitle.parameters; + + + socket + + + pg_socket から取得したソケットリソース。 + + + + + read + + + 読み取り可能かをチェックするかどうか。 + チェックする場合は 1 を、 + スキップする場合は 0 を渡します。 + + + + + write + + + 書き込み可能かをチェックするかどうか。 + チェックする場合は 1 を、 + スキップする場合は 0 を渡します。 + + + + + timeout + + + 待機する最大のミリ秒数。 + 無期限に待機する場合は -1 を、 + まったく待機しない場合は 0 を渡します。 + + + + + + + + &reftitle.returnvalues; + + ソケットの準備ができている場合は正の値を、 + タイムアウトに達した場合は 0 を、 + エラー時は -1 を返します。 + + + + + &reftitle.seealso; + + pg_socket + pg_consume_input + pg_send_query + + + + +