- Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14, 8.0.0 - 8.0.1
- bool(true) bool(true) bool(false)
<?php
function env($name) { return 'd2fbec1321de3bc53af2fe7716c4b90c';}
$setup_finish_args_raw = '{"acct_username":"hello","acct_email":"hello@admin.tld","acct_password":"hello","setup_auth_key":true}';
$setup_finish_args = json_decode($setup_finish_args_raw);
// unset cookie
setcookie('setup_arguments', '', time() - 3600);
$transaction_authorised = env('TMP_SETUP_AUTH_KEY') == $setup_finish_args->setup_auth_key;
var_dump($transaction_authorised);
var_dump('anystring' == true);
var_dump('anystring' === true);