note 129813 added to function.pg-query
| From: | dru.rash@gmail.com | Date: | Tue, 22 Oct 2024 18:02:04 +0000 |
| Subject: | note 129813 added to function.pg-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221604@lists.php.net to get a copy of this message | ||
pg_query doesn't always return false. In php 8.3.12 it throws an exception if the connection
has closed. So if you have a long running process, you'll want to catch exceptions from this
function.
PHP Fatal error: Uncaught Error: PostgreSQL connection has already been closed in
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.84.18 (proxied: 68.13.156.19)
----
Manual Page -- https://php.net/manual/en/function.pg-query.php
Edit -- https://main.php.net/note/edit/129813
Del: integrated -- https://main.php.net/note/delete/129813/integrated
Del: useless -- https://main.php.net/note/delete/129813/useless
Del: bad code -- https://main.php.net/note/delete/129813/bad+code
Del: spam -- https://main.php.net/note/delete/129813/spam
Del: non-english -- https://main.php.net/note/delete/129813/non-english
Del: in docs -- https://main.php.net/note/delete/129813/in+docs
Del: other reasons-- https://main.php.net/note/delete/129813
Reject -- https://main.php.net/note/reject/129813
Search -- https://main.php.net/manage/user-notes.php