fixed compile problem with php 5.5