Use Of Undefined Constant Odbc_Binmode_Return - Assumed 'odbc_Binmode_Return'

Getting this PHP notice when trying to use ADOdb5 to open an Access database.

Use of undefined constant ODBC_BINMODE_RETURN - assumed ‘ODBC_BINMODE_RETURN’

vendors\adodb5\adodb.inc.php(4314)

Need a fix.

Enviroment is…

Yii 13

Zend Apache 2.2 server

The Access db is used to read a database generated by another application.

Using a mysql for main yii database.

Hi tking,

It seems to me a bug in ADOdb (or a coding error of your own).

I don’t think it’s a bug in Yii.

I had modified the code in ADOdb5 to define the constants that were giving the errors and I was able to get rid of the error messages but the application was unable to return a recordset, so I removed the mods.

Well, I got it working correctly on an earlier version of Yii last night after posted the topic. So I believe it is an issue between Yii and ADOdb5 and Zend Apache 2.

I installed XAMPP and mySQL and everything works just as it should.

SO, Thanks for the suggestion but I’ll be closing this topic.

I see.

BTW, I couldn’t find the string ‘ODBC_BINMODE_RETURN’ in adodb.inc.php which I downloaded from here.

http://sourceforge.net/projects/adodb/files/

Are we looking at the different things?