|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6385 __FILE__ returns lowercased filenames
Submitted: 2000-08-27 21:28 UTC Modified: 2001-05-28 00:29 UTC
From: Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (27/08/2000) OS: w32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2000-08-27 21:28 UTC]
if I?m calling a file "FooBar.php", echo __FILE__; will
output "foobar.php".
Although w32 allows files only in-sensitive (no FooBar.php
and foobar.php concurrently) it saves the case information
and thus __FILE__ (and related) should contain this cased
information too.
This will bug will also cause scripts not to be platform

// filename  lowercased
// HTTP REQUEST, w cased filename

hile this script should work on *nix calling "foobar.php" it
does not on w32


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-31 09:02 UTC]
Does this happen with CGI version? I suspect it might be just IIS which sets your filename lowercase...
 [2000-11-04 06:34 UTC]
tested on CGI+ApacheMod, both return lowercased
 [2001-01-08 15:40 UTC]
not IIS-specific, reclassifying
 [2001-05-06 15:12 UTC]
Does this still happen with 4.0.5 or latest CVS?  I can't reproduce it.
 [2001-05-28 00:29 UTC]
No feedback, closed (can't reproduce either)

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 22 00:01:23 2021 UTC