Changeset 6172 seems to have introduced a BC-break in
Zend_Db_Adapter_Abstract, no longer allowing for the passing of simple true
or false profiler values with a Zend_Config.
The old implementation would retrieve the profiler option from the object
and cast the string to a boolean. The new implementation provides a more
flexible profiler option but no longer casts to boolean. A solution would be
to check if the string represent a boolean value and if so cast to boolean.
Regards,
Eric
BTW, my request for JIRA privileges has been replied to with a Delivery
Status Notification (Failure).
----- Original Message -----
From: "Daniel Rossi" <[EMAIL PROTECTED]>
To: "Graham Anderson" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, September 27, 2007 5:29 AM
Subject: Re: [fw-general] Zend_Loader issue on ZFW 1.0.2
Hi there it seems it only works if i change my config to the one
displayed below thats a huge change dont you think ?
On 27/09/2007, at 3:07 AM, Graham Anderson wrote:
On Wednesday 26 September 2007 17:25:40 Juan Felipe Alavarez Saldarriaga
wrote:
And this is my index_db.php script code:
// Load DB info
$arrDbConfig = array(
'host' => $objConfiguration->database->host,
'username' =>
$objConfiguration->database->username, 'password' =>
$objConfiguration->database->password,
'dbname' => $objConfiguration->database->name,
'profiler' => $objConfiguration->database->profiler
);
// Set connection to the database.
$objDb = Zend_Db::factory( $objConfiguration->database->type,
$arrDbConfig
);
or alternatively now you can just pass a single Zend_Config object:
$db = Zend_Db::factory($this->_appConfig->database);
---- snip ----
<database>
<adapter>Pdo_Mysql</adapter>
<params>
<dsn></dsn>
<host>host</host>
<dbname>dbname</dbname>
<username>username</username>
<password>password</password>
<profiler>
<enabled>true</enabled>
</profiler>
</params>
</database>
---- /snip ----