yii and wordpress db connection

This question was already asked in russian, though, I’d like to post it here and what u guys can say about it.

We’re integrating yii in wordpress and are intrested in ability to use only one connection with db for wp and yii. Is it possible?

I don’t think it’s possible because Yii uses PDO and Wordpress uses mysql extension to connect to database. But exactly why do you need it? Database connection is rebuilt on every request, and it’s very unlikely that the same request accesses both a Yii page and a Wordpress page.

There will be pages built with wp with yii widgets.