1--TEST-- 2xxh3 convert secret to string should not modify (shm) array 3--FILE-- 4<?php 5try { 6 hash_init("xxh3", options: $x = ["secret" => 4]); 7} catch (Throwable) {} 8var_dump($x); 9?> 10--EXPECTF-- 11Deprecated: hash_init(): Passing a secret of a type other than string is deprecated because it implicitly converts to a string, potentially hiding bugs in %s on line %d 12array(1) { 13 ["secret"]=> 14 int(4) 15} 16