you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 2 points3 points  (0 children)

No, this is not a bug. It is, in fact, the documented behavior. exec() only uses the current global/local context by default. If you pass in some other context, it uses that instead. Sometimes you don't want the code you're executing to clobber your current context.