|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-11 18:22 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 11:00:01 2025 UTC |
Description: ------------ If in PostgreSQL stored function I make raise exception, when I call it by pg_query, I have PHP WARNING. But try-catch block doesn't work. Reproduce code: --------------- try { $this->resultID = pg_query($this->connectID, $this->query); } catch (Exception $e) { $this->dieDB($e); } Expected result: ---------------- Catched exception in var $e Actual result: -------------- Warning: pg_query(): Query failed: ERROR: PASSWORD_WRONG#users# in /xxx/dbi.class.php on line 175.