View Issue Details

IDProjectCategoryView StatusLast Update
0005137mantisbtinstallationpublic2013-02-10 13:32
Reportertk Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version0.19.2 
Summary0005137: Problems wth dirname( FILE) instructions and symlinks
Description

In some parts of the mantis code "dirname( FILE)" instructions are used to determine the location of the present code in the file system.
The directory of the current file is then used as basis of further include statements.

This method fails in my context which heavily rely on symlinks, as the "dirname" instruction of my PHP 5.0.2 converts logical paths into absolute paths.
This leads to "file not found" errors, as in the absolute path the installation indeed cannot be found.

TagsNo tags attached.

Relationships

related to 0015357 closeddregad uninitialized library path 

Activities

grangeway

grangeway

2005-02-01 18:05

reporter   ~0009167

I wonder if calls to dirname should be replaced by calls to realpath.

dregad

dregad

2013-01-29 03:37

developer   ~0034943

This is no longer applicable with recent versions of Mantis, because Since PHP 4.0.2, FILE always contains an absolute path with symlinks resolved [1] and we require PHP >= 5.1

[1] http://php.net/manual/en/language.constants.predefined.php