addRecommendation( "00" === substr(sprintf('%o', fileperms($path)), -2), "$path should not be readable or writeable for other users, current mode is (".substr(sprintf('%o', fileperms($path)), -4).")", "Change the permissions of the \"$path\" file to 0600" ); } $path = array(); if ($registry->is_set('GV_base_datapath_noweb')) { $paths[] = $registry->get('GV_base_datapath_noweb'); } foreach ($paths as $path) { $this->addRequirement( is_writable($path), "$path directory must be writable", "Change the permissions of the \"$path\" directory so that the web server can write into it." ); } } /** * {@inheritdoc} * * @return FilesystemProbe */ public static function create(Application $app) { return new static($app['phraseanet.registry']); } }