I think it has to do with optimization,
since "the foo" is a string constant, it doesn't get flagged as tainted, where as "the $foo" and $bar do get tainted.
In either case, it doesn't matter, taint does its job :)
Comment on Re: "one tainted value taints the whole expression"