I’m running into some errors with Zend_Loader (1.10.8) when I initialize the Google Calendar API in PHP. Here is my code:
\Zend_Loader::loadClass('Zend_Gdata');
\Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
\Zend_Loader::loadClass('Zend_Gdata_Calendar');
$this->_service = \Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$this->_client = \Zend_Gdata_ClientLogin::getHttpClient(USER, PASS, $this->_service);
$this->_client->setConfig(array('keepalive' => true));
$this->_service = new \Zend_Gdata_Calendar($this->_client);
$this->defaultQuery = $this->_service->newEventQuery();
That last line gives the following errors:
Warning: include_once(Zend/Gdata/Calendar/Extension/EventQuery.php): failed to open stream: No such file or directory
Warning: include_once(): Failed opening 'Zend/Gdata/Calendar/Extension/EventQuery.php' for inclusion
This doesn’t break any functionality, but I can’t figure out how to resolve the errors. My EventQuery.php files lives in “/Zend/Gdata/Calendar/EventQuery.php” and not the path it’s using in the error. Any ideas?
It’s a bug, and it seems it occurs again in newer versions of ZendFramework
here is the original http://framework.zend.com/issues/browse/ZF-7013?focusedCommentId=49379
here is the one i reopened but nothing happends http://framework.zend.com/issues/browse/ZF-11959