dirname(__FILE__) === __DIR__

dirname(__FILE__) === __DIR__
get_class($this) == __CLASS__
原文地址:https://www.cnblogs.com/firstForEver/p/4708828.html