Skip to content

Commit 8bda806

Browse files
committed
Made Registry compatible with the latest PEAR2_Cache_SHM.
1 parent 56ed4a1 commit 8bda806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PEAR2/Net/RouterOS/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Registry
6666
*/
6767
public function __construct($uri)
6868
{
69-
$this->shm = new SHM(__CLASS__ . ' ' . $uri);
69+
$this->shm = SHM::factory(__CLASS__ . ' ' . $uri);
7070
if (-1 === self::$requestId) {
7171
self::$requestId = $this->shm->add('requestId', 0)
7272
? 0 : $this->shm->inc('requestId');

0 commit comments

Comments
 (0)