Bug 30934

Summary: No unixODBC support in PHP by default
Product: [Retired] Red Hat Linux Reporter: Martin Stromberg <martin.stromberg>
Component: phpAssignee: Phil Copeland <copeland>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: johan.leckstrom
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-12-07 23:59:49 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 Martin Stromberg 2001-03-07 08:00:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)


PHP in RedHat 7.0 is not compiled with directive '--with-unixODBC' or '--
with-unixODBC=<DIR>' by default.

Reproducible: Always
Steps to Reproduce:
1. Try '$db_handle = odbc_connect("$dbname", "$dbuser", "$dbuser");' in 
PHP...

Actual Results:  Fatal error: Call to undefined function: odbc_connect() 
in index.php on line 10

Expected Results:  The ODBC datasource should have been connected to.

A PHP call to 'phpinfo()' will list the directives used for compiling 
PHP. '--with-unixODBC' is not listed there.

Comment 1 Bill Nottingham 2001-12-08 03:35:11 UTC
This is fixed in at least the 7.2 version.