Skip to content

Conversation

@DavidPrevot
Copy link
Contributor

@DavidPrevot DavidPrevot commented Mar 6, 2018

The character was introduced in 5f9471e, and breaks the testsuite when run with native php 7.2.

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
License MIT

The error was introduced in 5f9471e, and breaks the testsuite.
@DavidPrevot
Copy link
Contributor Author

If the testsuite gets broken with the current travis environment, I guess it’s not worth it.


$encoder = new Argon2iPasswordEncoder();
preg_match('# Encoded password\s+(\$argon2id\$[\w\d,=\$+\/]+={0,2})\s+#', $output, $matches);
preg_match('# Encoded password\s+(\$argon2i\$[\w\d,=\$+\/]+={0,2})\s+#', $output, $matches);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't # Encoded password\s+(\$argon2id?\$[\w\d,=\$+\/]+={0,2})\s+# work then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the advice, it should work indeed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants