fix PHP_VERSION_ID < 50304 check