php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40796 ODBC connect fails using
Submitted: 2007-03-13 18:07 UTC Modified: 2007-03-13 19:53 UTC
From: callahal at vaniercollege dot qc dot ca Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 5.2.1 OS: Windows 2003 svr std
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: callahal at vaniercollege dot qc dot ca
New email:
PHP Version: OS:

 

 [2007-03-13 18:07 UTC] callahal at vaniercollege dot qc dot ca
Description:
------------
Setup is
Windows 2003 Server STD, IIS6, PHP 5.2.1
using php-cgi.exe I cannoct connect to my system dsn datasource
which, as shown, is the northwind sample database on Ms_SQL Server 2000.
If I use php5isapi.dll, everything works fine.
However I prefer to use the php-cgi.exe.

All of php.exe, php-cgi.exe and php5isapi.dll work fine with ODBC connects with PHP version 5.2.0.

 


Reproduce code:
---------------
if($odbc_db = odbc_connect('Northwind', 'sample', 'sample')){
	echo "Connected AOK". eol ;
}else{
	die("Could not connect to ODBC data source Northwind");
}

Expected result:
----------------
I should connect


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-13 19:12 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Use odbc_errormsg() to get the error message.
 [2007-03-13 19:53 UTC] callahal at vaniercollege dot qc dot ca
Well If you say it's bogus -- fine.
But as I said, on the same machine - swap out the 5.2.1 and put back 5.2.0 and everything works fine. And BTW it's only the ODBC connect that doesn't work OCi8 works fine and so does MySQL connections.
But what do I know.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 20 04:01:32 2020 UTC