8051 Interrupts Always On
It seems you're using the external interrupt in level mode, not edge-triggered.

Check out page 27 of the datasheet and read the TCON register description.
Also, since this happens with disconnected function generator, I presume you don't have an external pullup resistor. However, pg. 20 suggests that leaving P3.3 floating might be bad.