Lines Matching refs:innerstream
362 php_stream *innerstream; member
376 if (!ts->innerstream) { in php_stream_temp_write()
379 if (php_stream_is(ts->innerstream, PHP_STREAM_IS_MEMORY)) { in php_stream_temp_write()
381 char *membuf = php_stream_memory_get_buffer(ts->innerstream, &memsize); in php_stream_temp_write()
390 php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE); in php_stream_temp_write()
391 ts->innerstream = file; in php_stream_temp_write()
392 php_stream_encloses(stream, ts->innerstream); in php_stream_temp_write()
395 return php_stream_write(ts->innerstream, buf, count); in php_stream_temp_write()
408 if (!ts->innerstream) { in php_stream_temp_read()
412 got = php_stream_read(ts->innerstream, buf, count); in php_stream_temp_read()
414 stream->eof = ts->innerstream->eof; in php_stream_temp_read()
429 if (ts->innerstream) { in php_stream_temp_close()
430 …ret = php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE | (close_handle ? 0 : PHP_ST… in php_stream_temp_close()
454 return ts->innerstream ? php_stream_flush(ts->innerstream) : -1; in php_stream_temp_flush()
467 if (!ts->innerstream) { in php_stream_temp_seek()
471 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()
472 *newoffs = php_stream_tell(ts->innerstream); in php_stream_temp_seek()
473 stream->eof = ts->innerstream->eof; in php_stream_temp_seek()
490 if (!ts->innerstream) { in php_stream_temp_cast()
493 if (php_stream_is(ts->innerstream, PHP_STREAM_IS_STDIO)) { in php_stream_temp_cast()
494 return php_stream_cast(ts->innerstream, castas, ret, 0); in php_stream_temp_cast()
518 membuf = php_stream_memory_get_buffer(ts->innerstream, &memsize); in php_stream_temp_cast()
520 pos = php_stream_tell(ts->innerstream); in php_stream_temp_cast()
522 php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE); in php_stream_temp_cast()
523 ts->innerstream = file; in php_stream_temp_cast()
524 php_stream_encloses(stream, ts->innerstream); in php_stream_temp_cast()
525 php_stream_seek(ts->innerstream, pos, SEEK_SET); in php_stream_temp_cast()
527 return php_stream_cast(ts->innerstream, castas, ret, 1); in php_stream_temp_cast()
535 if (!ts || !ts->innerstream) { in php_stream_temp_stat()
538 return php_stream_stat(ts->innerstream, ssb); in php_stream_temp_stat()
553 if (ts->innerstream) { in php_stream_temp_set_option()
554 return php_stream_set_option(ts->innerstream, option, value, ptrparam); in php_stream_temp_set_option()
588 self->innerstream = php_stream_memory_create_rel(mode); in _php_stream_temp_create_ex()
589 php_stream_encloses(stream, self->innerstream); in _php_stream_temp_create_ex()