Hi
I use IOS 10.13.3 and MAMP server.
I problem with cache, it not store file.
It bug in file CodeIgniter\Config\BaseConfig line 140.
PHP Code:
$value = getenv( $property );
In App\Confg\Cache , attr $path is bug
It return path of IOS : /usr/bin:/bin:/usr/sbin:/sbin
I print_r $config in file: CodeIgniter\Cache\Handlers\FileHander.php
PHP Code:
public function __construct($config)
{
$this->prefix = $config->prefix ?: '';
$this->path = ! empty($config->path) ? $config->path : WRITEPATH . 'cache';
print_r($config);
$this->path = rtrim($this->path, '/') . '/';
}
it return result:
PHP Code:
Config\Cache Object
(
[handler] => file
[backupHandler] => dummy
[path] => /usr/bin:/bin:/usr/sbin:/sbin
[cacheQueryString] =>
[prefix] =>
[memcached] => Array
(
[host] => 127.0.0.1
[port] => 11211
[weight] => 1
[raw] =>
)
[redis] => Array
(
[host] => 127.0.0.1
[password] =>
[port] => 6379
[timeout] => 0
)
[validHandlers] => Array
(
[dummy] => CodeIgniter\Cache\Handlers\DummyHandler
[file] => CodeIgniter\Cache\Handlers\FileHandler
[memcached] => CodeIgniter\Cache\Handlers\MemcachedHandler
[predis] => CodeIgniter\Cache\Handlers\PredisHandler
[redis] => CodeIgniter\Cache\Handlers\RedisHandler
[wincache] => CodeIgniter\Cache\Handlers\WincacheHandler
)
[registrars:protected] =>
)
Path of cache is changed.
How to fix it ?
Thanks