Bug 312

Summary: PHP3 does not recognize commands to connect to PostgreSQL
Product: [Retired] Red Hat Linux Reporter: beholder
Component: mod_php3Assignee: David Lawrence <dkl>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: 5.2CC: paolo.saggese
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1998-12-05 17:46:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description beholder 1998-12-05 16:45:14 UTC
When using PHP3 to connect a web page to a PostgreSQL
database, even the most basic PHP commands fail.

Here is an example:

This is the line in my HTML code that according to PHP's
documentation, should have no problems:

<?
$conn = pg_connect("","","","","icwf");
?>

However, when I try to load the page with this code in it,
I get this error message:

Fatal error: Call to unsupported or undefined function
pg_connect() in /home/httpd/html/icwf/roster.php3 on line 10

pg_connect is a BASIC PHP command!  I should not have to
define it, because PHP should already parse and handle it.
If the mod_php3 was not compiled to enable access to
PostgreSQL from a web page, then it should be as quickly as
possible.  This eliminates the ability to do online
shopping, or any other application for which web pages and
databases must connect.

Comment 1 Cristian Gafton 1998-12-05 17:46:59 UTC
php3 does not have postgresql support compiled in.

Comment 2 paolo.saggese 1999-02-03 12:43:59 UTC
> If the mod_php3 was not compiled to enable access to
> PostgreSQL from a web page, then it should be as quickly as

I agree 110%.

This may not be really a bug of the package, but, IMHO, may very well
be seen as a bug of the distro... that is, since you package Apache
and mod_php3 as well as PostgreSQL as standard components of the
distro, anyone (at least, I) would expect to be able to use php3 to
access local PostgreSQL databases from the WWW.

I was just wondering about this problem, when I read this entry in
bugzilla!  Hope you'll consider to change this for the next release.

Tnx & Regards,
				  Paolo.