#27597 [Opn->Fbk]: pg_fetch_array not returning false

From: Date: Sun, 14 Mar 2004 19:56:29 +0000
Subject: #27597 [Opn->Fbk]: pg_fetch_array not returning false
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56436@lists.php.net to get a copy of this message
ID: 27597 Updated by: derick@php.net Reported By: ritchie at ipowerhouse dot com -Status: Open +Status: Feedback Bug Type: PostgreSQL related Operating System: suse 8.2 PHP Version: 5.0.0b4 (beta4) New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-03-14 14:45:43] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27597&edit=1

« previous php.bugs (#56436) next »