php中的宽字符串?

php中的宽字符串?,php,widestring,Php,Widestring,最初,我遇到的问题是,尽管通过光学检查我有相同的路径,但文件_exists()返回的一个为true,另一个为false。在花了几个小时缩小我的问题范围后,我最终得到了以下代码。。。(已编辑的路径) ……及其产出: string '/path/to/modx/core/components/my/model/' (length=37) string '/path/to/modx/core/components/my/model/' (length=78) string '/path/to/modx

最初,我遇到的问题是,尽管通过光学检查我有相同的路径,但文件_exists()返回的一个为true,另一个为false。在花了几个小时缩小我的问题范围后,我最终得到了以下代码。。。(已编辑的路径)

……及其产出:

string '/path/to/modx/core/components/my/model/' (length=37)
string '/path/to/modx/core/components/my/model/' (length=78)
string '/path/to/modx/core/components/my/model/' (length=78)
因此,有趣的是,两个版本,包括简单地写下字符串,显然使用了宽字符(这些有效,file_exists()-wise),而遗憾的是,我首选的变体使用窄字符。我试图对此进行研究,但我唯一告诉我的是php没有宽字符串。我还使用十六进制编辑器验证了所有字符串常量在php文件中每个字符只占用一个字节


phpinfo()告诉我我有PHP版本5.4.9,我在64位linux机器上运行,fwiw。这本手册是一周前编辑的;它的信息不准确,或者这里发生了什么事?

我认为这是由多字节编码引起的

很明显,每个字符使用两个字节,但是为什么一个简单的字符串常量应该被编码为ASCII以外的任何东西呢?
string '/path/to/modx/core/components/my/model/' (length=37)
string '/path/to/modx/core/components/my/model/' (length=78)
string '/path/to/modx/core/components/my/model/' (length=78)