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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 20:01:29 2024 UTC