View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005137 | mantisbt | installation | public | 2005-01-17 05:55 | 2013-02-10 13:32 |
| Reporter | tk | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 0.19.2 | ||||
| Summary | 0005137: 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. 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. | ||||
| Tags | No tags attached. | ||||
|
I wonder if calls to dirname should be replaced by calls to realpath. |
|
|
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 |
|