#!/usr/bin/env php *** PHP Version : 7.4.33 - Dolibarr Version : 13.0.4 *** 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] => [address] => [zip] => [town] => [state_code] => [ref_ext] => [country_code] => ) ) *** We build hash(256) of this string: 30829c63f27a84dff489bb054c6e86aabbbcdba644db9e09ab459092ef1bf28a *** 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:"address";N;s:3:"zip";N;s:4:"town";N;s:10:"state_code";N;s:7:"ref_ext";N;s:12:"country_code";N;}} *** And when it is print_r(unserialized()) to reuse it: stdClass Object ( [aaa] => aaa [bbb] => bbb [thirdparty] => stdClass Object ( [name] => MyBigCompany [name_alias] => [address] => [zip] => [town] => [state_code] => [ref_ext] => [country_code] => ) ) *** We build hash(256) of this string: 30829c63f27a84dff489bb054c6e86aabbbcdba644db9e09ab459092ef1bf28a