To dream of having a phobia represents issues with confronting your fears. You may be allowing fear or insecurities to control your life or prevent you from trying something new.
Consider the specific phobia for additional meanings.
A fear of heights may reflect a fear of power, embarrassing yourself with power, or being in the spotlight. A fear of winning or success.