[php-src] Issue #8130: crypt on failure returns 13 characters (one too many according the documentation..)

From: Date: Mon, 21 Feb 2022 13:15:00 +0000
Subject: [php-src] Issue #8130: crypt on failure returns 13 characters (one too many according the documentation..)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239926@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8130 Author: divinity76 ### Description quoting the docs >Returns the hashed string or a string that is shorter than 13 characters and is guaranteed to >differ from the salt on failure. which means the following code: ```php <?php var_dump(strlen(crypt("garbage","garbage")) < 13); ``` should return this output ``` bool(true) ``` but instead it returns this output ``` bool(false) ``` ### PHP Version 8.1.3 ### Operating System _No response_

« previous php.bugs (#239926) next »