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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 03:01:29 2024 UTC