Fixing PHP warnings see BT#7388