Skip to content

Commit dea27b5

Browse files
authored
Merge pull request #8 from cheprasov/v103
V103
2 parents a66ee46 + 2228df4 commit dea27b5

14 files changed

+38
-15
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2016 Alexander Cheprasov <[email protected]>
1+
Copyright (c) 2016 Alexander Cheprasov <[email protected]>
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Latest Stable Version](https://poser.pugx.org/cheprasov/php-redis-lock/v/stable)](https://packagist.org/packages/cheprasov/php-redis-lock)
33
[![Total Downloads](https://poser.pugx.org/cheprasov/php-redis-lock/downloads)](https://packagist.org/packages/cheprasov/php-redis-lock)
44

5-
# RedisLock v1.0.2 for PHP >= 5.5
5+
# RedisLock v1.0.3 for PHP >= 5.5
66

77
## About
88
RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy. Based on [redis](http://redis.io/).

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "cheprasov/php-redis-lock",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "RedisLock for PHP is a synchronization mechanism for enforcing limits on access to a resource in an environment where there are many threads of execution. A lock is designed to enforce a mutual exclusion concurrency control policy.",
55
"homepage": "http://github.com/cheprasov/php-redis-lock",
66
"minimum-stability": "stable",
77
"license": "MIT",
88
"authors": [
99
{
1010
"name": "Alexander Cheprasov",
11-
"email": "[email protected]"
11+
"email": "[email protected]"
1212
}
1313
],
1414
"autoload": {

src/RedisLock/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/RedisLock/Exception/LockException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/RedisLock/Exception/LockHasAcquiredAlreadyException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/RedisLock/Exception/LostLockException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/RedisLock/LockInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.

src/RedisLock/RedisLock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This file is part of RedisLock.
44
* git: https://github.com/cheprasov/php-redis-lock
55
*
6-
* (C) Alexander Cheprasov <[email protected]>
6+
* (C) Alexander Cheprasov <[email protected]>
77
*
88
* For the full copyright and license information, please view the LICENSE
99
* file that was distributed with this source code.
@@ -19,7 +19,7 @@
1919

2020
class RedisLock implements LockInterface {
2121

22-
const VERSION = '1.0.2';
22+
const VERSION = '1.0.3';
2323

2424
/**
2525
* @deprecated

test/CompatibilityTest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
/**
3+
* This file is part of RedisLock.
4+
* git: https://github.com/cheprasov/php-redis-lock
5+
*
6+
* (C) Alexander Cheprasov <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
namespace Test;
12+
13+
class CompatibilityTest extends \PHPUnit_Framework_TestCase {
14+
15+
public function test_compatibility() {
16+
if (!function_exists('posix_getpid')) {
17+
$this->markTestSkipped();
18+
return;
19+
}
20+
$this->assertSame(posix_getpid(), getmypid(), 'posix_getpid() != getmypid()');
21+
}
22+
23+
}

0 commit comments

Comments
 (0)