<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум PHP-MyAdmin.RU &mdash; При Импорте БД вылетает ОШИБКА]]></title>
		<link>https://forum.php-myadmin.ru/viewtopic.php?id=4615</link>
		<atom:link href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=4615&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «При Импорте БД вылетает ОШИБКА».]]></description>
		<lastBuildDate>Thu, 21 Jun 2018 13:06:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: При Импорте БД вылетает ОШИБКА]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=27802#p27802</link>
			<description><![CDATA[<p>Попробуйте импортировать дамп через командную строку или MySQL. Можно так же попробовать любой специализированный скрипт для импорта БД.</p>]]></description>
			<author><![CDATA[null@example.com (Hanut)]]></author>
			<pubDate>Thu, 21 Jun 2018 13:06:55 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=27802#p27802</guid>
		</item>
		<item>
			<title><![CDATA[При Импорте БД вылетает ОШИБКА]]></title>
			<link>https://forum.php-myadmin.ru/viewtopic.php?pid=27801#p27801</link>
			<description><![CDATA[<p><strong>При Импорте БД вылетает ОШИБКА:</strong><br />Fatal error: Default value for parameters with a class type hint can only be NULL in C:\server\data\htdocs\phpMyAdmin\vendor\symfony\cache\Adapter\ArrayAdapter.php on line 33</p><p><strong>Зашол в файл по даному адресу , но не пойму что править надо...&nbsp; ВЫРУЧАЙТЕ!!!<br /></strong></p><div class="codebox"><pre><code>&lt;?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier &lt;fabien@symfony.com&gt;
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Cache\Adapter;

use Psr\Cache\CacheItemInterface;
use Psr\Log\LoggerAwareInterface;
use Symfony\Component\Cache\CacheItem;
use Symfony\Component\Cache\ResettableInterface;
use Symfony\Component\Cache\Traits\ArrayTrait;

/**
 * @author Nicolas Grekas &lt;p@tchwork.com&gt;
 */
class ArrayAdapter implements AdapterInterface, LoggerAwareInterface, ResettableInterface
{
    use ArrayTrait;

    private $createCacheItem;

    /**
     * @param int  $defaultLifetime
     * @param bool $storeSerialized Disabling serialization can lead to cache corruptions when storing mutable values but increases performance otherwise
     */
    public function __construct(int $defaultLifetime = 0, bool $storeSerialized = true)
    {
        $this-&gt;storeSerialized = $storeSerialized;
        $this-&gt;createCacheItem = \Closure::bind(
            function ($key, $value, $isHit) use ($defaultLifetime) {
                $item = new CacheItem();
                $item-&gt;key = $key;
                $item-&gt;value = $value;
                $item-&gt;isHit = $isHit;
                $item-&gt;defaultLifetime = $defaultLifetime;

                return $item;
            },
            null,
            CacheItem::class
        );
    }

    /**
     * {@inheritdoc}
     */
    public function getItem($key)
    {
        $isHit = $this-&gt;hasItem($key);
        try {
            if (!$isHit) {
                $this-&gt;values[$key] = $value = null;
            } elseif (!$this-&gt;storeSerialized) {
                $value = $this-&gt;values[$key];
            } elseif (&#039;b:0;&#039; === $value = $this-&gt;values[$key]) {
                $value = false;
            } elseif (false === $value = unserialize($value)) {
                $this-&gt;values[$key] = $value = null;
                $isHit = false;
            }
        } catch (\Exception $e) {
            CacheItem::log($this-&gt;logger, &#039;Failed to unserialize key &quot;{key}&quot;&#039;, array(&#039;key&#039; =&gt; $key, &#039;exception&#039; =&gt; $e));
            $this-&gt;values[$key] = $value = null;
            $isHit = false;
        }
        $f = $this-&gt;createCacheItem;

        return $f($key, $value, $isHit);
    }

    /**
     * {@inheritdoc}
     */
    public function getItems(array $keys = array())
    {
        foreach ($keys as $key) {
            CacheItem::validateKey($key);
        }

        return $this-&gt;generateItems($keys, time(), $this-&gt;createCacheItem);
    }

    /**
     * {@inheritdoc}
     */
    public function deleteItems(array $keys)
    {
        foreach ($keys as $key) {
            $this-&gt;deleteItem($key);
        }

        return true;
    }

    /**
     * {@inheritdoc}
     */
    public function save(CacheItemInterface $item)
    {
        if (!$item instanceof CacheItem) {
            return false;
        }
        $item = (array) $item;
        $key = $item[&quot;\0*\0key&quot;];
        $value = $item[&quot;\0*\0value&quot;];
        $expiry = $item[&quot;\0*\0expiry&quot;];

        if (null !== $expiry &amp;&amp; $expiry &lt;= time()) {
            $this-&gt;deleteItem($key);

            return true;
        }
        if ($this-&gt;storeSerialized) {
            try {
                $value = serialize($value);
            } catch (\Exception $e) {
                $type = is_object($value) ? get_class($value) : gettype($value);
                CacheItem::log($this-&gt;logger, &#039;Failed to save key &quot;{key}&quot; ({type})&#039;, array(&#039;key&#039; =&gt; $key, &#039;type&#039; =&gt; $type, &#039;exception&#039; =&gt; $e));

                return false;
            }
        }
        if (null === $expiry &amp;&amp; 0 &lt; $item[&quot;\0*\0defaultLifetime&quot;]) {
            $expiry = time() + $item[&quot;\0*\0defaultLifetime&quot;];
        }

        $this-&gt;values[$key] = $value;
        $this-&gt;expiries[$key] = null !== $expiry ? $expiry : PHP_INT_MAX;

        return true;
    }

    /**
     * {@inheritdoc}
     */
    public function saveDeferred(CacheItemInterface $item)
    {
        return $this-&gt;save($item);
    }

    /**
     * {@inheritdoc}
     */
    public function commit()
    {
        return true;
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (euphoria_vlad)]]></author>
			<pubDate>Thu, 21 Jun 2018 12:20:22 +0000</pubDate>
			<guid>https://forum.php-myadmin.ru/viewtopic.php?pid=27801#p27801</guid>
		</item>
	</channel>
</rss>
