pg_connection_busy() returning true does not necessarily mean that there are results waiting for pg_get_result(); it also stays true for some time after a query that causes any sort of postgres error. (See http://bugs.php.net/bug.php?id=36469)
pg_connection_busy
(PHP 4 >= 4.2.0, PHP 5)
pg_connection_busy — Riferisce se una connessione è occupata o meno
Descrizione
bool pg_connection_busy
( resource
$connessione
)
pg_connection_busy() restituisce TRUE se la
connessione è occupata. In questo caso, la query precedentamente inviata è ancora in esecuzione.
Se pg_get_result() viene chiamata, verrà bloccata.
Vedere anche pg_connection_status() e pg_get_result()
levi at alliancesoftware dot com dot au ¶
3 years ago
