At first I was like "Nah," but then I was remembered that Phineas and Ferb are step-brothers and we don't actually know who Phineas's dad is. Look what my life has come to, I'm discussing the scandals of Phineas and Ferb on social media.
I always thought it was referencing beauty and the beast. Cause the same things happen in beauty and the beast. In Aladdin it's not a spell. It's just a genie with magic. In beauty and the beast it's actually a spell on the castle.