We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 299e530 commit 68cd29fCopy full SHA for 68cd29f
src/Handlers/ArrayHandler.php
@@ -28,7 +28,7 @@ class ArrayHandler implements
28
use SessionIdTrait;
29
30
private SessionId $sid;
31
-
+
32
/**
33
* @var array [string $data, array $meta = [string $id, int $last_modified, bool? $destroyed]]
34
*/
@@ -102,7 +102,7 @@ public function write_cas($token, $id, $data): bool
102
) {
103
return false;
104
}
105
106
return $this->write($id, $data);
107
108
src/Handlers/FileHandler.php
@@ -65,7 +65,7 @@ public function read($id)
65
if (!$this->validateId($id)) {
66
67
68
69
return (string) file_get_contents($this->getFilePath($id));
70
71
src/Handlers/RedisHandler.php
@@ -41,7 +41,7 @@ public function open($path, $name): bool
41
if (!empty($config['query'])) {
42
parse_str($config['query'], $query);
43
44
45
$redis = new Redis();
46
47
if (!$redis->connect($config['host'], (int) $config['port'])) {
src/Handlers/ScrapbookHandler.php
@@ -38,8 +38,8 @@ class ScrapbookHandler implements
38
protected float $lastWriteTimestamp;
39
40
public function __construct(
- Config $config,
- KeyValueStore $store,
+ Config $config,
+ KeyValueStore $store,
bool $disableCollections = false
$this->config = $config; // still required by SessionIdTrait
src/Manager.php
@@ -73,7 +73,7 @@ public function commit(): bool
73
$this->currentSession->close();
74
75
76
77
if (!$this->currentSession->isModified() && $this->config->getLazyWrite()) {
78
79
@@ -353,7 +353,7 @@ public function start(): bool
353
354
if (is_string($contents)) {
355
$isDecoded = $this->decode($contents);
356
357
if (!$isDecoded) {
358
$handler->destroy($id);
359
$handler->close();
@@ -392,7 +392,7 @@ public function status(): int
392
if (!isset($this->currentSession) || !$this->currentSession->isInitialized()) {
393
return \PHP_SESSION_NONE;
394
395
396
return \PHP_SESSION_ACTIVE;
397
398
@@ -444,7 +444,7 @@ public function write_close(): bool
444
} else {
445
$success = $handler->write($id, $contents);
446
447
448
if ($success) {
449
450
return true;
src/SessionId.php
@@ -77,7 +77,7 @@ public function validate_sid(string $id): bool
if ($prefix) {
$id = substr($id, strlen($prefix));
80
81
switch ($this->config->getSidBitsPerCharacter()) {
82
case 4:
83
// 0123456789abcdef
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments