Codes vary and now in 3 of the 5 counties I work in, you can't run the T&P drain into the pan anymore- it must exit the house and drain to within 6" of the ground. One county also requires a "Bell" fitting inside the house so you will see it flowing if it releases. Haven't worked in the local Cities lately but they are usually toughest, so probably are like that one county. I'm all for safety but codes have reached the point of near-insanity sometimes.