因为我的区分大小写不适用于 Linux (Ubuntu 14.04) on vagrant

Because my case sensitive does not work on Linux (Ubuntu 14.04) on vagrant

我从 vagrant 安装了一个虚拟机,使用官方 Ubuntu Server 14.04 LTS (Trusty Tahr) 构建,我用 PHP 5.6、Mysql 和 apache 设置了一个环境2 在这个虚拟机中,但是我用 PHP 做了一些测试,我注意到区分大小写不起作用,由于区分大小写,我在生产环境中的文件调用中已经遇到了一些问题,这对我有帮助很多能够在开发中识别这一点,有人知道会发生什么吗?

index.php

include_once "Filecamelcase.php";

$teste = new teste();

echo $teste->teste();

FileCamelCase.php

class Teste {

    function Teste(){
        return "teste";
    }

}

如评论所述。 Linux 文件路径区分大小写。

另一方面,PHP代码解释独立于操作系统。 PHP 对这种行为有自己的规则,即使这些规则有点烦人或神秘。基本上:

不区分大小写

functions, class constructors, class methods, keywords and constructs (if, else, null, foreach, echo etc.)

正如您在下面的 link 中看到的那样: