phpday 2027 - Call for Papers

pg_socket

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

pg_socket — Get a read only handle to the socket underlying a PostgreSQL connection

Descrizione

function pg_socket(PgSql\Connection $connection): resource|false

pg_socket() returns a read only resource corresponding to the socket underlying the given PostgreSQL connection.

Avviso

Questa funzione al momento non è documentata; è disponibile soltanto la lista dei suoi argomenti.

Elenco dei parametri

connection

Un'istanza di PgSql\Connection.

Valori restituiti

A socket resource on success o false in caso di fallimento.

Log delle modifiche

Versione Descrizione
8.1.0 Il parametro connection ora si aspetta un'istanza di PgSql\Connection; in precedenza, era attesa una resource.
+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top