fixed compile failed on php-5.3