|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-12-08 04:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 21:00:02 2025 UTC |
Description: ------------ When including php-files using the require_once statement, PHP will see a generated path as being different from an absolute path if the casing of the directories are different. This should not be the case under WIN32 where users are used to case-insensitivity. Reproduce code: --------------- # A relative inclusion of myfile.php in the same directory # C:/Inetpub/wwwroot/ require_once("myfile.php"); # An inclusion of myfile.php using an absolute path # typed in lowercase (as WIN32-users often do) require_once("c:/inetpub/wwwroot/myfile.php"); Expected result: ---------------- I would expect only one inclusion of myfile.php Actual result: -------------- I get two inclusions of myfile.php