Fix bug on different php server behavior