Lines Matching refs:close_options

330 PHPAPI int _php_stream_free_enclosed(php_stream *stream_enclosed, int close_options) /* {{{ */  in _php_stream_free_enclosed()  argument
333 close_options | PHP_STREAM_FREE_IGNORE_ENCLOSING); in _php_stream_free_enclosed()
338 static const char *_php_stream_pretty_free_options(int close_options, char *out) in _php_stream_pretty_free_options() argument
340 if (close_options & PHP_STREAM_FREE_CALL_DTOR) in _php_stream_pretty_free_options()
342 if (close_options & PHP_STREAM_FREE_RELEASE_STREAM) in _php_stream_pretty_free_options()
344 if (close_options & PHP_STREAM_FREE_PRESERVE_HANDLE) in _php_stream_pretty_free_options()
346 if (close_options & PHP_STREAM_FREE_RSRC_DTOR) in _php_stream_pretty_free_options()
348 if (close_options & PHP_STREAM_FREE_PERSISTENT) in _php_stream_pretty_free_options()
350 if (close_options & PHP_STREAM_FREE_IGNORE_ENCLOSING) in _php_stream_pretty_free_options()
365 PHPAPI int _php_stream_free(php_stream *stream, int close_options) /* {{{ */ in _php_stream_free() argument
368 int preserve_handle = close_options & PHP_STREAM_FREE_PRESERVE_HANDLE ? 1 : 0; in _php_stream_free()
380 !(close_options & (PHP_STREAM_FREE_RSRC_DTOR|PHP_STREAM_FREE_IGNORE_ENCLOSING))) { in _php_stream_free()
394 …, stream, stream->orig_path, stream->in_free, _php_stream_pretty_free_options(close_options, out)); in _php_stream_free()
401 …if ((stream->in_free == 1) && (close_options & PHP_STREAM_FREE_IGNORE_ENCLOSING) && (stream->enclo… in _php_stream_free()
402 close_options |= PHP_STREAM_FREE_RSRC_DTOR; /* restore flag */ in _php_stream_free()
412 if ((close_options & PHP_STREAM_FREE_RSRC_DTOR) && in _php_stream_free()
413 !(close_options & PHP_STREAM_FREE_IGNORE_ENCLOSING) && in _php_stream_free()
414 (close_options & (PHP_STREAM_FREE_CALL_DTOR | PHP_STREAM_FREE_RELEASE_STREAM)) && /* always? */ in _php_stream_free()
421 …(close_options | PHP_STREAM_FREE_CALL_DTOR | PHP_STREAM_FREE_KEEP_RSRC) & ~PHP_STREAM_FREE_RSRC_DT… in _php_stream_free()
445 (close_options & PHP_STREAM_FREE_RSRC_DTOR) == 0); in _php_stream_free()
454 if ((close_options & PHP_STREAM_FREE_RSRC_DTOR) == 0 && stream->res) { in _php_stream_free()
457 if ((close_options & PHP_STREAM_FREE_KEEP_RSRC) == 0) { in _php_stream_free()
464 if (close_options & PHP_STREAM_FREE_CALL_DTOR) { in _php_stream_free()
488 if (close_options & PHP_STREAM_FREE_RELEASE_STREAM) { in _php_stream_free()
517 if (stream->is_persistent && (close_options & PHP_STREAM_FREE_PERSISTENT)) { in _php_stream_free()