#17822 [Opn->Ass]: Realpath, getcwd not returning true pathname

From: Date: Sat, 27 Jul 2002 15:45:45 +0000
Subject: #17822 [Opn->Ass]: Realpath, getcwd not returning true pathname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15418@lists.php.net to get a copy of this message
ID: 17822 Updated by: sfox@php.net Reported By: csaba@alum.mit.edu -Status: Open +Status: Assigned Bug Type: Directory function related Operating System: Windows - all PHP Version: 4.2.0 -Assigned To: +Assigned To: sfox New Comment: Looked into this, it looks possible to implement. Wish me luck :) Previous Comments: ------------------------------------------------------------------------ [2002-06-18 18:20:36] csaba@alum.mit.edu realpath and getcwd on Windows systems do not actually report the applicable directory, but rather a string that will !strcasecmp() with the true directory: I have a directory name, $dir, on my Win2K system (PHP 4.2.0), but it's in all lower case, and I'd like to get the actual pathname including the capitalizations: Both realpath() and dirname() only muck around with the $dir string and don't hit the file system. Not only that, but getcwd() returns $dir (sans capitalizations) after I've hopped over to it with chdir($dir)! My only solution to this point is to pop up a level and use readdir(...) but this is wasteful, only giving me one level at a time. Isn't there a REAL realpath() for windows? Thanks, Csaba Gabor ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17822&edit=1

« previous php.bugs (#15418) next »