Bug 441928 - Make PDT understand file locations referencing __FILE__ and __DIR__
Summary: Make PDT understand file locations referencing __FILE__ and __DIR__
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-17 16:05 EDT by Michal Niewrzal CLA
Modified: 2020-05-14 11:30 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Niewrzal CLA 2014-08-17 16:05:01 EDT
It would be really nice if Studio could understand, and hence allow Ctrl + Click on file references (e.g. in include_once calls) referring to dynamic strings which are composed of patterns like:

* require_once dirname(__FILE__) . '/../otherFile.php';
* require_once dirname(dirname(__FILE__) . '/otherFile.php';
* require_once __DIR__ . '/foo/bar.php';

These are quite common in some PHP script patterns, where relative reference to the location of the current file is needed.
Comment 1 Michal Niewrzal CLA 2014-08-17 17:26:29 EDT
Patch: https://git.eclipse.org/r/#/c/31809/
Comment 3 Michal Niewrzal CLA 2014-08-27 05:18:20 EDT
I simplify previous solution and I covered also cases with linked resources.

Patch: https://git.eclipse.org/r/#/c/32372/
Comment 5 Sylvia Tancheva CLA 2015-05-22 08:23:58 EDT
Verified. Closing