fixed bug:php function realpath() can not correctly run in some sites

Signed-off-by: TomWu <phperwuhan@gmail.com>