Setting LC_CTYPE to an empty string kills PHP on MacOS using Laravel Valet #21126
Labels
not-in-changelog
For issues or pull requests that should not be included in our release changelog on matomo.org.
Potential Bug
Something that might be a bug, but needs validation and confirmation it can be reproduced.
Milestone
Context
Not sure exactly what changed, whether update/upgrade related, but started receiving
[pool valet] child 91253 exited on signal 6 (SIGABRT) after 0.485608 seconds from start
error.During debugging I found the call
setlocale(LC_CTYPE, '');
in Locale.php is causing this. Different versions of PHP (8.0, 8.1, 8.2) same issue.This prevents the whole Matomo app from starting correctly.
Expected Behavior
App starts and functions without issues.
Current Behavior
PHP crashes and doesn't load at all.
Steps to Reproduce (for Bugs)
Haven't managed to replicate it on other MacOS machine yet, but still worth creating the issue if someone comes across it. Then perhaps we can brainstorm how to fix this or document a workaround/an FAQ.
Your Environment
The text was updated successfully, but these errors were encountered: