Differences between Windows and Linux case sensitivity

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
magallo
Dev Team Member
Dev Team Member
Posts: 106
Joined: Thu Mar 24, 2011 12:37 am

Differences between Windows and Linux case sensitivity

Post by magallo »

If like me, while developing on WSL, you received errors regarding a conflicting function name, for example:

Code: Select all

PHP Fatal error:  Cannot redeclare smarty_cms_function_cssMinifier() (
previously declared in
/public_html/mba/assets/plugins/function.cssMinifier.php:14) in 
/public_html/mba/assets/plugins/function.cssminifier.php on line 14'
then this workaround will solve your issue.

When working with both Linux and Windows files and directories, you may need to adjust how case sensitivity is handled.

Standard behavior:
  • Windows file system treats file and directory names as case-insensitive. FOO.txt and foo.txt will be treated as equivalent files.
  • Linux file system treats file and directory names as case-sensitive. FOO.txt and foo.txt will be treated as distinct files.
Inspect current case sensitivity

Code: Select all

fsutil.exe file queryCaseSensitiveInfo <path>
Modify case sensitivity

Code: Select all

fsutil.exe file setCaseSensitiveInfo <path> enable
Full article here: https://learn.microsoft.com/en-us/windo ... ensitivity
Post Reply

Return to “Tips and Tricks”