From: jha at ipwsystems dot dk Operating system: WIN32 PHP version: 4.3.4 PHP Bug Type: Filesystem function related Bug description: require_once is case-sensitive on WIN32 platform
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 -- Edit bug report at http://bugs.php.net/?id=26552&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26552&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26552&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26552&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26552&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26552&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26552&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26552&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26552&r=support Expected behavior: http://bugs.php.net/fix.php?id=26552&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26552&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26552&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26552&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26552&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26552&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26552&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26552&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26552&r=float