[MacPorts] #22603: PDO::MYSQL_ATTR_INIT_COMMAND not Available
MacPorts
noreply at macports.org
Wed Nov 18 18:58:57 PST 2009
#22603: PDO::MYSQL_ATTR_INIT_COMMAND not Available
------------------------------------+---------------------------------------
Reporter: yago.riveiro@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: PHP,PDO | Port: mysqlnd
------------------------------------+---------------------------------------
Hi,
I have the next error:
Fatal error: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'
I was looking for in php bug tracker the error, and they say that it was
solved.
I have installing the port php 5.3.1RC4 devel whit mysqlnd in Snow Leopard
The portion of my code that fails:
{{{
$manager = Doctrine_Manager::getInstance();
$conection = $manager->
connection('mysql://'.DB_SERVER_USERNAME.':'.DB_SERVER_PASSWORD.'@'.DB_SERVER.'/'.DB_DATABASE,
"base_connection");
$conection->setOption("other", array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET
NAMES utf8", PDO::ATTR_PERSISTENT => false));
}}}
Thanks
--
Ticket URL: <http://trac.macports.org/ticket/22603>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list