php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #19727 Diffrent return-types on pg_connect and pg_pconnect
Submitted: 2002-10-02 17:56 UTC Modified: 2002-10-03 01:29 UTC
From: sjon at sjondamon dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.3 OS: N/A
Private report: No CVE-ID: None
 [2002-10-02 17:56 UTC] sjon at sjondamon dot org
I just noticed that pg_connect returns a resource, while pg_pconnect returns an int.
All databases that I've worked with used one or the other, but always the same for both normal and persistant connections.

Question is, wich is right?


Regards, Sjon.

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-03 01:29 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

All connect functions return a resource, I fixed this for the PostGreSQL documentions. If you find more inconsistencies, please drop a mail to phpdoc@lists.php.net .

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 08 13:01:28 2024 UTC