cast keyset generation console arguments to int and remove dangerous …#339
Conversation
|
Hi @lucasgranberg, Many thanks for your PR. |
|
The problem is that the value will always be a string so it will always generate just one key in the keyset with the keysize of 1. Is there something I am missing? |
|
This is what I get at least |
|
with |
I just confirmed the same bug is in the phar file also |
|
okay now I understand why int casting is a problem The getArgument should always return a string in this case but I guess I should have used https://www.php.net/manual/en/function.intval.php to get rid of the warning. |
|
You are absolutely right! |
|
And many thanks for your support! I really appreciate it 🥇 |
…defaults
Console commands for generating keysets uses
is_int()which always fails. These changes uses casts instead and removes dangerous defaults for size. More information in the issue.