Home  >  Article  >  php教程  >  PHP linux spl_autoload_register区分大小写,splregisterautoload

PHP linux spl_autoload_register区分大小写,splregisterautoload

WBOY
WBOYOriginal
2016-06-13 08:44:431042browse

PHP linux spl_autoload_register区分大小写,splregisterautoload

一个PHP脚本用到spl_autoload_register,在WINDOWS下运行正常,但在LINUX就include不了,后来发现WINDOWS大小写不敏感,而在LINUX下区分大小写,WINDOS下spl_autoload_register会把类名转化为小写进行文件搜索,这样就造成linux下无法正常include文件,所以在命名的时候要注意文件名与类名大小写的一致性。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn