# comment to Bug #41480

- Thread: https://externals.io/message/29806
- Original archive: https://news-web.php.net/php.internals/29806
- Started by Carsten Wiedmann on 2007-05-26T14:06:02+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #29806 — Carsten Wiedmann — 2007-05-26T14:06:02+00:00

URL: https://externals.io/message/29806#29806

Hello all,

i know, your interests in bugs on Window is not very high... (see the zero 
answers to my mail about Bug #41408)...

Now I have a comment to the Bug #41408 [1].

With this code:
| $path1 = 'E:\\webroot\\';
| $path2 = 'E:\\webroot\\index.php';
|
| var_dump(realpath($path1));
| var_dump(realpath($path2));

the actual result must be:
| string(10) "E:\webroot"
| string(20) "E:\webroot\index.php"
(And I have this result on NT4/XP with PHP5.2.2. Can't reproduce the 
problem.)


and not:
| bool(false)
| string(20) "E:\webroot\index.php"
like the bug submitter have.


So we can say:
The actual result from the bug submitter is not the expected behavior (what 
"iliaa at php dot net" answers). Instead this must be a problem with bug 
submitters PHP installation.


BTW: The expected behavior the bug submitter want is also wrong. Because a 
 `realpath()` on a valid path (without filename) does not include the trailing 
slash.


Regards,
Carsten

[1] http://bugs.php.net/bug.php?id=41480
