| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2004-03-14 14:45 UTC] ritchie at ipowerhouse dot com
 Description:
------------
looping a recordset based on pg_fetch_array() returning 
false results in an infinite loop 
Reproduce code:
---------------
function xi_fetch_array($rs,$type=PGSQL_ASSOC) {
	$a = pg_fetch_array($rs,NULL,$type) ;
	return $a ;	
}
I use this in previous version with no problem.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
Ok, it's the same on the latest snapshot, What I'm getting is the _first record_ of the record set returned ad infinitum. This var_dump on $a, was taken after dropping out of the loop after 10 interations. But I recieved none of the other records only the first. array(4) { ["name"]=> string(14) "affiliate_name" ["value"]=> string(11) "ipowerhouse" ["affiliate_id"]=> string(2) "-1" ["category"]=> string(3) "iph" }