Home
last modified time | relevance | path

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

/PHP-8.2/main/streams/
H A Dcast.c373 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE… in _php_stream_make_seekable() argument
380 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
381 *newstream = origstream; in _php_stream_make_seekable()
398 (*newstream)->open_filename = origstream->open_filename; in _php_stream_make_seekable()
399 (*newstream)->open_lineno = origstream->open_lineno; in _php_stream_make_seekable()
402 if (php_stream_copy_to_stream_ex(origstream, *newstream, PHP_STREAM_COPY_ALL, NULL) != SUCCESS) { in _php_stream_make_seekable()
408 php_stream_close(origstream); in _php_stream_make_seekable()
/PHP-8.2/main/
H A Dphp_streams.h80 #define php_stream_make_seekable_rel(origstream, newstream, flags) _php_stream_make_seekable((origs… argument
606 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE…
607 #define php_stream_make_seekable(origstream, newstream, flags) _php_stream_make_seekable((origstrea… argument
/PHP-8.2/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 21 milliseconds