Bug #1626: pg_fetch_array($res, $n) works only for $n == 0

From: Date: Tue, 29 Jun 1999 16:21:23 +0000
Subject: Bug #1626: pg_fetch_array($res, $n) works only for $n == 0
Groups: php.dev 
Request: Send a blank email to php-dev+get-7813@lists.php.net to get a copy of this message
From: colombo@esiway.net Operating system: Solaris 2.5.1 PHP version: 3.0.11 PHP Bug Type: PostgreSQL related Bug description: pg_fetch_array($res, $n) works only for $n == 0 Used to work with 3.0.7. $q = "select ..."; $res = pg_exec($db, $q); for ($n = 0; $res && $n < pg_numrows($res); $n++) { $arr = pg_fetch_array($res, $n); # some echos displaying $arr[name], $arr[descr]... } first record is displayed ok ($n == 0), the others are empty. This bug shows with 3.0.10 and 3.0.11, reverting to 3.0.7 solves it. 3.0.1[01] were compliled exactly the same way of 3.0.7 (i just recompiled it to be sure). I haven't tested 3.0.[89]. .TM.

« previous php.dev (#7813) next »