git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24599 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -154,7 +154,7 @@ class Zend_Cache_Backend
$tmpdir = array();
foreach (array($_ENV, $_SERVER) as $tab) {
foreach (array('TMPDIR', 'TEMP', 'TMP', 'windir', 'SystemRoot') as $key) {
- if (isset($tab[$key])) {
+ if (isset($tab[$key]) && is_string($tab[$key])) {
if (($key == 'windir') or ($key == 'SystemRoot')) {
$dir = realpath($tab[$key] . '\\temp');
} else {