restore phpEmulations of __DIR__ and __FILE__ constant