회피시도 추가, spl_object_hash를 spl_object_id로 변경

This commit is contained in:
2019-06-06 03:34:47 +09:00
parent 44b9ba96c3
commit ede1d89569
3 changed files with 36 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class KVStorage{
static private $storageList = [];
static public function getStorage(\MeekroDB $db, string $storNamespace, string $tableName='storage'):self{
$obj_id = spl_object_hash($db);
$obj_id = spl_object_id($db);
$fullKey = $obj_id.','.$storNamespace.','.$tableName;
if(key_exists($fullKey, static::$storageList)){
return static::$storageList[$fullKey];