PHP linux spl_autoload_register is case sensitive, splregisterautoload_PHP tutorial

WBOY
Release: 2016-07-12 08:57:31
Original
1038 people have browsed it

PHP linux spl_autoload_register is case-sensitive, splregisterautoload

A PHP script uses spl_autoload_register, which runs normally under WINDOWS, but cannot be included in LINUX. Later I found that WINDOWS is not case-sensitive , and under LINUX, it is case-sensitive. Under WINDOS, spl_autoload_register will convert the class name into lower case for file search. This will cause the file to be unable to be included normally under Linux, so when naming, pay attention to the consistency of the case of the file name and the class name. .

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1108334.htmlTechArticlePHP linux spl_autoload_register is case-sensitive, splregisterautoload A PHP script uses spl_autoload_register and runs normally under WINDOWS, but not under LINUX It couldn't be included, and later I found out...
Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!