php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40200 The FastCgi version has different realpath results than thread safe version
Submitted: 2007-01-22 21:37 UTC Modified: 2007-01-23 18:15 UTC
From: iamstever at gmail dot com Assigned: dmitry
Status: Closed Package: Unknown/Other Function
PHP Version: 5.2.1RC3 OS: Windows Vista
Private report: No CVE-ID:
 [2007-01-22 21:37 UTC] iamstever at gmail dot com
Description:
------------
The FastCgi version has different realpath results than thread safe version. If the file does not exist, realpath() returns false in Linux and Windows thread safe version, but returns the path to a non existent file in the Windows nts/FastCGI version.

Expected result:
----------------
If the file does not exist, realpath() returns false in Linux and Windows thread safe version, but returns the path to a non existent file in the Windows nts/FastCGI version.

Actual result:
--------------
false

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-23 15:11 UTC] pajoye@php.net
Confirmed:
C:\phpbuilds\php_5_2>Debug_TS\php.exe -r " var_dump(realpath('foo.txt'));"
bool(false)

C:\phpbuilds\php_5_2>Debug\php.exe -r " var_dump(realpath('foo.txt'));"
string(28) "C:\phpbuilds\php_5_2\foo.txt"


 [2007-01-23 18:15 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_2.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Mon Apr 21 04:01:57 2014 UTC