fix php cli calls