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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
14 + 24 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 14:01:29 2024 UTC