#!/usr/bin/env php *** PHP Version : 8.1.29 - Dolibarr Version : 18.0.0 *** 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 ( [ref_ext] => [country_code] => [state_code] => [name] => MyBigCompany [name_alias] => [address] => [zip] => [town] => ) ) *** We build hash(256) of this string: 076c1e09ded059c856f81b750610dfc6a4093cd939fb89699c9e5ea7d5d67b48 *** 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:7:"ref_ext";N;s:12:"country_code";N;s:10:"state_code";N;s:4:"name";s:12:"MyBigCompany";s:10:"name_alias";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 ( [ref_ext] => [country_code] => [state_code] => [name] => MyBigCompany [name_alias] => [address] => [zip] => [town] => ) ) *** We build hash(256) of this string: 076c1e09ded059c856f81b750610dfc6a4093cd939fb89699c9e5ea7d5d67b48