Home
last modified time | relevance | path

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

/PHP-8.0/main/streams/
H A Dcast.c368 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE… in _php_stream_make_seekable() argument
375 if (((flags & PHP_STREAM_FORCE_CONVERSION) == 0) && origstream->ops->seek != NULL) { in _php_stream_make_seekable()
376 *newstream = origstream; in _php_stream_make_seekable()
393 (*newstream)->open_filename = origstream->open_filename; in _php_stream_make_seekable()
394 (*newstream)->open_lineno = origstream->open_lineno; in _php_stream_make_seekable()
397 if (php_stream_copy_to_stream_ex(origstream, *newstream, PHP_STREAM_COPY_ALL, NULL) != SUCCESS) { in _php_stream_make_seekable()
403 php_stream_close(origstream); in _php_stream_make_seekable()
/PHP-8.0/main/
H A Dphp_streams.h80 #define php_stream_make_seekable_rel(origstream, newstream, flags) _php_stream_make_seekable((origs… argument
588 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE…
589 #define php_stream_make_seekable(origstream, newstream, flags) _php_stream_make_seekable((origstrea… argument
/PHP-8.0/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 13 milliseconds