A 176: No attack of opportunity is provoked. The reason is found in the SRD.
Neither an immediate action nor a move action gets the character in a threatening position at the time the caster started casting the spell, so it doesn't provoke.Originally Posted by SRD, Full Round Actions, Casting a Spell