php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1850 Seg fault (11) on pg_fetch_array
Submitted: 1999-07-23 12:15 UTC Modified: 1999-07-23 12:23 UTC
From: rkatieb at aggressivesoftware dot com Assigned:
Status: Closed Package: Reproducible Crash
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: rkatieb at aggressivesoftware dot com
New email:
PHP Version: OS:

 

 [1999-07-23 12:15 UTC] rkatieb at aggressivesoftware dot com
The apache child process (apache 1.3.6) dies w/segmentation fault (11) on any call to pg_fetch_array with a row > 0.  pgsql version is 6.5.  

WORKAROUND:  Use pg_fetch_row to get the data, and perform a loop with pg_fieldname to find the column you are after.

Much slower but at least it doesn't crash.  :-)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-23 12:23 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 12:00:01 2026 UTC