Skip to content

Commit 0617a6b

Browse files
committed
Use getmypid() which also works on Windows
1 parent 7cfe7d1 commit 0617a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RedisLock/RedisLock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function __destruct() {
129129
* @return string
130130
*/
131131
protected function createToken() {
132-
return posix_getpid() .':'. microtime() .':'. mt_rand(1, 9999);
132+
return getmypid() .':'. microtime() .':'. mt_rand(1, 9999);
133133
}
134134

135135
/**

0 commit comments

Comments
 (0)