#27871 [NEW]: php_odbc support SQLDriverConnect for iODBC
From: vanderwl at us dot ibm dot com Operating system: SuSE 9 i386 PHP version: 4.3.4 PHP Bug Type: ODBC related Bug description: php_odbc support SQLDriverConnect for iODBC Description: In ext/odbc/php_odbc.c: odbc_sqlconnect(), only Empress, Win32 and unixODBC can make use of the SQLDriverConnect function. iODBC can use SQLDriverConnect as well and HAVE_IODBC should be added to the #ifdef around line 2093. -- Edit bug report at http://bugs.php.net/?id=27871&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27871&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27871&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27871&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27871&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27871&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27871&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27871&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=27871&r=support Expected behavior: http://bugs.php.net/fix.php?id=27871&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=27871&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=27871&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27871&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27871&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27871&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27871&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=27871&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27871&r=float
#10250 [Com]: UnixODBC can make use of SQLDriverConnect functionality too
ID: 10250 Comment by: vanderwl at us dot ibm dot com Reported By: dzoll at nyscul dot org Status: Closed Bug Type: ODBC related Operating System: linux PHP Version: 4.0.4pl1 New Comment: This also applies to the iODBC driver manager. Can this also be added to the #ifdef? Previous Comments: [2001-05-08 15:49:15] [EMAIL PROTECTED] now in cvs. thank you! [2001-04-18 21:41:53] [EMAIL PROTECTED] have you tried this fix with an older version of UnixODBC? [2001-04-09 15:15:59] dzoll at nyscul dot org In ext/odbc/php_odbc.c: odbc_sqlconnect(), only Openlink and Empress can make use of the SQLDriverConnect function. UnixODBC can use SQLDriverConnect as well, and in the case of some Easysoft ODBC connections, it *must* be able to use the SQLDriverConnect format in order to actually connect to the database. I have tried changing the #ifdef HAVE_EMPRESS to #if defined(HAVE_EMPRESS) || defined(HAVE_UNIXODBC) and everything worked fine, giving full access to the SQLDriverConnect method of calling odbc_connect and odbc_pconnect. If this could be incorporated into a later release, it would be very useful. (BTW, this was tested with UnixODBC 2.0.5) -- Edit this bug report at http://bugs.php.net/?id=10250&edit=1