Lines Matching refs:newstream
269 php_stream *newstream; in _php_stream_cast() local
271 newstream = php_stream_fopen_tmpfile(); in _php_stream_cast()
272 if (newstream) { in _php_stream_cast()
273 int retcopy = php_stream_copy_to_stream_ex(stream, newstream, PHP_STREAM_COPY_ALL, NULL); in _php_stream_cast()
276 php_stream_close(newstream); in _php_stream_cast()
278 int retcast = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); in _php_stream_cast()
370 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE… in _php_stream_make_seekable() argument
372 if (newstream == NULL) { in _php_stream_make_seekable()
375 *newstream = NULL; in _php_stream_make_seekable()
378 *newstream = origstream; in _php_stream_make_seekable()
385 *newstream = php_stream_fopen_tmpfile(); in _php_stream_make_seekable()
387 *newstream = php_stream_temp_new(); in _php_stream_make_seekable()
390 if (*newstream == NULL) { in _php_stream_make_seekable()
395 (*newstream)->open_filename = origstream->open_filename; in _php_stream_make_seekable()
396 (*newstream)->open_lineno = origstream->open_lineno; in _php_stream_make_seekable()
399 if (php_stream_copy_to_stream_ex(origstream, *newstream, PHP_STREAM_COPY_ALL, NULL) != SUCCESS) { in _php_stream_make_seekable()
400 php_stream_close(*newstream); in _php_stream_make_seekable()
401 *newstream = NULL; in _php_stream_make_seekable()
406 php_stream_seek(*newstream, 0, SEEK_SET); in _php_stream_make_seekable()