Check that the directory cache exists

This commit is contained in:
Francis Besset
2011-09-10 18:51:04 +02:00
parent 5dc84ef088
commit d0cc3e8bd2
5 changed files with 66 additions and 5 deletions

View File

@ -72,6 +72,10 @@ class Cache
static public function setDirectory($directory)
{
if (!is_dir($directory)) {
mkdir($directory, 0777, true);
}
self::iniSet('soap.wsdl_cache_dir', $directory);
}