php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14398 PHP Core Dumps when connecting via UNIX sockets
Submitted: 2001-12-10 04:46 UTC Modified: 2002-01-01 08:33 UTC
From: hs at cybertec dot at Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.6 OS: Linux
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: hs at cybertec dot at
New email:
PHP Version: OS:

 

 [2001-12-10 04:46 UTC] hs at cybertec dot at
The database called phpbook belongs to user postgres and is located on the local host (-> Access via UNIX sockets and not TCP/IP).
pg_host causes PHP to core dump - other commands don't  seem to work properly as well.

<?php
        $connstr = "dbname=phpbook user=postgres";
        $dbh = @pg_connect($connstr);
 
        if      ($dbh)
        {
                echo "Handle exists<br>";
        }
 
        echo "Host: ".pg_host($dbh)."<br>";
        echo "Database: ".pg_dbname($dbh)."<br>";
        echo "Port: ".pg_port($dbh)."<br>";
        echo "tty: ".pg_tty($dbh)."<br>";
?>


bash-2.05$ php connect.php
X-Powered-By: PHP/4.0.6
Content-type: text/html
 
Segmentation fault

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-11 14:55 UTC] derick@php.net
please post a backtrace here, check on :
bugs.php.net/how-to-report.php how to do it.

Derick
 [2001-12-11 16:48 UTC] mfischer@php.net
Just to add:
Try 4.1.0, maybe the problem has already been fixed.
 [2002-01-01 08:33 UTC] lobbin@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 22 17:01:41 2024 UTC