Lines Matching refs:innerstream
331 php_stream *innerstream; member
345 if (!ts->innerstream) { in php_stream_temp_write()
348 if (php_stream_is(ts->innerstream, PHP_STREAM_IS_MEMORY)) { in php_stream_temp_write()
349 zend_off_t pos = php_stream_tell(ts->innerstream); in php_stream_temp_write()
352 zend_string *membuf = php_stream_memory_get_buffer(ts->innerstream); in php_stream_temp_write()
359 php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE); in php_stream_temp_write()
360 ts->innerstream = file; in php_stream_temp_write()
361 php_stream_encloses(stream, ts->innerstream); in php_stream_temp_write()
362 php_stream_seek(ts->innerstream, pos, SEEK_SET); in php_stream_temp_write()
365 return php_stream_write(ts->innerstream, buf, count); in php_stream_temp_write()
378 if (!ts->innerstream) { in php_stream_temp_read()
382 got = php_stream_read(ts->innerstream, buf, count); in php_stream_temp_read()
384 stream->eof = ts->innerstream->eof; in php_stream_temp_read()
399 if (ts->innerstream) { in php_stream_temp_close()
400 …ret = php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE | (close_handle ? 0 : PHP_ST… in php_stream_temp_close()
424 return ts->innerstream ? php_stream_flush(ts->innerstream) : -1; in php_stream_temp_flush()
437 if (!ts->innerstream) { in php_stream_temp_seek()
441 ret = php_stream_seek(ts->innerstream, offset, whence); in php_stream_temp_seek()
442 *newoffs = php_stream_tell(ts->innerstream); in php_stream_temp_seek()
443 stream->eof = ts->innerstream->eof; in php_stream_temp_seek()
459 if (!ts->innerstream) { in php_stream_temp_cast()
462 if (php_stream_is(ts->innerstream, PHP_STREAM_IS_STDIO)) { in php_stream_temp_cast()
463 return php_stream_cast(ts->innerstream, castas, ret, 0); in php_stream_temp_cast()
487 membuf = php_stream_memory_get_buffer(ts->innerstream); in php_stream_temp_cast()
489 pos = php_stream_tell(ts->innerstream); in php_stream_temp_cast()
491 php_stream_free_enclosed(ts->innerstream, PHP_STREAM_FREE_CLOSE); in php_stream_temp_cast()
492 ts->innerstream = file; in php_stream_temp_cast()
493 php_stream_encloses(stream, ts->innerstream); in php_stream_temp_cast()
494 php_stream_seek(ts->innerstream, pos, SEEK_SET); in php_stream_temp_cast()
496 return php_stream_cast(ts->innerstream, castas, ret, 1); in php_stream_temp_cast()
504 if (!ts || !ts->innerstream) { in php_stream_temp_stat()
507 return php_stream_stat(ts->innerstream, ssb); in php_stream_temp_stat()
522 if (ts->innerstream) { in php_stream_temp_set_option()
523 return php_stream_set_option(ts->innerstream, option, value, ptrparam); in php_stream_temp_set_option()
557 self->innerstream = php_stream_memory_create_rel(mode); in _php_stream_temp_create_ex()
558 php_stream_encloses(stream, self->innerstream); in _php_stream_temp_create_ex()