Hii.
This works fine with PHP 5.2.x but not with PHP 5.3.0.
"db" => array(
'adapter' => 'pdo_mysql',
"params" => array(
"host" => 'localhost',
"username" => 'user',
"password" => 'xxxxxxx',
'dbname' => 'dbtest'
'charset' => 'utf8'
),
"isDefaultTableAdapter" => true
)
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND' in
C:\lib\php\ZendFramework\library\Zend\Db\Adapter\Pdo\Mysql.php on line
93
91 if (!empty($this->_config['charset'])) {
92 $initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
93 $this->_config['driver_options'][PDO::MYSQL_ATTR_INIT_COMMAND] =
$initCommand;
94 }
Cheers,
holo