Bug #14049 [Com]: Inconsistent return in realpath
| From: | gracejonesatzt at gmail dot com | Date: | Mon, 18 Jan 2021 05:02:12 +0000 |
| Subject: | Bug #14049 [Com]: Inconsistent return in realpath | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231607@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=14049&edit=1
ID: 14049
Comment by: gracejonesatzt at gmail dot com
Reported by: g dot noel at symphonieonline dot com
Summary: Inconsistent return in realpath
Status: Closed
Type: Bug
Package: *Directory/Filesystem functions
Operating System: win32 only
PHP Version: 4.3.4-dev, 5.0.0b2-dev
Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
Thanks for the info i will try to figure it out for more
https://alaskasworld.run/
Previous Comments:
------------------------------------------------------------------------
[2003-09-09 20:21:02] 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.
------------------------------------------------------------------------
[2003-08-20 19:11:50] brandon dot whitehead at orst dot edu
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.
------------------------------------------------------------------------
[2003-08-20 19:10:11] sniper@php.net
This is back, on windows, realpath() returns still any path, even if it doesn't exist. (manual
says it's supposed to return FALSE in such case)
------------------------------------------------------------------------
[2002-06-04 16:21:58] mfischer@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version 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.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2001-11-14 04:24:48] 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 : []
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=14049&edit=1