Это прекрасно
Bug #50111 memory not properly freed when stream_context_create is used (PHP_5_2 only!)
Это я ковырял Fatal error: Allowed memory size of 262144 bytes exhausted, под виндой, да, но тем не менее
Status: Wont fix
PHP 5.3 has better garbage collection, hence this works there and not in 5.2, wont fix for 5.2.