|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-18 09:47 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 09:00:01 2025 UTC |
Description: ------------ pg_fetch_all() documentation says: "FALSE is returned if there are no rows in the result, or on any other error." But NULL is returned if the argument is not a resource. Reproduce code: --------------- <?php $a = pg_fetch_all('hello'); var_dump($a); ?> Expected result: ---------------- Warning: pg_fetch_all() expects parameter 1 to be resource, string given in /tmp/t.php on line 2 bool(false) Actual result: -------------- Warning: pg_fetch_all() expects parameter 1 to be resource, string given in /tmp/t.php on line 2 NULL