for long time is incorrect English (but a common mistake by foreign speakers)
for a long time is correct English.
If it was spoken, it's possible that the speaker spoke very quickly, making the 'a' difficult to hear.
Hope that helps.
- For Teachers