diff --git a/lib/Phpfastcache/Extensions/Drivers/Couchbasev4/Driver.php b/lib/Phpfastcache/Extensions/Drivers/Couchbasev4/Driver.php index a72de00..d544fb7 100644 --- a/lib/Phpfastcache/Extensions/Drivers/Couchbasev4/Driver.php +++ b/lib/Phpfastcache/Extensions/Drivers/Couchbasev4/Driver.php @@ -148,6 +148,10 @@ protected function connect(?int $appendPPID = null): bool */ public static function prepareToFork(): void { + if (!isset(static::$posixLoaded) && !isset(static::$extVersion)) { + return; + } + if (!static::$posixLoaded) { throw new PhpfastcacheDriverCheckException('POSIX extension is required to prepare for forking'); }