- Aer Version (or commit ref):
- Operating System: Linux
- System Architecture (eg. arm, x86_64, ...): x86_64
Your problem description
Actually all mentioned methods (and probably more) returns a path relative to executable. As the executable can be located in any directory, this says actually nothing. Absolute path should be returned instead:
echo '[test] file: ' . __FILE__ . ', line: ' . __LINE__ . ', dir: ' . __DIR__ . PHP_EOL;
[test] file: /path/to/test.php, line: 3, dir: /path/to
[test] file: test.php, line: 3, dir: .