I'm having this...again...had it ages ago. Anyone tried using compressed air and spraying into the ear piece? Last time I had this, it was just a layer of dust built up on the proximity sensor. You really don't want to disable this feature to black out the screen while the phone is against your face. You'll end up pressing buttons with your cheek, and the phone will feel hot against your face. Not great for the battery either, if you use the phone a lot.
Just thought I'd post that a potential solution is just to go get a can of compressed air from your nearest computer shop and spray into the holes around the speaker and just for fun, any of the other spots around the top of the phone before you go through the hassle of having the phone replaced...