Php 在youtube api/Zend Gdata中包含一次错误
我使用的是Zend Framework 1.11.10版,特别是GDATA/YouTube函数 我的日志被Php 在youtube api/Zend Gdata中包含一次错误,php,zend-gdata,Php,Zend Gdata,我使用的是Zend Framework 1.11.10版,特别是GDATA/YouTube函数 我的日志被 include_once(Zend\Gdata\Media\Extension\VideoQuery.php) failed to open stream: No such file or directory C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148 include_once(): Failed o
include_once(Zend\Gdata\Media\Extension\VideoQuery.php) failed to open stream: No such file or directory C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
include_once(): Failed opening "Zend\Gdata\Media\Extension\VideoQuery.php" for inclusion (include_path=".;C:\Zend\ZendServer\share\ZendFramework\library") C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
include_once(Zend\Gdata\Media\VideoQuery.php) failed to open stream: No such file or directory C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
include_once() Failed opening "Zend\Gdata\Media\VideoQuery.php" for inclusion (include_path=".;C:\Zend\ZendServer\share\ZendFramework\library") C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
include_once(Zend\Gdata\YouTube\Extension\VideoQuery.php) failed to open stream: No such file or directory C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
include_once() Failed opening "Zend\Gdata\YouTube\Extension\VideoQuery.php" for inclusion (include_path=".;C:\Zend\ZendServer\share\ZendFramework\library") C:\Zend\ZendServer\share\ZendFramework\library\Zend\Loader.php 148
在代码中,我找到了第1046行的gdata\app.php,它在所有\u注册包中循环,前3个是上面列出的,直到它到达正确的类Zend\u gdata\u YouTube
因此,我的问题是,如何才能将上述消息发送到not log?在文件试图包含它之前,似乎会有一个故障安全机制来验证该文件是否存在
注意:我回顾了我的日志,这些错误并不总是存在,即使在使用Zend框架时也是如此。我想知道是不是我造成了这种情况。我通过调用注册软件包(“Zend_Gdata_YouTube”)解决了这个问题代码>在Zend_Gdata_YouTube上
实例
$yt = new Zend_Gdata_YouTube();
$yt->registerPackage('Zend_Gdata_YouTube');
这只需将正确的包反移位到\u registeredpackages
现在,以下代码不会通过Zend_Loader
产生错误:
$yt->newVideoQuery();
我通过调用registerPackage('Zend_Gdata_YouTube')解决了这个问题代码>在Zend_Gdata_YouTube上
实例
$yt = new Zend_Gdata_YouTube();
$yt->registerPackage('Zend_Gdata_YouTube');
这只需将正确的包反移位到\u registeredpackages
现在,以下代码不会通过Zend_Loader
产生错误:
$yt->newVideoQuery();
请附上一个生成这些警告的最小代码示例。我得到的与Zend 1.11.10完全相同。请附上一个生成这些警告的最小代码示例。我得到的与Zend 1.11.10完全相同