ちゅうい as of php 43 this function can potentially work on any kind of stream in php 43 socket based streams are still the only kind supported in the php core although streams from other extensions may support this function 