php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1631 pg_Fetch_Array causes segmentation fault with PostgreSQL 6.5
Submitted: 1999-06-30 08:04 UTC Modified: 1999-06-30 08:07 UTC
From: sbragion at email dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.11 OS: Linux 2.0.36 Libc 5
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: sbragion at email dot com
New email:
PHP Version: OS:

 

 [1999-06-30 08:04 UTC] sbragion at email dot com
Environment: PHP 3.0.11 as DSO module with imap and PostgreSQL support, Apache 1.3.6, PostgreSQL 6.5.
PHP causes segmentation faults when pg_Fetch_Array is used.
Code example:

<?php // PostgreSQL test

$DBHandle = pg_Connect("host=localhost user=pgsql password=pgsql dbname=pgsql");
$Result = pg_Exec($DBHandle,"select * from test00 where testo = 'Record modifica
to' order by posizione");
for($I=0; $I<pg_NumRows($Result); $I++)
  {
    $Data = pg_Fetch_Array($Result,$I);
    echo "<p><code> $Data[0] $Data[1] $Data[2] $Data[3] </code><p>";
  }
pg_Close($DBHandle);

?>

This code works if I replace pg_Fetch_Array with pg_Fetch_Row.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-30 08:07 UTC] sas at cvs dot php dot net
Please use the search function before you submit a new bug report. We've seen this already multiple times.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 08:01:28 2024 UTC