#27597 [Opn->Fbk]: pg_fetch_array not returning false
| From: | sniper@php.net | Date: | Mon, 15 Mar 2004 14:53:49 +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-56486@lists.php.net to get a copy of this message | ||
ID: 27597
Updated by: sniper@php.net
Reported By: ritchie at ipowerhouse dot com
-Status: Open
+Status: Feedback
Bug Type: PostgreSQL related
Operating System: Debian Stable
PHP Version: 5.0.0b4 (beta4)
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
And what exactly DOES it return?
(do a var_dump() on the $a variable)
Previous Comments:
------------------------------------------------------------------------
[2004-03-14 18:23:33] ritchie at ipowerhouse dot com
Apache 2.0.48/ PG 7.4.1
Hi there, I have a large framework which uses the code, so
I don't have a small test case. However, I just compiled
php4.3.4 and everything works fine. My only change was to
load module 4.3.4 instead of php5 beta 4 in httpd.conf. So
it is definitly a php5 issue.
------------------------------------------------------------------------
[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