stream_open() public method

Function to open file or url
See also: streamWrapper::stream_open
public stream_open ( string $path, string $mode, integer $options, &$opened_path ) : boolean
$path string The URL that was passed
$mode string Mode used to open the file @see fopen
$options integer Flags used by the API, may be STREAM_USE_PATH and STREAM_REPORT_ERRORS
return boolean
Beispiel #1
0
 /**
  * @return Buffer
  */
 protected function buildBuffer()
 {
     $buffer = new Buffer();
     $dummy = null;
     $buffer->stream_open('buffer://path/to/some/file', 'w', null, $dummy);
     return $buffer;
 }