|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-14 04:24 UTC] g dot noel at symphonieonline dot com
<?php
echo '['.realpath('./invalid/dir/or/file/name).']';
?>
On Windows : [c:\www\invalid\dir\or\file\name]
On Linux : []
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
I get the following output when run on Linux and Windows, both running 4.3.2. I ran this test with the command line interface. <?php echo '['.realpath('./invalid/dir/or/file/name').']'; ?> The results: On Windows : [d:\http\invalid\dir\or\file\name] On Linux : [] The function should return false if the file is not a valid file (according to the documentation). It does not do this in Windows. I am not making this up. The problem still exists, on both Windows 2000 Pro and Windows XP Pro. Though possible, I doubt this is a configuration issue.