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

From: Date: Tue, 11 Dec 2001 19:55:28 +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-73073@lists.php.net to get a copy of this message
ID: 14398 Updated by: derick Reported By: hs@cybertec.at Old Status: Open Status: Feedback Bug Type: PostgreSQL related Operating System: Linux PHP Version: 4.0.6 New Comment: please post a backtrace here, check on : bugs.php.net/how-to-report.php how to do it. Derick Previous Comments: ------------------------------------------------------------------------ [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 (#73073) next »