removed faulty if statements in php.pp