public function stream_set_option($option, $arg1, $arg2) {
    switch ($option) {
      case STREAM_OPTION_BLOCKING:
        return stream_set_blocking($this->objStream, $arg1);
      case STREAM_OPTION_READ_TIMEOUT:
        // XXX: Should this have any effect on the lower-level
        // socket, too? Or just the buffered tmp storage?
        return stream_set_timeout($this->objStream, $arg1, $arg2);
      case STREAM_OPTION_WRITE_BUFFER:
        return stream_set_write_buffer($this->objStream, $arg2);
    }

  }
public function stream_set_option($option, $arg1, $arg2) {
    switch ($option) {
      case STREAM_OPTION_BLOCKING:
        return stream_set_blocking($this->objStream, $arg1);
      case STREAM_OPTION_READ_TIMEOUT:
        // XXX: Should this have any effect on the lower-level
        // socket, too? Or just the buffered tmp storage?
        return stream_set_timeout($this->objStream, $arg1, $arg2);
      case STREAM_OPTION_WRITE_BUFFER:
        return stream_set_write_buffer($this->objStream, $arg2);
    }

  }
public function stream_set_option ( $ option , $ arg1 , $ arg2 ) { switch ( $ option ) { case STREAM_OPTION_BLOCKING : return stream_set_blocking ( $ this -> objStream , $ arg1 ) ; case STREAM_OPTION_READ_TIMEOUT : // XXX: Should this have any effect on the lower-level // socket, too? Or just the buffered tmp storage? return stream_set_timeout ( $ this -> objStream , $ arg1 , $ arg2 ) ; case STREAM_OPTION_WRITE_BUFFER : return stream_set_write_buffer ( $ this -> objStream , $ arg2 ) ; } }
Set options on the underlying stream.

The settings here do not trickle down to the network socket, which is
left open for only a brief period of time. Instead, they impact the middle
buffer stream, where the file is read and written to between flush/close
operations. Thus, tuning these will not have any impact on network
performance.

See stream_set_blocking(), stream_set_timeout(), and stream_write_buffer().
Set options on the underlying stream .