|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-12-26 01:57 UTC] junk-php at aontic dot com
array pg_fetch_array (resource result, int row [, int result_type]) makes int row appear required, when it is actually optional. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Works wonderfully without the row. That's certainly a win convienence wise, especially for folks coming over from mysql where the loop syntax is trivial (while $row = fetch()) {} I'd prefer to see the docs change then the functionality. I'll take a look at the code itself but it is hard to see how this is a performance loss, most users end up keeping a counter anyways. Why do you prefer making the row required? It seems like a silly added restriction, especially when I bet 80% of the cases where the function is called don't need it.