The functions for stencil buffers already existed in the previous SDKs, but the Power VR GPUs used in iPhone and iPod touch didn't support it. The Power VR SGX in iPhone 3GS and iPod touch 3G is supporting stencil buffers, but I haven't tested it yet. Usually the functionality can be emulated with depth buffer.