summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2023-03-01 14:27:28 +0100
committerNathan Gass2023-03-01 14:27:28 +0100
commitd455652427d89aa9a31776919218f20460fdc8e2 (patch)
tree49c4fabc64270581190e87033ef09a3f84ecced3
parent569aaa65f5523069adb748715e36c9e3cba3992d (diff)
downloaditools-d455652427d89aa9a31776919218f20460fdc8e2.tar.gz
itools-d455652427d89aa9a31776919218f20460fdc8e2.tar.bz2
itools-d455652427d89aa9a31776919218f20460fdc8e2.zip
adapt to newest php version
-rw-r--r--it_dbi_postgres.class3
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))