This should not happen. Are you using an original Apple charger or a 3rd party one. If it is an Apple one, return it quickly to see what they say. If it is a 3rd party one, I would suggest that you throw it away and get a genuine Apple one. iPhones are much too valuable to worry about saving a little bit of money on non-apple parts.