mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
18 lines
368 B
PHP
18 lines
368 B
PHP
--TEST--
|
|
Bug #75221 (Argon2i always throws NUL at the end)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$hash = password_hash(
|
|
"php",
|
|
PASSWORD_ARGON2I,
|
|
['memory_cost' => 64 << 10, 'time_cost' => 4, 'threads' => 1]
|
|
);
|
|
var_dump(substr($hash, -1, 1) !== "\0");
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|