Yii Framework Forum: Use Of Undefined Constant Odbc_Binmode_Return - Assumed 'odbc_Binmode_Return' - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Use Of Undefined Constant Odbc_Binmode_Return - Assumed 'odbc_Binmode_Return' PHP Notice using adodb5 to connect to Access MDB

#1 User is offline   tking 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 18-February 11

Posted 24 June 2013 - 09:42 PM

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.
0

#2 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,085
  • Joined: 16-February 11
  • Location:Japan

Posted 25 June 2013 - 07:58 AM

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.
0

#3 User is offline   tking 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 18-February 11

Posted 25 June 2013 - 11:07 AM

View Postsoftark, on 25 June 2013 - 07:58 AM, said:

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.
0

#4 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 2,085
  • Joined: 16-February 11
  • Location:Japan

Posted 25 June 2013 - 11:20 AM

I see.

BTW, I couldn't find the string 'ODBC_BINMODE_RETURN' in adodb.inc.php which I downloaded from here.
http://sourceforge.n...ts/adodb/files/
Are we looking at the different things?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users