update : 2015.11.03
php.shukuma.com검색:
|
oci_close(PHP 5, PECL OCI8 >= 1.1.0) oci_close — Closes an Oracle connection 설명
bool oci_close
( resource
$connection
)
Unsets It is recommended to close connections that are no longer needed because this makes database resources available for other users. 인수
반환값
성공 시 예제Example #1 Closing a connection Resources associated with a connection should be closed to ensure the underlying database connection is properly terminated and the database resources are released.
<?php Example #2 Database connections are not closed until all references are closed The internal refcount of a connection identifier must be zero before the underlying connection to the database is closed.
<?php Example #3 Closing a connection opened more than once When database credentials are reused, both connections must be closed before the underlying database connection is closed.
<?php Example #4 Connections are closed when variables go out of scope When all variables referencing a connection go out of scope and are freed by PHP, a rollback occurs (if necessary) and the underlying connection to the database is closed.
<?php 주의
참고
|