(PECL CUBRID >= 8.3.0)
cubrid_close_request — 关闭请求句柄
cubrid_close_request() 函数关闭由 req_identifier
参数给出的请求句柄,并释放与句柄相关的内存区域。它是 cubrid_close_prepare() 的别名。
req_identifier
请求标识符。
成功时返回 true
。
示例 #1 cubrid_close_request() 示例
<?php
$con = cubrid_connect ("localhost", 33000, "demodb", "dba", "");
if ($con) {
echo "connected successfully";
$req = cubrid_execute ( $con, "select * from members",
CUBRID_INCLUDE_OID | CUBRID_ASYNC);
if ($req) {
while ( list ($id, $name) = cubrid_fetch ($req) ){
echo $id;
echo $name;
}
cubrid_close_request($req); // or you can use cubrid_close_prepare($req)
}
cubrid_disconnect($con);
}
?>