Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatable with Windows #25

Open
Elycin opened this issue Mar 11, 2018 · 1 comment
Open

Incompatable with Windows #25

Elycin opened this issue Mar 11, 2018 · 1 comment

Comments

@Elycin
Copy link

Elycin commented Mar 11, 2018

Experienced this odd quirk toady and was able to confirm it with WSL.
Inside WSL the code works as expected but, let me give a brief introduction.

Environment details:
Windows:

C:\Users\elyci\PhpstormProjects\disblog>php -v
PHP 7.2.2 (cli) (built: Jan 31 2018 19:31:15) ( NTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

WSL:

elycin@DESKTOP-67FBEPH:/mnt/c/Users/elyci/PhpstormProjects/disblog$ php -v
PHP 7.2.3-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar  6 2018 11:18:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.3-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

I have a windows development machine that has an instance of php 7.2.2 installed via chocolatey with a modified php.ini to support curl and pdo_mysql extensions, upon testing some of the example code inside a laravel project I've determined in a windows environment that using the dd debugger with the validator's ->success() function, that I get different results.

Windows 10 (Native Environment)

C:\Users\elyci\PhpstormProjects\disblog>php artisan add:yubikey ccccccfrkvvreeivddjvfgrgftttlutbuvftgefnence
false

Windows 10 Subsystem for Linux (with different freshly generated OTP token)

elycin@DESKTOP-67FBEPH:/mnt/c/Users/elyci/PhpstormProjects/disblog$ php artisan add:yubikey ccccccfrkvvreulghldgtcfbhfunvccrnnhifnbhhkut
true

I wish I could provide more details since this seems to be a platform specific bug, maybe even a extension problem but I hope this helps find a possible solution for others.

@Elycin
Copy link
Author

Elycin commented Mar 11, 2018

Side note: Don't worry about the OTP tokens potentially be revealing, I have a dedicated yubikey for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant