Skip to content

Commit 23d182e

Browse files
author
Thibaud Fabre
committed
Fix undeclared var
1 parent 54c55d8 commit 23d182e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Callbacks/IpcSynchronizedCallback.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct($callback, $lockDirectory = '/tmp/')
2222
}
2323

2424
$this->callback = $callback;
25-
$this->hash = var_export($this->callback, true);
25+
$this->hash = md5(var_export($this->callback, true));
2626
$this->lockDirectory = $lockDirectory;
2727
}
2828

@@ -33,7 +33,7 @@ public function __invoke()
3333
$this->file = fopen($this->lockDirectory . '/' . $this->hash . '.lock', 'c+');
3434

3535
if ($this->file) {
36-
$result = Files::invokeEx(array($this,'call'), $handle, func_get_args());
36+
$result = Files::invokeEx(array($this,'call'), $this->file, func_get_args());
3737

3838
fclose($this->file);
3939
}

0 commit comments

Comments
 (0)