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

說明

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

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

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

connection

An PgSql\Connection instance.

返回值

A socket resource on success 或者在失敗時返回 false.

更新日志

版本 說明
8.1.0 現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)