#!/usr/bin/env php *** PHP Version : 7.4.33 - Dolibarr Version : 18.0.3 *** print_r() of object used to generate the key to hash for blockedlog on the object sample: stdClass Object ( [aaa] => aaa [bbb] => bbb [thirdparty] => stdClass Object ( [name] => MyBigCompany [name_alias] => [ref_ext] => [country_code] => [state_code] => [address] => [zip] => [town] => ) ) *** We build hash(256) of this string: b76ba70d74ef395dedf665a20b35a0a4e0d769d075f7031c9de64149f345c04b *** When it is serialized() to store in db, we got: O:8:"stdClass":3:{s:3:"aaa";s:3:"aaa";s:3:"bbb";s:3:"bbb";s:10:"thirdparty";O:8:"stdClass":8:{s:4:"name";s:12:"MyBigCompany";s:10:"name_alias";N;s:7:"ref_ext";N;s:12:"country_code";N;s:10:"state_code";N;s:7:"address";N;s:3:"zip";N;s:4:"town";N;}} *** And when it is print_r(unserialized()) to reuse it: stdClass Object ( [aaa] => aaa [bbb] => bbb [thirdparty] => stdClass Object ( [name] => MyBigCompany [name_alias] => [ref_ext] => [country_code] => [state_code] => [address] => [zip] => [town] => ) ) *** We build hash(256) of this string: b76ba70d74ef395dedf665a20b35a0a4e0d769d075f7031c9de64149f345c04b