add PHP compatible code. previous code result error on "FUJITSU server"