File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class FileStorage implements Nette\Caching\Storage
32
32
/** @internal cache file structure: meta-struct size + serialized meta-struct + data */
33
33
private const
34
34
MetaHeaderLen = 6 ,
35
- // meta structure: array of
35
+ // meta structure: array of
36
36
MetaTime = 'time ' , // timestamp
37
37
MetaSerialized = 'serialized ' , // is content serialized?
38
38
MetaExpire = 'expire ' , // expiration timestamp
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ function getTempDir(): string
20
20
{
21
21
$ dir = __DIR__ . '/tmp/ ' . getmypid ();
22
22
23
- if (empty ($ GLOBALS ['\\ lock ' ])) {
23
+ if (empty ($ GLOBALS ['\lock ' ])) {
24
24
// garbage collector
25
- $ GLOBALS ['\\ lock ' ] = $ lock = fopen (__DIR__ . '/lock ' , 'w ' );
25
+ $ GLOBALS ['\lock ' ] = $ lock = fopen (__DIR__ . '/lock ' , 'w ' );
26
26
if (rand (0 , 100 )) {
27
27
flock ($ lock , LOCK_SH );
28
28
@mkdir (dirname ($ dir ));
You can’t perform that action at this time.
0 commit comments