php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6575 httpd segfaults when accessing pgsql database which isn't running
Submitted: 2000-09-06 08:01 UTC Modified: 2000-09-10 10:25 UTC
From: larsch at cs dot auc dot dk Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.1pl2 OS: Redhat 6.2/Linux-2.2.17
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: larsch at cs dot auc dot dk
New email:
PHP Version: OS:

 

 [2000-09-06 08:01 UTC] larsch at cs dot auc dot dk
If postmaster isn't running on the server, the http daemon
segfaults when trying to access the db it using pg_connect();

I used the postgresql rpms available from www.postgresql.org.

The psql binary from the postgresql dist. does not segfault when
trying to open a connection to a server that does not exists, so i figure the
problem must be somewhere in the php module.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-10 10:25 UTC] jah@php.net
I've got a very strong hunch that the segfault happened actually when you were
trying to use a non-existent connection, not in the connection phase itself.

This could happen in 4.0.1pl2 and is fixed in 4.0.2. Please upgrade and re-open if
there is still a problem. Shouldn't, I can't verify this happening anymore.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 07:00:02 2026 UTC