I'm not sure how language specific this is, but in PHP in particular, can you leak memory in the call stack if some functions never return?
For example, suppose you have a long function with redirect() (or gotos in C) statement(s), how does the language or environment know to delete that frame of the stack? Is there a method it uses to determine a stack frame will never be returned to?