Open hkui opened 5 years ago
can you show a stack trace of the exception?
can you show a stack trace of the exception?
Confirmed, I see this problem on the Cache component too, where getValue() returns NULL instead of false when checking for a key existence.
Redis returns "-1" when a key is not found, and this fall into this case:
| Yii vesion 2.0.15 | PHP version 7.1 | Operating system centos redis:4.0.2 `/**
@return string the session data */ public function readSession($id) { $data = $this->redis->executeCommand('GET', [$this->calculateKey($id)]);
}`
$data=null时 就不全等于false了,返回的是null session_start(): Failed to read session data: user (path: ) php7.1里readSession必须返回字符串