1--TEST--
2Bug #75221 (Argon2i always throws NUL at the end)
3--SKIPIF--
4<?php
5if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2');
6?>
7--FILE--
8<?php
9$hash = password_hash(
10    "php",
11    PASSWORD_ARGON2I,
12    ['memory_cost' => 16384, 'time_cost' => 2, 'threads' => 4]
13);
14var_dump(substr($hash, -1, 1) !== "\0");
15?>
16===DONE===
17--EXPECT--
18bool(true)
19===DONE===
20