PHP 8.3.4 Released!

odbc_close_all

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

odbc_close_allSchließt alle ODBC-Verbindungen

Beschreibung

odbc_close_all(): void

odbc_close_all() schließt alle bestehenden Verbindungen zu den Datenbankservern.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Anmerkungen

Hinweis:

Diese Funktion schlägt fehl, wenn noch Transaktionen auf einer Verbindung aktiv sind. Diese Verbindung wird in diesem Fall geöffnet bleiben.

add a note

User Contributed Notes 1 note

up
-3
alvaro at demogracia dot com
15 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