Ticket #3240 (new defect)

Opened 3 years ago

Last modified 1 year ago

realname on windows

Reported by: weyrick Assigned to:
Priority: immediate Milestone: 3.0.0 release
Component: Windows/mingw Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

From my tests, the realpath() function does NOT operate the same as the equivalent PHP call on Windows. It doesn't return the correct capitalization.

For example, if the real name of a file is c:\test\filename.txt, but a user enters a relative path of ..\FILENAME.txt, the interpretted PHP realpath() function correctly returns "C:\test\filename.txt", but the Roadsend compiled php realpath() call incorrectly returns "C:\test\FILENAME.txt".

I need to have to exact real name and path returned. 

Change History

05/15/06 09:05:10 changed by weyrick

  • owner changed from anonymous to weyrick.
  • status changed from new to assigned.

05/15/06 09:05:31 changed by weyrick

  • priority changed from high to immediate.

05/15/06 11:00:38 changed by weyrick

waiting for forum feedback

05/19/06 07:22:10 changed by tim

fwiw, our realpath on windows doesn't do anything but turn relative paths into absolute paths, and maybe fixup the slashes a little.  It doesn't actually call any windows path functions.  So that's definitely a weakness. Although, if he cares that much about case of filenames in a program on windows, he's doing something wrong, because windows doesn't care that much.

12/15/06 09:48:37 changed by root

  • milestone deleted.

Milestone 1.8.2 beta (2.0 rc1) deleted

01/12/07 14:07:06 changed by weyrick

  • type set to defect.
  • description changed.
  • summary changed from realname on windows - user report to realname on windows.

04/15/07 08:52:15 changed by weyrick

  • version changed from 1.8.2 beta (2.0 rc1) to 2.9.0 beta.
  • milestone set to 3.0.0 release.

04/15/07 09:12:13 changed by root

  • milestone deleted.

Milestone 3.0.0 release deleted

04/15/07 09:13:42 changed by weyrick

  • milestone set to 3.0.0 release.

08/13/07 10:11:37 changed by weyrick

  • owner deleted.
  • status changed from assigned to new.