fix a bug for php eof data