dt56449492
dt56449492
2010-12-16 08:18
浏览 34
已采纳

Zend_Loader_PluginLoader :: setIncludeFileCache()出现奇怪的未知错误

Ok. Here is my code:

    $classFileIncCache = BASE_PATH.'/public/cache/pluginLoaderCache.php';
    if (file_exists($classFileIncCache)) {
        include_once $classFileIncCache;
    }
    Zend_Loader_PluginLoader::setIncludeFileCache($classFileIncCache);  

Now, it works great except, a single unknown error keeps getting written to my logs:

2010-12-16 09:11:05: Unknown error (ErrNo=2): include_once(Zend/Filter/Word\CamelCaseToDash.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/abcabc/abcabc.com/myapp/src/public/cache/pluginLoaderCache.php on line 9
2010-12-16 09:11:05: Unknown error (ErrNo=2): include_once() [<a href='function.include'>function.include</a>]: Failed opening 'Zend/Filter/Word\CamelCaseToDash.php' for inclusion (include_path='/var/www/abcabc/abcabc.com/lib/../thirdparty/src/Zend/library/:/var/www/abcabc/abcabc.com/lib/../myapp/src//library') in /var/www/abcabc/abcabc.com/myapp/src/public/cache/pluginLoaderCache.php on line 9

Upon further investigation I noticed this line in the cache file is problematic:

include_once 'Zend/Filter/Word\CamelCaseToDash.php';

All other lines are correct, with only forward slashes, for instance:

include_once 'Zend/View/Helper/HeadMeta.php';
include_once 'Zend/View/Helper/HeadLink.php';
include_once 'Zend/View/Helper/HeadScript.php';
include_once 'Zend/Controller/Action/Helper/ViewRenderer.php';
include_once 'Zend/Application/Resource/Frontcontroller.php';
include_once 'Zend/View/Helper/Doctype.php';

Is this a Zend Framework bug or could an error on my side be causing this?

图片转代码服务由CSDN问答提供 功能建议

好的。 这是我的代码:

  $ classFileIncCache = BASE_PATH。'/ public / cache / pluginLoaderCache.php'; 
 if(file_exists($ classFileIncCache)){
 include_once $  classFileIncCache; 
} 
 Zend_Loader_PluginLoader :: setIncludeFileCache($ classFileIncCache);  
   
 
 

现在,它工作得很好,除了,一个未知错误不断写入我的日志:

  2010  -12-16 09:11:05:未知错误(ErrNo = 2):include_once(Zend / Filter / Word \ CamelCaseToDash.php)[&lt; a href ='function.include-once'&gt; function.include-once&lt  ; / a&gt;]:无法打开流:第9行
2010-12-16 09 /var/www/abcabc/abcabc.com/myapp/src/public/cache/pluginLoaderCache.php中没有此类文件或目录:  11:05:未知错误(ErrNo = 2):include_once()[&lt; a href ='function.include'&gt; function.include&lt; / a&gt;]:打开'Zend / Filter / Word \ CamelCaseToDash.php'失败 包含(include_path ='/ var / www / abcabc / abcabc.com / lib /../ thirdparty / src / Zend / library /:/ var / www / abcabc / abcabc.com / lib /../ myapp / src  // library')位于第9行的/var/www/abcabc/abcabc.com/myapp/src/public/cache/pluginLoaderCache.php 
   
 
 

进一步 调查我注意到缓存文件中的这一行是有问题的:

  include_once'Zend / Filter / Word \ CamelCase  ToDash.php'; 
   
 
 

所有其他行都是正确的,只有正斜杠,例如:

   include_once'Zend / View / Helper / HeadMeta.php'; 
include_once'Zend / View / Helper / HeadLink.php'; 
include_once'Zend / View / Helper / HeadScript.php'; 
include_once'Zend / Controller / Action /  Helper / ViewRenderer.php'; 
include_once'Zend / Application / Resource / Frontcontroller.php'; 
include_once'Zend / View / Helper / Doctype.php'; 
   
 
 < 这是一个Zend Framework错误还是我的错误导致了这个? 
 
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • duanfu7004
    duanfu7004 2010-12-16 13:40
    已采纳

    I literally just had this. It arose when I FTP'd files from my Windows machine to my Linux server. Delete the file and Zend will recreate it with the correct Directory Seperators as tawfeko suggests

    点赞 评论

相关推荐