Basic support for stream interfaces in PHP