|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-11 14:55 UTC] derick@php.net
[2001-12-11 16:48 UTC] mfischer@php.net
[2002-01-01 08:33 UTC] lobbin@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
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