CakeFest 2024: The Official CakePHP Conference

mqseries_close

(PECL mqseries >= 0.10.0)

mqseries_closeMQSeries MQCLOSE

説明

mqseries_close(
    resource $hconn,
    resource $hobj,
    int $options,
    resource &$compCode,
    resource &$reason
): void

mqseries_close() (MQCLOSE) をコールするとオブジェクトへのアクセスを破棄します。これは mqseries_open() (MQOPEN) コールの逆の意味です。

パラメータ

hConn

接続ハンドル。

このハンドルは、キューマネージャへの接続を表します。

hObj

オブジェクトハンドル。

このハンドルは、使用するオブジェクトを表します。

options

compCode

完了コード。

reason

compCode の原因を表すコード。

戻り値

値を返しません。

例1 mqseries_close() の例

<?php
mqseries_close
($conn, $obj, MQSERIES_MQCO_NONE, $comp_code, $reason);
if (
$comp_code !== MQSERIES_MQCC_OK) {
printf("close CompCode:%d Reason:%d Text:%s<br>\n", $comp_code, $reason, mqseries_strerror($reason));
}
?>

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top