From fde9d122ccf0fa9fbec1a8e6bccc0189f9beb033 Mon Sep 17 00:00:00 2001 From: Eric Clemmons Date: Thu, 20 Oct 2011 13:33:20 -0700 Subject: [PATCH] ProxyFactory checks presence of directory with `is_dir` instead of `file_exists` --- lib/Doctrine/ORM/Proxy/ProxyFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/ORM/Proxy/ProxyFactory.php b/lib/Doctrine/ORM/Proxy/ProxyFactory.php index 0bba4dabb..6ab28be3a 100644 --- a/lib/Doctrine/ORM/Proxy/ProxyFactory.php +++ b/lib/Doctrine/ORM/Proxy/ProxyFactory.php @@ -153,7 +153,7 @@ class ProxyFactory $file = str_replace($placeholders, $replacements, $file); $parentDirectory = dirname($fileName); - if (! file_exists($parentDirectory)) { + if (! is_dir($parentDirectory)) { mkdir($parentDirectory, 0, true); }