ZF-48: MySQLi: Zend_Db_Adapter_MySQLi implementation incomplete (non functional) (TRAC#54)


Note: The MySQLi adapter uses the mysqli driver ( instead of the driver used by PDO (…

From: Mike Naberezny <mike.n@xxxxxxxx> Date: Wed, 19 Apr 2006 14:27:35 -0700

Rui Barreiros wrote:

    While i was playing around with Zend_Db_Table, i noticed that the Mysqli Adapter has a 'bug' ? It requires Zend_Db_Adapter_Interface and extends it, but it doesn't exist :)

    Can someone please inform if this is actually a bug ?

Hi Rui,

This is a known bug and will be fixed before the next release.

Thanks, Mike


05/16/06 12:30:31: Modified by anonymous

$db = Zend_Db::factory('Mysqli', $params);

Warning: require_once(Zend/Db/Adapter/Interface.php) [function.require-once]: failed to open stream: No such file or directory in C:\Root\Logins\login_Zend\Zend\Db\Adapter\Mysqli.php on line 35

copy Interface.php -> Zend/Db/Adapter/ :

Fatal error: Cannot redeclare class zend in C:\Root\Logins\login_Zend\Zend\Db\Adapter\Zend.php on line 35

i use new "Mysqli" , i not use "Mysql" help me please i not use pdoMysql, i preferer Mysqli

thanks 05/16/06 15:15:36: Modified by gavin

* owner changed from zend to darby.

Please use the PDO adapter for MySQL. The PDO adapter offers superior features and performance.

Also see [ZF-103].

Please enable mysqli feature as I'm using PHP 5.0.4 which no PDO included...

Hi Gavin

Thanks, I will commit my changes to the incubator and we can then move it back to core if its agreed.

Superbiji, 5.0.4 is not supported with Zend Framework 0.1.5 and future releases. Please upgrade to at least PHP 5.1.4, which includes PDO by default.

Please help Eugene by "svn update" and testing, suggesting improvements, and reviewing code for the all new mysqli adapter. We need help writing unit tests.

Please comment on the linked issue (closing this duplicate).