bug Handle the situation where PHP_SELF is not set