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