Re: BUG #18630

From: Date: Wed, 29 Oct 2003 17:16:36 +0000
Subject: Re: BUG #18630
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5078@lists.php.net to get a copy of this message
On Wednesday, October 29, 2003, at 11:39 AM, Andi Gutmans wrote:
Is it case-preserving like Windows? Does realpath work on MAC OS X and give the case preserved name?
I don't have easy access to a Windows machine to test, but I think the answer is yes: [adam@benlev:~/Documents/php/test] $ ls -l total 0 -rw-r--r-- 1 adam staff 0 Oct 29 12:10 foo [adam@benlev:~/Documents/php/test] $ php -r 'print realpath("foo") . "\n";' /Users/adam/Documents/php/test/foo [adam@benlev:~/Documents/php/test] $ php -r 'print realpath("FOO") . "\n";' /Users/adam/Documents/php/test/FOO realpath() will return a case-preserved match of the original file, but will match the name regardless of case. -adam -- adam trachtenberg adam@trachtenberg.com

« previous php.internals (#5078) next »