2010年2月17日星期三

[fw-mvc] Some possible issues with 1.10.1 auto-loading

Hi,

I was working on a ZF application based on ZF 1.10.0.

After i migrated to ZF 1.10.1 all over the application are errors beacuse some resources doesn't seems to be auto-loaded properly.

Basically, as far as i understand the autoloader is actually only trying to use the last path from include_path and doesn't even bother to check for the first.

Here is my include_path:

    set_include_path(implode(PATH_SEPARATOR, array(
        ZF_LIBRARY_PATH,
        BASE_PATH . '/library',
        get_include_path()
    )));

I tried to switch all the application resources to use absolute path but errors again....

Sample for Application Resources...
<b>Warning</b>:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(C:\php5\pear/ZendX/Application/Resource/Log.php) is not within the allowed path(s): (D:\_Work\;D:\wamp\;C:\Windows\Temp\;c:\php\pear\) in <b>D:\wamp\frameworks\ZendFramework-1.10.1\Zend\Loader.php</b> on line <b>190</b><br /> <br /> <b>Warning</b>:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(C:\php5\pear/Application/Application/Resource/Log.php) is not within the allowed path(s): (D:\_Work\;D:\wamp\;C:\Windows\Temp\;c:\php\pear\) in <b>D:\wamp\frameworks\ZendFramework-1.10.1\Zend\Loader.php</b> on line <b>190</b><br /> 
<br /> <b>Warning</b>:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(C:\php5\pear/Imagis/Application/Resource/Log.php) is not within the allowed path(s): (D:\_Work\;D:\wamp\;C:\Windows\Temp\;c:\php\pear\) in <b>D:\wamp\frameworks\ZendFramework-1.10.1\Zend\Loader.php</b> on line <b>190</b><br /> 

Sample for view helpers:
<b>Warning</b>:  is_readable() [<a href='function.is-readable'>function.is-readable</a>]: open_basedir restriction in effect. File(C:\php5\pear/D:/_Work/vxwiki2/application/modules/default/views\helpers/Partial.php) is not within the allowed path(s): (D:\_Work\;D:\wamp\;C:\Windows\Temp\;c:\php\pear\) in <b>D:\wamp\frameworks\ZendFramework-1.10.1\Zend\Loader.php</b> on line <b>190</b><br /> 
I didn't posted on Issue tracker yet the issue...
--  Best regards, Cristian Bichis www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com

没有评论: