From d455652427d89aa9a31776919218f20460fdc8e2 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Wed, 1 Mar 2023 14:27:28 +0100 Subject: adapt to newest php version --- it_dbi_postgres.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'it_dbi_postgres.class') diff --git a/it_dbi_postgres.class b/it_dbi_postgres.class index 6af08d7..82d57d2 100644 --- a/it_dbi_postgres.class +++ b/it_dbi_postgres.class @@ -119,7 +119,8 @@ function __query($query, $p) if ($p['timeout'] && (microtime(true) - $starttime) > $p['timeout']) return false; $read = $error = [pg_socket($this->_link)]; - socket_select($read, [], $error, 1, 0); + $write = []; + stream_select($read, $write, $error, 1, 0); } while ($newresult = @pg_get_result($this->_link)) -- cgit v1.2.3