PHP 8.1.28 Released!

odbc_free_result

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_free_result結果を保持するリソースを開放する

説明

odbc_free_result(resource $statement): bool

結果を保持するリソースを開放します。

odbc_free_result()は、スクリプトのメモリ消費量が 多すぎることが懸念される場合にのみコールする必要があります。 全ての結果保持用メモリは、スクリプト実行が終了した際に自動的に開放されます。

パラメータ

statement

結果 ID。

戻り値

常に true を返します。

注意

注意:

自動コミットが無効(odbc_autocommit() を 参照ください)な時にコミットの前に odbc_free_result() をコールすると、全ての 未解決のトランザクションは、ロールバックされます。

add a note

User Contributed Notes 1 note

up
0
sergio.deleon at techoblige
6 years ago
MDBTools driver needs you to properly free up a result_id before reusing a variable.
An odbc_fetch_array() over a overwritten variable with a new result will crash the script with a Segmentation fault if the previous resource wasn't free'd up.

PHP 5.6
To Top