开发者

Odd unknown error with 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.p开发者_高级运维hp' 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜