php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #7012 Bug in Example for Function pg_connect
Submitted: 2000-10-04 08:27 UTC Modified: 2000-10-06 16:59 UTC
From: bumbi at gmx dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.2 OS: Debian Linux
Private report: No CVE-ID: None
 [2000-10-04 08:27 UTC] bumbi at gmx dot net
In your Example you write the following:
"$dbconn3 = pg_Connect ("user=lamb passwd=baaaa dbname=mary ");" 

and later on 

"The arguments available include dbname port, host, tty, options, user, and password ".

The Codeline in your Example won't work with PHP 4.0.2, until you change it into
"$dbconn3 = pg_Connect ("user=lamb password=baaaa dbname=mary ");".

You have to write "password=" instead of "passwd="!

CU
AndiB



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-06 16:59 UTC] jmoore@php.net
Fixed in docu.. should appear in next build
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 15:00:01 2026 UTC