diff options
-rw-r--r-- | it_dbi_postgres.class | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |