fix php function call