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

Fix Laravel installer on Windows WSL #385

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

JasonTame
Copy link
Contributor

Resolves #384

The missing mb_trim() function causes laravel new to crash on Windows WSL when running a PHP version lower than 8.4.

Considering the command isn't being used to strip multi-byte characters, rtrim should work fine and won't lead to any issues for users who are not yet on PHP 8.4.

@crynobone
Copy link
Member

This PR #376 should already fixed the issue for PHP 8.3 and below.

@JasonTame
Copy link
Contributor Author

@crynobone It didn't fix it for me on Windows WSL though, the installation crashes with an exception even though I had the mbstring extension.

If the consensus is that this is user error on my side, that's fine, it was easy enough to resolve anyway - I just would hate for new Laravel devs on Windows to give up when the installer crashes for them without a clear indication of why.

@taylorotwell taylorotwell merged commit cae867c into laravel:master Jan 13, 2025
14 checks passed
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

Successfully merging this pull request may close these issues.

Laravel installer fails on PHP 8.3 using Windows WSL
3 participants