Fix php backwards compatibility.