ZF-175: cacheDir requires trailing slash

Description

Improve Zend_Cache so that cacheDir option operates properly whether a trailing slash is included or not.

Comments

Hope I'm not being too pedantic, but wouldn't it be cleaner to replace:

        $last = substr($value, -1, 1);         if (($last != '/') and ($last != '\')) { $value = $value . '/'; }

with

        $value = rtrim($value, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;

...and that way you're letting PHP take care of the OS-specific separator

fixed on CVS (thanks)

I changed some other '/' into DIRECTORY_SEPARATOR. If you have a windows test platform, may you check if it's ok ? (i have only linux boxes)

thanks