Bug #14398 Updated: PHP Core Dumps when connecting via UNIX sockets

From: Date: Tue, 01 Jan 2002 13:33:33 +0000
Subject: Bug #14398 Updated: PHP Core Dumps when connecting via UNIX sockets
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75492@lists.php.net to get a copy of this message
ID: 14398 Updated by: lobbin Reported By: hs@cybertec.at Old Status: Feedback Status: Closed Bug Type: PostgreSQL related Operating System: Linux PHP Version: 4.0.6 New Comment: No feedback. Closing. Previous Comments: ------------------------------------------------------------------------ [2001-12-11 16:48:34] mfischer@php.net Just to add: Try 4.1.0, maybe the problem has already been fixed. ------------------------------------------------------------------------ [2001-12-11 14:55:28] derick@php.net please post a backtrace here, check on : bugs.php.net/how-to-report.php how to do it. Derick ------------------------------------------------------------------------ [2001-12-10 04:46:57] hs@cybertec.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 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14398&edit=1

« previous php.dev (#75492) next »