php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1888 It crashes at various times when using pg_fetch_array
Submitted: 1999-07-26 19:58 UTC Modified: 1999-07-28 16:57 UTC
From: sRp at portico dot org Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.11 OS: Linux 2.2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sRp at portico dot org
New email:
PHP Version: OS:

 

 [1999-07-26 19:58 UTC] sRp at portico dot org
I installed php3.0.11 with apache 1.3.6 and postgresql 6.5, 6.5.1, and 6.4.2.  When i have code that looks like:

<?php

include("/home/srp/php/inc/print_array.inc");

$database = pg_Connect ("dbname=wwc user=postgres ");
$res = pg_exec ($database, "select * from Groups");
print "*".$res."*";
print_array(pg_fetch_array($res,0));

?>


It will crash when it gets to the "pg_fetch_array" sometimes.  It seems to be related to what type of columns are returned from the select query, but it isn't consistant between installations and the two computers i have tried it on.

My compile options were something like (on the most minimal install i did):
./configure --enable-track-vars --with-pgsql --without-gd 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-28 16:57 UTC] sRp at portico dot org
3.0.12 fixed the problem .. thanks guys!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC