ZF-9000: Replacement in Zend_View_Abstract makes using streams in view search paths impossible

Issue Type: Bug Created: 2010-01-28T11:11:38.000+0000 Last Updated: 2011-05-28T23:05:57.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)

Reporter: Elizabeth M Smith (auroraeosrose) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: - ZF-4622



When adding a paths via addScriptPath to a view the _addPath method is called in Zend_View_Abstract

If a desired path has a stream prefix (e.g. file://) and the host OS is windows, the // are replaced with \ rendering the path unusable

Offending line is 1023 of Zend_View_Abstract $dir = str_replace(array('/', '\'), DIRECTORY_SEPARATOR, $dir);

Changing this to a more careful replacement with preg_replace - or even then doing a :// for :\ on windows would solve the issue


Posted by Matthew Weier O'Phinney (matthew) on 2010-02-04T10:56:13.000+0000

I believe this is resolved with r20906 in trunk and r20907 in the 1.10 release branch. Please re-open the issue (or ping me to re-open it) if you're still having issues.

Posted by Ralph Schindler (ralph) on 2010-02-22T23:21:00.000+0000

Fixed failing unit tests as a result of earlier patches to this issue in r21141 trunk and 1.10 release branch r21144

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.