Oops,
I see now that Darby has got it covered for the string 'true'. I apologies
for having been too lazy to read.
Regards,
Eric
----- Original Message -----
From: "Eric Alvares" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 01, 2007 11:43 PM
Subject: Re: [fw-general] Zend_Loader issue on ZFW 1.0.2
Hi Darby,
Thanks for looking into this. I do have a question, still. Does the 6556
fix take into account string values for the profiler? This happens when
the profiler was set up by passing the db factory a Zend_Config_Ini/Xml.
As a result an array with the string value 'true' for the profiler key
gets passed to an adapter, right? I just thought I'd post... No time for
real testing but #2016 seems more or less a duplicate of #2004 and the
latter is still open.
If I'm completely off-track, please accept my apologies.
Best regards,
Eric
----- Original Message -----
From: "Darby Felton" <[EMAIL PROTECTED]>
To: "Juan Felipe Alavarez Saldarriaga" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Monday, October 01, 2007 10:42 PM
Subject: Re: [fw-general] Zend_Loader issue on ZFW 1.0.2
Hi Juan et al,
I believe I have resolved this with SVN r6556:
http://framework.zend.com/fisheye/changelog/Zend_Framework/?cs=6556
Please try the latest SVN and let us know your mileage. Thanks!
Best regards,
Darby
Juan Felipe Alavarez Saldarriaga wrote:
:)
Hey, I upgrade from ZFW 1.0.1 to ZFW 1.0.2 and I got this exception on
my bootstrap start:
Fatal error: Uncaught exception 'Zend_Exception' with message 'File
"true.php" was not found' in
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php:159
Stack trace:
#0 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php(91):
Zend_Loader::loadFile('true.php', Array, true)
#1
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(334):
Zend_Loader::loadClass('true')
#2
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db/Adapter/Abstract.php(227):
Zend_Db_Adapter_Abstract->setProfiler('true')
#3 /usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Db.php(252):
Zend_Db_Adapter_Abstract->__construct(Array)
#4 /home/jfalvarez/php5/soficol/cms_dev/site/functions/index_db.php(14):
Zend_Db::factory('pdo_pgsql', Array)
#5 /home/jfalvarez/php5/soficol/cms_dev/site/htdocs/index.php(45):
require_once('/home/jfalvarez...')
#6 {main} thrown in
/usr/local/lib/fw/php/phpzend-1.0.2/library/Zend/Loader.php on line 159
This is my index.php code:
#
# Checking modules integrity.
#
/**
* Check the existence of a class.
*
* @param string $strClass Class name.
* @return void.
*/
function __autoload( $strClass )
{
Zend_Loader::loadClass( $strClass );
}
// Load db.
require_once( "index_db.php" );
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 );
// Register database object.
Zend_Registry::set( 'db', $objDb );
I don't know why something returns "true" and tryes to execute
Zend_Loader::loadClass(). I set an echo one line before "$objDb =
Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );"
and is printed and the $strClass value before do "$objDb =
Zend_Db::factory( $objConfiguration->database->type, $arrDbConfig );" is
Zend_Db, I don't have this issue on ZFW 1.0.1
Thx for any help with this :).