Home
last modified time | relevance | path

Searched refs:origstream (Results 1 – 3 of 3) sorted by relevance

/PHP-7.4/main/streams/
H A Dcast.c370 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE… in _php_stream_make_seekable() argument
377 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
378 *newstream = origstream; 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()
405 php_stream_close(origstream); in _php_stream_make_seekable()
/PHP-7.4/main/
H A Dphp_streams.h82 #define php_stream_make_seekable_rel(origstream, newstream, flags) _php_stream_make_seekable((origs… argument
586 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE…
587 #define php_stream_make_seekable(origstream, newstream, flags) _php_stream_make_seekable((origstrea… argument
/PHP-7.4/docs/
H A Dstreams.md135 PHPAPI int php_stream_make_seekable(php_stream *origstream, php_stream **newstream);
142 #define PHP_STREAM_RELEASED 1 /* newstream should be used; origstream is no longer valid */
144 …PHP_STREAM_CRITICAL 3 /* an error occurred; origstream is in an unknown state; you should close o…
157 NOTE: If the origstream is network based, this function will block until the
160 NOTE: Never call this function with an origstream that is referenced as a
161 resource! It will close the origstream on success, and this can lead to a crash

Completed in 11 milliseconds