PHPWales 2020 - June 3rd to June 4th


(PHP 4, PHP 5, PHP 7)

odbc_close_allFecha todas as conexões ODBC


odbc_close_all ( void ) : void

odbc_close_all() irá fechar todas as conexões para os servidores de banco de dados.

Valor Retornado

Não há valor retornado.



Esta função irá falhar se houverem transações abertas na conexão. Neste caso a conexão permanecerá aberta.

add a note add a note

User Contributed Notes 1 note

alvaro at demogracia dot com
11 years ago
Apparently, it doesn't really close *all* connections; just those used by the current script.

If you are using persistent connections, every time a script does an odbc_pconnect() and all open connections are in use you'll get a new connection with the same credentials. You won't close them all with odbc_close_all().
To Top