__DIR__ -> dirname(__FILE__) for PHP 5.2 compat