���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/tie.cx/vendor/phpfastcache/phpfastcache/lib/Phpfastcache/Util/MemcacheDriverCollisionDetectorTrait.php
���ѧ٧ѧ�
<?php /** * * This file is part of phpFastCache. * * @license MIT License (MIT) * * For full copyright and license information, please see the docs/CREDITS.txt file. * * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> https://www.phpfastcache.com * @author Georges.L (Geolim4) <contact@geolim4.com> * */ declare(strict_types=1); namespace Phpfastcache\Util; /** * Trait MemcacheDriverCollisionDetectorTrait * @package phpFastCache\Core */ trait MemcacheDriverCollisionDetectorTrait { /** * @var string */ protected static $driverUsed; /** * @param $driverName * @return bool */ public static function checkCollision($driverName): bool { $CONSTANT_NAME = __NAMESPACE__ . '\MEMCACHE_DRIVER_USED'; if ($driverName && is_string($driverName)) { if (!defined($CONSTANT_NAME)) { define($CONSTANT_NAME, $driverName); return true; } else { if (constant($CONSTANT_NAME) !== $driverName) { trigger_error( 'Memcache collision detected, you used both Memcache and Memcached driver in your script, this may leads to unexpected behaviours', E_USER_WARNING ); return false; } } return true; } return false; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�