#18630 [NEW]: require_once is case sensitive
| From: | dparks at verinform dot com | Date: | Mon, 29 Jul 2002 18:53:53 +0000 |
| Subject: | #18630 [NEW]: require_once is case sensitive | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-15514@lists.php.net to get a copy of this message | ||
From: dparks@verinform.com
Operating system: Windows NT 4.0
PHP version: 4.2.1
PHP Bug Type: Documentation problem
Bug description: require_once is case sensitive
require_once('bah.php');
require_once('BAH.php');
Will "require" bah.php twice. I realize this makes sense on a case
sensitive file system, but on Windows (NTFS, I guess) or Mac OS X (HFS+)
it can be a surprise. Users should really use case consistently, but
sometimes a search and replace will change case or something (that's what
happened to me).
I'm not sure this behavior should be changed; it would be nice if it was
documented, though.
Sorry, I can't confirm this happens in a newer version of PHP!
--
Edit bug report at http://bugs.php.net/?id=18630&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18630&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18630&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18630&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18630&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18630&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18630&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18630&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18630&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18630&r=globals