Вход Регистрация
Файл: concrete5.7.5.6/concrete/vendor/tedivm/stash/src/Stash/Exception/WindowsPathMaxLengthException.php
Строк: 51
<?php

/*
 * This file is part of the Stash package.
 *
 * (c) Robert Hafner <tedivm@tedivm.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace StashException;

/**
 * Thrown when path exceeds 260 total Windows PHP character limit.
 *
 * Solutions:
 *   1. Move the cache path to a root directory to reduce path length.
 *   2. Use a different Stash driver, such as SQLite.
 *   3. Use less subkeys to reduce the depth of the cache path.
 *   4. Switch to a shorter hashing algorithm such as crc32 (not recommended as could produce collisions)
 *
 * Reasons we can't fix this:
 *   * PHP currently does not and will not support Windows extended length paths (\?C:...)
 *     http://www.mail-archive.com/internals@lists.php.net/msg62672.html
 *
 * Class WindowsPathMaxLengthException
 * @package StashException
 * @author Jonathan Chan <jc@jmccc.com>
 */
class WindowsPathMaxLengthException extends Exception implements Exception
{
    public function 
__construct($message="",$code=0,$previous=null)
    {
        
parent::__construct("Cache path exceeds Windows PHP MAX_LENGTH of 260 characters. " $message,$code,$previous);
    }
}
Онлайн: 0
Реклама