LARA

Includes Resolutions

phantm will automatically resolve some include expressions. It will only evaluate static expressions, along with some function calls such as dirname. It will also resolve magic or statically defined constants.

For example, the following include calls will be resolved by phantm:

define("INC_PATH", "path/to/foo");

include 'foo.php';
include INC_PATH.'/plop.php';
include dirname(dirname(__FILE__)).'/plop.php';

The following include calls won't be resolved:

include $plop.'foo.php';
include myfunction().'/plop.php';

In order to analyze such code with phantm, see Runtime Instrumentation.