Issues

ZF-8429: Inconsistent directory separator in include paths for Zend_Loader_PluginLoader cache file

Issue Type: Bug Created: 2009-11-30T14:24:48.000+0000 Last Updated: 2012-11-20T21:38:09.000+0000 Status: Open Fix version(s): Reporter: Phil Brown (philbrown) Assignee: None Tags: - Zend_Loader

Related issues: Attachments: - ZF-8429.patch

Description

After following the "Using the PluginLoader class file include cache" example, I've noticed that there is inconsistent directory separators used within the generated "include file" cache script, for example

<pre class="highlight">
<?php
// data/pluginLoaderCache.php
include_once 'Zend/Filter/Word\CamelCaseToDash.php';
include_once 'Zend/Filter/StringToLower.php';

I'm sure this is due to the fact that I'm developing on a Windows host however I can't see why only some entries are using the backslash. This will also cause issues if I deploy this file to a Linux host.

Comments

Posted by Richard Knop (risoknop) on 2010-12-17T00:21:11.000+0000

Certainly, this is very annoying when you are developing on a Windows machine but your production server is Linux. I hope this gets fixed in the next release.

Also check my SF question which concerns this exact bug: http://stackoverflow.com/questions/4458675/…

Best Regards,

Richard Knop

Posted by Marc Hodgins (mjh_ca) on 2010-12-19T02:04:01.000+0000

Patch with test attached. Since include/require on all platforms (including windows) accepts forward slashes, the patch simply normalizes all cached include paths to use forward slashes.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts