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

From: Date: Mon, 10 Dec 2001 09:46:58 +0000
Subject: Bug #14398: PHP Core Dumps when connecting via UNIX sockets
Groups: php.dev 
Request: Send a blank email to php-dev+get-73055@lists.php.net to get a copy of this message
From: hs@cybertec.at Operating system: Linux PHP version: 4.0.6 PHP Bug Type: PostgreSQL related Bug description: PHP Core Dumps when connecting via UNIX sockets 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 bug report at: http://bugs.php.net/?id=14398&edit=1

« previous php.dev (#73055) next »