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 (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.2.1RC3 OS: Windows Vista
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: iamstever at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 07 16:01:28 2025 UTC