Lines Matching refs:newstream
278 php_stream *newstream; in _php_stream_cast() local
280 newstream = php_stream_fopen_tmpfile(); in _php_stream_cast()
281 if (newstream) { in _php_stream_cast()
282 size_t retcopy = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); in _php_stream_cast()
285 php_stream_close(newstream); in _php_stream_cast()
287 int retcast = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); in _php_stream_cast()
377 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE… in _php_stream_make_seekable() argument
379 if (newstream == NULL) { in _php_stream_make_seekable()
382 *newstream = NULL; in _php_stream_make_seekable()
385 *newstream = origstream; in _php_stream_make_seekable()
392 *newstream = php_stream_fopen_tmpfile(); in _php_stream_make_seekable()
394 *newstream = php_stream_temp_new(); in _php_stream_make_seekable()
397 if (*newstream == NULL) { in _php_stream_make_seekable()
402 (*newstream)->open_filename = origstream->open_filename; in _php_stream_make_seekable()
403 (*newstream)->open_lineno = origstream->open_lineno; in _php_stream_make_seekable()
406 if (php_stream_copy_to_stream_ex(origstream, *newstream, PHP_STREAM_COPY_ALL, NULL) != SUCCESS) { in _php_stream_make_seekable()
407 php_stream_close(*newstream); in _php_stream_make_seekable()
408 *newstream = NULL; in _php_stream_make_seekable()
413 php_stream_seek(*newstream, 0, SEEK_SET); in _php_stream_make_seekable()