mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_incorrect_data_types_for_options_to_exthash_functions
17 lines
620 B
PHP
17 lines
620 B
PHP
--TEST--
|
|
Hash: murmur3 seed deprecation of edge cases
|
|
--FILE--
|
|
<?php
|
|
|
|
foreach (["murmur3a", "murmur3c", "murmur3f"] as $a) {
|
|
hash_init($a, options: ["seed" => "42"]);
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: hash_init(): Passing a seed of a type other than int is deprecated because it is the same as setting the seed to 0 in %s on line %d
|
|
|
|
Deprecated: hash_init(): Passing a seed of a type other than int is deprecated because it is the same as setting the seed to 0 in %s on line %d
|
|
|
|
Deprecated: hash_init(): Passing a seed of a type other than int is deprecated because it is the same as setting the seed to 0 in %s on line %d
|