bug Handle the situation where PHP_SELF is not set
Merge branch 'QA_4_0'