#17822 [NoF->Opn]: Realpath, getcwd not returning true pathname
| From: | csaba at alum dot mit dot edu | Date: | Thu, 22 Apr 2004 22:26:10 +0000 |
| Subject: | #17822 [NoF->Opn]: Realpath, getcwd not returning true pathname | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-58602@lists.php.net to get a copy of this message | ||
ID: 17822
User updated by: csaba at alum dot mit dot edu
Reported By: csaba at alum dot mit dot edu
-Status: No Feedback
+Status: Open
Bug Type: Directory function related
Operating System: Windows - all
PHP Version: 4.3.0
Assigned To: sfox
New Comment:
I have tested this with the latest snapshot 5.0 RC 2 of April 22 on my
Win 2K Pro system and it is still a problem. Here are the outputs that
I get (I did an inititial print right after the first cwd() so you can
see what windows thinks the directory is):
C:\Morph\phpDev\40gNiKU5LQ0C
c:\Morph\phpDev\40gniku5lq0c
c:\Morph\phpDev\40gniku5lq0c
C:\Morph\phpDev\40GNIKU5LQ0C
C:\Morph\phpDev\40GNIKU5LQ0C
So it appears that the middle part is OK but the drive letter and the
final directory need some shoring up.
Csaba Gabor
Previous Comments:
------------------------------------------------------------------------
[2003-02-22 20:03:34] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-02-15 19:32:04] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Cannot replicate using latest CVS.
------------------------------------------------------------------------
[2003-02-15 17:38:53] csaba at alum dot mit dot edu
I have marked this bug as open because of the demonstration below on my
PHP 4.3 build date Dec. 20, 2002; Apache 2.0.43 Filter; Win2K Pro
system.
Here is the test:
<html><head><title>getcwd Problem</title></head><body>
<?php
$cwd = getcwd();
chdir (strtolower($cwd));
print "<br>" . getcwd();
print "<br>" . realpath(getcwd());
chdir (strtoupper($cwd));
print "<br>" . getcwd();
print "<br>" . realpath(getcwd());
?>
</body></html>
On my system the first 2 directories show in lower case,
the last two are in caps.
Csaba
------------------------------------------------------------------------
[2002-10-27 19:27:57] iliaa@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-10-10 22:47:54] iliaa@php.net
Any news?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17822
--
Edit this bug report at http://bugs.php.net/?id=17822&edit=1